[packages/nuspell] - updated to 5.1.9, added -apidocs

qboosh qboosh at pld-linux.org
Tue Nov 24 20:02:51 CET 2026


commit 01343951740a2557507e1d2d2f7f7170db0a0d19
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 24 20:02:40 2026 +0100

    - updated to 5.1.9, added -apidocs

 nuspell.spec | 61 +++++++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 40 insertions(+), 21 deletions(-)
---
diff --git a/nuspell.spec b/nuspell.spec
index 2682c59..1de4471 100644
--- a/nuspell.spec
+++ b/nuspell.spec
@@ -1,26 +1,29 @@
 # TODO: catch2 >= 3.1.1 for tests, https://github.com/catchorg/Catch2.git
 #
 # Conditional build:
+%bcond_without	apidocs	# Doxygen API documentation
 %bcond_without	man	# man page
 
 Summary:	Nuspell spell checking library
 Summary(pl.UTF-8):	Biblioteka sprawdzania pisowni Nuspell
 Name:		nuspell
-Version:	5.1.6
-Release:	3
+Version:	5.1.9
+Release:	1
 License:	LGPL v3+
 Group:		Libraries
 #Source0Download: https://github.com/nuspell/nuspell/releases
 Source0:	https://github.com/nuspell/nuspell/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	d004d5616ec5f9a0e79c6b21df3e1ce7
+# Source0-md5:	344ec9dee57cb7956db996825f0e6518
 URL:		https://nuspell.github.io/
-BuildRequires:	cmake >= 3.12
+BuildRequires:	cmake >= 3.18
+%{?with_apidocs:BuildRequires:	doxygen}
 BuildRequires:	libicu-devel >= 60
 # -std=c++17, std::from_chars
-BuildRequires:	libstdc++-devel >= 6:8
+BuildRequires:	libstdc++-devel >= 6:9
 %{?with_man:BuildRequires:	pandoc}
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.749
-Requires:	%{name}-libs = %{version}-%{release}
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -72,9 +75,9 @@ Biblioteka sprawdzania pisowni Nuspell.
 Summary:	Header files for Nuspell library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Nuspell
 Group:		Development/Libraries
-Requires:	%{name}-libs = %{version}-%{release}
-Requires:	libicu-devel >= 60
-Requires:	libstdc++-devel >= 6:8
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+Requires:	libicu-devel%{?_isa} >= 60
+Requires:	libstdc++-devel%{?_isa} >= 6:9
 
 %description devel
 Header files for Nuspell library.
@@ -82,21 +85,28 @@ Header files for Nuspell library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki Nuspell.
 
+%package apidocs
+Summary:	API documentation for Nuspell library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki Nuspell
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for Nuspell library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki Nuspell.
+
 %prep
 %setup -q
 
-%if 0%{_ver_lt "%{cc_version}" "9"}
-%{__sed} -i -e '/target_link_libraries(nuspell/ s/)/ stdc++fs)/' src/nuspell/CMakeLists.txt
-%endif
-
 %build
-install -d build
-cd build
-%cmake .. \
-	%{!?with_man:-DBUILD_DOCS=OFF} \
+%cmake -B build \
+	%{!?with_apidocs:-DBUILD_API_DOCS=OFF} \
+	%{!?with_man:-DBUILD_MAN=OFF} \
 	-DBUILD_TESTING=OFF
 
-%{__make}
+%{__make} -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -106,6 +116,9 @@ rm -rf $RPM_BUILD_ROOT
 
 # packaged as %doc
 %{__rm} $RPM_BUILD_ROOT%{_docdir}/README.md
+%if %{with apidocs}
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/html
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -123,12 +136,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %files libs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libnuspell.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libnuspell.so.5
+%{_libdir}/libnuspell.so.*.*.*
+%ghost %{_libdir}/libnuspell.so.5
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libnuspell.so
+%{_libdir}/libnuspell.so
 %{_includedir}/nuspell
 %{_pkgconfigdir}/nuspell.pc
 %{_libdir}/cmake/nuspell
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc build/docs/html/{search,*.css,*.html,*.js,*.png,*.svg}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nuspell.git/commitdiff/01343951740a2557507e1d2d2f7f7170db0a0d19



More information about the pld-cvs-commit mailing list