forked from pool/libvirt
spec file cleanup
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=193
This commit is contained in:
parent
58225ed584
commit
460b02d301
44
libvirt.spec
44
libvirt.spec
@ -15,8 +15,6 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
# For now, default to a full server + client build
|
||||
%define client_only 0
|
||||
|
||||
@ -198,20 +196,21 @@
|
||||
|
||||
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
||||
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: xhtml-dtd
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libtasn1-devel
|
||||
BuildRequires: libgnutls-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: bridge-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libtool pkg-config
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libgnutls-devel
|
||||
BuildRequires: libtasn1-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: xhtml-dtd
|
||||
# Only for directory ownership:
|
||||
BuildRequires: gtk-doc
|
||||
%if %{with_xen} || %{with_libxl}
|
||||
@ -326,12 +325,11 @@ BuildRequires: systemd
|
||||
|
||||
Name: libvirt
|
||||
Url: http://libvirt.org/
|
||||
Version: 0.9.9
|
||||
Release: 0
|
||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||
License: LGPL-2.1+
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: yes
|
||||
Version: 0.9.9
|
||||
Release: 1
|
||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||
Conflicts: kvm < 0.14.1
|
||||
|
||||
# The client side, i.e. shared libs and virsh are in a subpackage
|
||||
@ -438,7 +436,6 @@ Authors:
|
||||
Karel Zak <kzak@redhat.com>
|
||||
|
||||
%package client
|
||||
License: LGPL-2.1+
|
||||
Summary: Client side library and utilities of the libvirt library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: readline
|
||||
@ -465,7 +462,6 @@ Authors:
|
||||
Karel Zak <kzak@redhat.com>
|
||||
|
||||
%package devel
|
||||
License: LGPL-2.1+
|
||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}-client = %{version}-%{release} libxml2-devel
|
||||
@ -487,7 +483,6 @@ Authors:
|
||||
Karel Zak <kzak@redhat.com>
|
||||
|
||||
%package doc
|
||||
License: LGPL-2.1+
|
||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}-client = %{version}-%{release}
|
||||
@ -507,7 +502,6 @@ Authors:
|
||||
%if %{with_sanlock}
|
||||
|
||||
%package lock-sanlock
|
||||
License: LGPL-2.1+
|
||||
Summary: Sanlock lock manager plugin for QEMU driver
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: sanlock >= 1.8
|
||||
@ -522,7 +516,6 @@ Includes the Sanlock lock manager plugin for the QEMU driver
|
||||
%if %{with_python}
|
||||
|
||||
%package python
|
||||
License: LGPL-2.1+
|
||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}-client = %{version}-%{release}
|
||||
@ -729,13 +722,18 @@ make V=1 %{?jobs:-j%jobs} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docd
|
||||
%makeinstall SYSTEMD_UNIT_DIR=%{_unitdir} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
|
||||
cp -a AUTHORS ChangeLog COPYING NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/
|
||||
cd docs ; cp -a *.html $RPM_BUILD_ROOT%{_docdir}/%{name} ; cp -a *.png $RPM_BUILD_ROOT%{_docdir}/%{name} ; cd ..
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.a
|
||||
# remove currently unsupported locale(s)
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
|
||||
%if 0%{?suse_version} < 1130
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale/vi_VN
|
||||
%endif
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a
|
||||
%find_lang %{name}
|
||||
%if %{with_network}
|
||||
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/dnsmasq/
|
||||
|
Loading…
Reference in New Issue
Block a user