Move all documentation into a -docs sub-RPM
parent
78f1d3ac45
commit
47190b4726
34
libvirt.spec
34
libvirt.spec
|
@ -539,6 +539,14 @@ Libvirt is a C toolkit to interact with the virtualization capabilities
|
||||||
of recent versions of Linux (and other OSes). The main package includes
|
of recent versions of Linux (and other OSes). The main package includes
|
||||||
the libvirtd server exporting the virtualization support.
|
the libvirtd server exporting the virtualization support.
|
||||||
|
|
||||||
|
%package docs
|
||||||
|
Summary: API reference and website documentation
|
||||||
|
Group: Development/Libraries
|
||||||
|
|
||||||
|
%description docs
|
||||||
|
Includes the API reference for the libvirt C library, and a complete
|
||||||
|
copy of the libvirt.org website documentation.
|
||||||
|
|
||||||
%package client
|
%package client
|
||||||
Summary: Client side library and utilities of the libvirt library
|
Summary: Client side library and utilities of the libvirt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
@ -568,14 +576,14 @@ virtualization capabilities of recent versions of Linux (and other OSes).
|
||||||
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
|
||||||
%if %{with_xen}
|
%if %{with_xen}
|
||||||
Requires: xen-devel
|
Requires: xen-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Includes and documentations for the C library providing an API to use
|
Include header files & development libraries for the libvirt C library.
|
||||||
the virtualization capabilities of recent versions of Linux (and other OSes).
|
|
||||||
|
|
||||||
%if %{with_sanlock}
|
%if %{with_sanlock}
|
||||||
%package lock-sanlock
|
%package lock-sanlock
|
||||||
|
@ -877,6 +885,9 @@ rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
|
||||||
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version} \
|
||||||
|
$RPM_BUILD_ROOT%{_datadir}/doc/libvirt-docs-%{version}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -fr %{buildroot}
|
rm -fr %{buildroot}
|
||||||
|
|
||||||
|
@ -1181,6 +1192,20 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sysctl.d/libvirtd
|
||||||
%doc docs/*.xml
|
%doc docs/*.xml
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files docs
|
||||||
|
%defattr(-, root, root)
|
||||||
|
# Website
|
||||||
|
%dir %{_datadir}/doc/libvirt-docs-%{version}
|
||||||
|
%dir %{_datadir}/doc/libvirt-docs-%{version}/html
|
||||||
|
%{_datadir}/doc/libvirt-docs-%{version}/html/*
|
||||||
|
|
||||||
|
# API docs
|
||||||
|
%dir %{_datadir}/gtk-doc/html/libvirt/
|
||||||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
|
||||||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
|
||||||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
|
||||||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
|
||||||
|
|
||||||
%if %{with_sanlock}
|
%if %{with_sanlock}
|
||||||
%files lock-sanlock
|
%files lock-sanlock
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
@ -1253,11 +1278,6 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sysctl.d/libvirtd
|
||||||
%dir %{_includedir}/libvirt
|
%dir %{_includedir}/libvirt
|
||||||
%{_includedir}/libvirt/*.h
|
%{_includedir}/libvirt/*.h
|
||||||
%{_libdir}/pkgconfig/libvirt.pc
|
%{_libdir}/pkgconfig/libvirt.pc
|
||||||
%dir %{_datadir}/gtk-doc/html/libvirt/
|
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
|
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
|
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
|
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
|
|
||||||
|
|
||||||
%dir %{_datadir}/libvirt/api/
|
%dir %{_datadir}/libvirt/api/
|
||||||
%{_datadir}/libvirt/api/libvirt-api.xml
|
%{_datadir}/libvirt/api/libvirt-api.xml
|
||||||
|
|
Loading…
Reference in New Issue