spec: Only pull in API docs with -devel package

Move some API specific documentation out of -docs package and into
-devel, and some end user docs out of -devel and into -docs, then
drop the -devel dep on -docs. This is more in line with the suggested
Fedora guidelines.

https://bugzilla.redhat.com/show_bug.cgi?id=1310155
This commit is contained in:
Cole Robinson 2016-04-13 10:37:42 -04:00
parent dae0e22714
commit feffcc03a0

View File

@ -1197,7 +1197,6 @@ namespaces.
Summary: Libraries, includes, etc. to compile with the libvirt library Summary: Libraries, includes, etc. to compile with the libvirt library
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-client = %{version}-%{release} Requires: %{name}-client = %{version}-%{release}
Requires: %{name}-docs = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
@ -1949,7 +1948,9 @@ exit 0
%files docs %files docs
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS ChangeLog.gz NEWS README TODO libvirt-docs/* %doc AUTHORS ChangeLog.gz NEWS README TODO
%doc libvirt-docs/*
%doc docs/*.html docs/html docs/*.gif
# API docs # API docs
%dir %{_datadir}/gtk-doc/html/libvirt/ %dir %{_datadir}/gtk-doc/html/libvirt/
@ -1957,6 +1958,16 @@ exit 0
%doc %{_datadir}/gtk-doc/html/libvirt/*.html %doc %{_datadir}/gtk-doc/html/libvirt/*.html
%doc %{_datadir}/gtk-doc/html/libvirt/*.png %doc %{_datadir}/gtk-doc/html/libvirt/*.png
%doc %{_datadir}/gtk-doc/html/libvirt/*.css %doc %{_datadir}/gtk-doc/html/libvirt/*.css
%doc examples/hellolibvirt
%doc examples/object-events
%doc examples/dominfo
%doc examples/domsuspend
%doc examples/dommigrate
%doc examples/openauth
%doc examples/xml
%doc examples/rename
%doc examples/systemtap
%if %{with_libvirtd} %if %{with_libvirtd}
%files daemon %files daemon
@ -2386,19 +2397,9 @@ exit 0
%{_datadir}/libvirt/api/libvirt-api.xml %{_datadir}/libvirt/api/libvirt-api.xml
%{_datadir}/libvirt/api/libvirt-qemu-api.xml %{_datadir}/libvirt/api/libvirt-qemu-api.xml
%{_datadir}/libvirt/api/libvirt-lxc-api.xml %{_datadir}/libvirt/api/libvirt-lxc-api.xml
# Needed building python bindings
%doc docs/*.html docs/html docs/*.gif
%doc docs/libvirt-api.xml %doc docs/libvirt-api.xml
%doc examples/hellolibvirt
%doc examples/object-events
%doc examples/dominfo
%doc examples/domsuspend
%doc examples/dommigrate
%doc examples/openauth
%doc examples/xml
%doc examples/rename
%doc examples/systemtap
%changelog %changelog
* Wed Apr 6 2016 Daniel Veillard <veillard@redhat.com> - 1.3.3-1 * Wed Apr 6 2016 Daniel Veillard <veillard@redhat.com> - 1.3.3-1