[tubo] Built a doc sub-package.
Antonio Trande
sagitter at fedoraproject.org
Mon Dec 15 19:11:52 UTC 2014
commit 75083792b8db5a72d27b309b5a54c129d6414c4e
Author: sagitter <sagitterATfedoraprojectDOTorg>
Date: Mon Dec 15 20:12:01 2014 +0100
Built a doc sub-package.
tubo.spec | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
---
diff --git a/tubo.spec b/tubo.spec
index f648951..66e3c7a 100644
--- a/tubo.spec
+++ b/tubo.spec
@@ -1,7 +1,7 @@
Name: tubo
Summary: Library to thread process std-in/std-err/std-out from fork() child
Version: 5.0.14
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv3+
URL: http://xffm.org/libtubo.html
Source0: http://sourceforge.net/projects/xffm/files/lib%{name}/lib%{name}0-%{version}.tar.gz
@@ -25,6 +25,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
+%package doc
+Summary: HTML documentation of %{name}
+BuildArch: noarch
+%description doc
+This package contains HTML documentation files of %{name}.
+
%prep
%setup -q -n libtubo0-%{version}
@@ -32,11 +38,13 @@ developing applications that use %{name}.
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
%build
-%configure --enable-static=no --enable-shared=yes --disable-silent-rules
+%configure --enable-static=no --enable-shared=yes --disable-silent-rules \
+ --with-semaphores=no --disable-glibtest --with-examples=no \
+ --with-PACKAGE=no
make %{?_smp_mflags}
%install
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
## Remove libtool archives
find $RPM_BUILD_ROOT -name '*.la' -delete
@@ -45,7 +53,8 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
%postun -p /sbin/ldconfig
%files
-%doc README ChangeLog COPYING AUTHORS
+%doc README ChangeLog AUTHORS
+%license COPYING
%{_bindir}/tuboexec
%{_libdir}/lib%{name}.so.*
%{_mandir}/man1/tuboexec*
@@ -54,10 +63,19 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
%{_includedir}/tubo.*
%{_libdir}/pkgconfig/tubo.pc
%{_libdir}/lib%{name}.so
-%{_datadir}/gtk-doc/
+
+%files doc
+%license COPYING
+%dir %{_datadir}/gtk-doc
+%dir %{_datadir}/gtk-doc/html
+%{_datadir}/gtk-doc/html/libtubo/
%changelog
+* Mon Dec 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5.0.14-4
+- Built a doc sub-package
+- Added %%license tag
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5.0.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
More information about the scm-commits
mailing list