summaryrefslogtreecommitdiff
path: root/libvirt-python.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-27 11:57:16 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-28 11:54:02 +0000
commitb9579cb6fd8074e44c24f8339182d8f447fa0b01 (patch)
tree8503e192a5099e3e644bc45d9820bc5fd1f4f621 /libvirt-python.spec.in
parent590f338b232a193ac19ffff515ebeb96b9fe3b81 (diff)
downloadlibvirt-python-b9579cb6fd8074e44c24f8339182d8f447fa0b01.tar.gz
Fix misc RPM specfile flaws
Fix the RPM summary line, add placeholder %changelog tag, make %setup quiet, add Url: tag and filter out bogus provides and add example programs as docs. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r--libvirt-python.spec.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index e6c229f..7c6257e 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -1,14 +1,19 @@
-Summary: The libvirt virtualization API
+Summary: The libvirt virtualization API python binding
Name: libvirt-python
Version: @PY_VERSION@
Release: 1%{?dist}%{?extra_release}
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
+Url: http://libvirt.org
License: LGPLv2+
Group: Development/Libraries
BuildRequires: libvirt-devel >= @C_VERSION@
BuildRequires: python-devel
+# Don't want provides for python shared objects
+%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
+%{?filter_setup}
+
%description
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
@@ -16,7 +21,7 @@ supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).
%prep
-%setup
+%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
@@ -27,8 +32,10 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info
%files
%defattr(-,root,root)
-%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER
+%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{_libdir}/python*/site-packages/libvirt.py*
%{_libdir}/python*/site-packages/libvirt_qemu.py*
%{_libdir}/python*/site-packages/libvirt_lxc.py*
%{_libdir}/python*/site-packages/libvirtmod*
+
+%changelog