[packages/openzwave] move api documentation to -apidocs subpackage

atler atler at pld-linux.org
Tue Jan 24 10:53:07 CET 2023


commit 3624adeeb1c46817ea9d0c1891ab428dc38b93b0
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jan 24 10:52:39 2023 +0100

    move api documentation to -apidocs subpackage

 openzwave.spec | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/openzwave.spec b/openzwave.spec
index 50a940e..7a98f02 100644
--- a/openzwave.spec
+++ b/openzwave.spec
@@ -12,6 +12,7 @@ Patch0:		gcc11.patch
 BuildRequires:	doxygen
 BuildRequires:	graphviz
 BuildRequires:	hidapi-devel >= 0.8.0
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	systemd-devel
 BuildRequires:	tinyxml-devel
 
@@ -32,12 +33,21 @@ protocol.
 
 %package -n libopenzwave-devel
 Summary:	Open-ZWave header files
+Group:		Development/Libraries
 Requires:	libopenzwave = %{version}-%{release}
 
 %description -n libopenzwave-devel
 Header files needed when you want to compile your own applications
 using openzwave
 
+%package -n libopenzwave-apidocs
+Summary:	API documentation for Open-ZWave
+Group:		Documentation
+BuildArch:	noarch
+
+%description -n libopenzwave-apidocs
+API documentation for Open-ZWave.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -114,8 +124,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libopenzwave-devel
 %defattr(644,root,root,755)
-%doc docs/api
 %attr(755,root,root) %{_bindir}/ozw_config
 %{_includedir}/openzwave/
 %{_libdir}/libopenzwave.so
 %{_pkgconfigdir}/libopenzwave.pc
+
+%files -n libopenzwave-apidocs
+%defattr(644,root,root,755)
+%doc docs/api
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openzwave.git/commitdiff/3624adeeb1c46817ea9d0c1891ab428dc38b93b0



More information about the pld-cvs-commit mailing list