From 7e41994950e7c72ebb336f3772044dcfee4dabe4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:23:13 +0100 Subject: [PATCH] update to 1.2.3 [release 1.2.3-1mamba;Mon Apr 28 2014] --- README.md | 2 ++ python-libvirt.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 python-libvirt.spec diff --git a/README.md b/README.md index 0fe40d1..998b983 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-libvirt +Python binding to the libvirt.so, libvirt-qemu.so and libvirt-lxc.so library APIs.. + diff --git a/python-libvirt.spec b/python-libvirt.spec new file mode 100644 index 0000000..6f2bc12 --- /dev/null +++ b/python-libvirt.spec @@ -0,0 +1,55 @@ +Name: python-libvirt +Version: 1.2.3 +Release: 1mamba +Summary: Python binding to the libvirt.so, libvirt-qemu.so and libvirt-lxc.so library APIs. +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://libvirt.org/python.html +Source: http://libvirt.org/sources/python/libvirt-python-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpython-devel +BuildRequires: libvirt-devel +## AUTOBUILDREQ-END +BuildRequires: libvirt-devel >= 1.2 +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%prep +%setup -q -n libvirt-python-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +## note: this list is just an example; modify as required +# %{python_sitearch}/%{name}.py* +# %{python_sitearch}/%{name}.so +%doc AUTHORS COPYING COPYING.LESSER +## note: eventually add the remaining documents (if any) +# %doc ChangeLog NEWS README + +%changelog +* Mon Apr 28 2014 Silvan Calarco 1.2.3-1mamba +- update to 1.2.3 + +* Tue Dec 10 2013 Silvan Calarco 1.2.0-1mamba +- package created using the webbuild interface