move some documentation to devel subpackage (#977103)

This commit is contained in:
Nils Philippsen 2013-06-24 11:57:01 +02:00
parent aa09d11c77
commit 7041f37d8a

View File

@ -24,6 +24,9 @@
%define __provides_exclude_from ^%{_libdir}/sane/.*\.so.*$ %define __provides_exclude_from ^%{_libdir}/sane/.*\.so.*$
%define __requires_exclude ^libsane-.*\.so\.[0-9]*(\(\).*)?+$ %define __requires_exclude ^libsane-.*\.so\.[0-9]*(\(\).*)?+$
%define _maindocdir %{_docdir}/%{name}-%{version}
%define _develdocdir %{_docdir}/%{name}-devel-%{version}
Summary: Scanner access software Summary: Scanner access software
Name: sane-backends Name: sane-backends
Version: 1.0.23 Version: 1.0.23
@ -189,6 +192,26 @@ install -m 0644 tools/udev/libsane.rules %{buildroot}%{udevrulesdir}/65-libsane.
mkdir -p %{buildroot}%{_libdir}/pkgconfig mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
mkdir %{buildroot}%{_develdocdir}
pushd %{buildroot}%{_maindocdir}
for f in *; do
if [ -d "$f" ]; then
mv "$f" "%{buildroot}%{_develdocdir}/${f}"
else
case "$f" in
AUTHORS|ChangeLog|COPYING|LICENSE|NEWS|PROBLEMS|README|README.linux)
;;
backend-writing.txt|PROJECTS|sane-*.html)
mv "$f" "%{buildroot}%{_develdocdir}/${f}"
;;
*)
rm -rf "$f"
;;
esac
fi
done
popd
%find_lang %name %find_lang %name
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
@ -196,6 +219,7 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc %{_maindocdir}
%dir /etc/sane.d %dir /etc/sane.d
%dir /etc/sane.d/dll.d %dir /etc/sane.d/dll.d
%config(noreplace) /etc/sane.d/*.conf %config(noreplace) /etc/sane.d/*.conf
@ -206,7 +230,6 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%{_bindir}/scanimage %{_bindir}/scanimage
%{_sbindir}/* %{_sbindir}/*
%doc %{_docdir}/*
%exclude %{_mandir}/man1/sane-config.1* %exclude %{_mandir}/man1/sane-config.1*
%{_mandir}/*/* %{_mandir}/*/*
@ -218,6 +241,7 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc %{_develdocdir}
%{_bindir}/sane-config %{_bindir}/sane-config
%{_mandir}/man1/sane-config.1* %{_mandir}/man1/sane-config.1*
%{_includedir}/sane %{_includedir}/sane
@ -234,6 +258,9 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%{_libdir}/sane/*gphoto2.so* %{_libdir}/sane/*gphoto2.so*
%changelog %changelog
* Mon Jun 24 2013 Nils Philippsen <nils@redhat.com>
- move some documentation to devel subpackage (#977103)
* Thu Jun 13 2013 Nils Philippsen <nils@redhat.com> * Thu Jun 13 2013 Nils Philippsen <nils@redhat.com>
- don't ignore libsane-gphoto2.so - don't ignore libsane-gphoto2.so