Move large documentation into -doc subpackage

This commit is contained in:
Robert Scheck 2017-08-25 04:40:25 +02:00
parent 6c8f27caa7
commit d7975325c4
2 changed files with 26 additions and 6 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
libisoburn-1.?.?.tar.gz /libisoburn-*.tar.gz

View File

@ -1,7 +1,7 @@
Summary: Library to enable creation and expansion of ISO-9660 filesystems Summary: Library to enable creation and expansion of ISO-9660 filesystems
Name: libisoburn Name: libisoburn
Version: 1.4.6 Version: 1.4.6
Release: 6%{?dist} Release: 7%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://libburnia-project.org/ URL: http://libburnia-project.org/
@ -9,7 +9,7 @@ Source0: http://files.libburnia-project.org/releases/%{name}-%{version}.
Source1: xorriso_servicemenu.desktop Source1: xorriso_servicemenu.desktop
Patch0: libisoburn-1.0.8-multilib.patch Patch0: libisoburn-1.0.8-multilib.patch
Patch1: libisoburn-1.4.6-d9c93a6d.patch Patch1: libisoburn-1.4.6-d9c93a6d.patch
BuildRequires: readline-devel, libacl-devel, zlib-devel, doxygen, graphviz BuildRequires: readline-devel, libacl-devel, zlib-devel
%if 0%{?rhel} >= 6 %if 0%{?rhel} >= 6
BuildRequires: libburn1-devel >= 1.4.6, libisofs1-devel >= 1.4.6 BuildRequires: libburn1-devel >= 1.4.6, libisofs1-devel >= 1.4.6
BuildRequires: autoconf, automake, libtool BuildRequires: autoconf, automake, libtool
@ -37,6 +37,20 @@ Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
The libisoburn-devel package contains libraries and header files for The libisoburn-devel package contains libraries and header files for
developing applications that use libisoburn. developing applications that use libisoburn.
%package doc
Summary: Documentation files for libisoburn
Group: Documentation
%if 0%{?fedora} || 0%{?rhel} >= 6
BuildArch: noarch
%endif
BuildRequires: doxygen, graphviz
%description doc
Libisoburn is a front-end for libraries libburn and libisofs which
enables creation and expansion of ISO-9660 filesystems on all CD/
DVD/BD media supported by libburn. And this package contains the API
documentation for developing applications that use libisoburn.
%package -n xorriso %package -n xorriso
Summary: ISO-9660 and Rock Ridge image manipulation tool Summary: ISO-9660 and Rock Ridge image manipulation tool
Group: Applications/Archiving Group: Applications/Archiving
@ -89,6 +103,9 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
# Don't install any libtool .la files # Don't install any libtool .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
# Clean up for later usage in documentation
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
# Install the KDE service menu handler # Install the KDE service menu handler
%if 0%{?rhel} >= 6 || 0%{?fedora} %if 0%{?rhel} >= 6 || 0%{?fedora}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/ mkdir -p $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/
@ -145,21 +162,21 @@ if [ $1 = 0 ]; then
fi fi
%files %files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
%license COPYING %license COPYING
%doc AUTHORS COPYRIGHT README ChangeLog %doc AUTHORS COPYRIGHT README ChangeLog
%{_libdir}/%{name}*.so.* %{_libdir}/%{name}*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc doc/html %doc doc/html
%{_includedir}/%{name} %{_includedir}/%{name}
%{_libdir}/%{name}.so %{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}*.pc %{_libdir}/pkgconfig/%{name}*.pc
%files doc
%doc doc/html/
%files -n xorriso %files -n xorriso
%defattr(-,root,root,-)
%if 0%{?rhel} >= 6 || 0%{?fedora} %if 0%{?rhel} >= 6 || 0%{?fedora}
%ghost %{_bindir}/mkisofs %ghost %{_bindir}/mkisofs
%endif %endif
@ -178,6 +195,9 @@ fi
%endif %endif
%changelog %changelog
* Thu Aug 24 2017 Robert Scheck <robert@fedoraproject.org> 1.4.6-7
- Move large documentation into -doc subpackage
* Sun Aug 13 2017 Robert Scheck <robert@fedoraproject.org> 1.4.6-6 * Sun Aug 13 2017 Robert Scheck <robert@fedoraproject.org> 1.4.6-6
- Added upstream patch to avoid %%check failure due to tput error - Added upstream patch to avoid %%check failure due to tput error