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/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
# For now, default to a full server + client build
|
# For now, default to a full server + client build
|
||||||
%define client_only 0
|
%define client_only 0
|
||||||
|
|
||||||
@ -198,20 +196,21 @@
|
|||||||
|
|
||||||
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
%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: bridge-utils
|
||||||
BuildRequires: fdupes
|
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: python-xml
|
||||||
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: xhtml-dtd
|
||||||
# Only for directory ownership:
|
# Only for directory ownership:
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
%if %{with_xen} || %{with_libxl}
|
%if %{with_xen} || %{with_libxl}
|
||||||
@ -326,12 +325,11 @@ BuildRequires: systemd
|
|||||||
|
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Url: http://libvirt.org/
|
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+
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
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
|
Conflicts: kvm < 0.14.1
|
||||||
|
|
||||||
# The client side, i.e. shared libs and virsh are in a subpackage
|
# The client side, i.e. shared libs and virsh are in a subpackage
|
||||||
@ -438,7 +436,6 @@ Authors:
|
|||||||
Karel Zak <kzak@redhat.com>
|
Karel Zak <kzak@redhat.com>
|
||||||
|
|
||||||
%package client
|
%package client
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: Client side library and utilities of the libvirt library
|
Summary: Client side library and utilities of the libvirt library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: readline
|
Requires: readline
|
||||||
@ -465,7 +462,6 @@ Authors:
|
|||||||
Karel Zak <kzak@redhat.com>
|
Karel Zak <kzak@redhat.com>
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-client = %{version}-%{release} libxml2-devel
|
Requires: %{name}-client = %{version}-%{release} libxml2-devel
|
||||||
@ -487,7 +483,6 @@ Authors:
|
|||||||
Karel Zak <kzak@redhat.com>
|
Karel Zak <kzak@redhat.com>
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name}-client = %{version}-%{release}
|
||||||
@ -507,7 +502,6 @@ Authors:
|
|||||||
%if %{with_sanlock}
|
%if %{with_sanlock}
|
||||||
|
|
||||||
%package lock-sanlock
|
%package lock-sanlock
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: Sanlock lock manager plugin for QEMU driver
|
Summary: Sanlock lock manager plugin for QEMU driver
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: sanlock >= 1.8
|
Requires: sanlock >= 1.8
|
||||||
@ -522,7 +516,6 @@ Includes the Sanlock lock manager plugin for the QEMU driver
|
|||||||
%if %{with_python}
|
%if %{with_python}
|
||||||
|
|
||||||
%package python
|
%package python
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
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}
|
%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}/
|
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 ..
|
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)
|
# remove currently unsupported locale(s)
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
|
||||||
%if 0%{?suse_version} < 1130
|
%if 0%{?suse_version} < 1130
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale/vi_VN
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/vi_VN
|
||||||
%endif
|
%endif
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
%if %{with_network}
|
%if %{with_network}
|
||||||
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/dnsmasq/
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/dnsmasq/
|
||||||
|
Loading…
Reference in New Issue
Block a user