summaryrefslogtreecommitdiff
path: root/libvirt-python.spec.in
Commit message (Collapse)AuthorAgeFilesLines
* rpm: convert license to SPDX formatv9.3.0Daniel P. Berrangé2023-04-261-1/+1
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: add explicit build dep on python3-setuptoolsv8.10.0Daniel P. Berrangé2022-11-231-0/+1
| | | | | | | | We previously got this implicitly via a dep from python3-pytest so never noticed that it was missing. The implicit dep is going away in rawhide real soon. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: drop support for RHEL-7Daniel P. Berrangé2021-09-011-15/+2
| | | | | | We no longer support libvirt on this distro Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: use pytest instead of noseJán Tomko2021-04-121-2/+2
| | | | Signed-off-by: Ján Tomko <jtomko@redhat.com>
* rpm: use HTTPS for URLsDaniel P. Berrangé2021-04-121-2/+2
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Drop largely empty and unused NEWS fileDaniel P. Berrangé2020-05-141-1/+1
| | | | | | | | We bundle a git generated ChangeLog file in the dist, and never add any entries to the NEWS file. Fixes #2 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Fix RPM deps for centos 7Daniel P. Berrangé2019-12-061-0/+5
| | | | | Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Drop support for python 2Daniel P. Berrangé2019-12-041-93/+3
| | | | | | | | | python2 will be end of life by the time of the next libvirt release. All our supported build targets, including CentOS7, have a python3 build available. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: Build python2 package in fedora < 31Nir Soffer2019-09-031-1/+1
| | | | | | | | | | Since commit ee0cfbe65c5d (spec: Unconditionally build python2 on Fedora) python2-libvirt is not built on any Fedora version. Fix the spec to drop python2-libvirt on Fedora 31. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Nir Soffer <nsoffer@redhat.com>
* spec: Bump minimum supported Fedora version to 29Cole Robinson2019-07-091-1/+1
| | | | | Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
* spec: Unconditionally build python2 on FedoraCole Robinson2019-07-091-1/+1
| | | | | | | | | | | | | | In Fedora we are currently shipping python2 bindings for all builds, so this conditional is out of date. Fedora 31 may be the time that python2 bindings are dropped: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal But I think it's better to wait for that to actually happen before we change this again Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
* rpm: use new python macros for build/install rulesDaniel P. Berrangé2019-04-041-0/+16
| | | | | | | | The new %py{2,3}_{build,install} macros ensure that the right compiler and linker flags are used when building python modules. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm spec: remove %{extra_release} from specDaniel P. Berrangé2019-01-221-1/+1
| | | | | | | The %{extra_release} field was previously populated by data from the old autobuild.sh file but is no longer used. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: update min required rhel/fedoraDaniel P. Berrangé2018-07-231-2/+2
| | | | | Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: add BuildRequires on gccDaniel P. Berrangé2018-07-231-0/+1
| | | | | | | The gcc RPM is no longer part of the default build root. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: use the versioned python2 macro namesDaniel P. Berrangé2018-07-231-9/+9
| | | | | | | The use of non-versioned python2 macro names is deprecated in Fedora Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: Remove Group: and %defattrCole Robinson2018-07-101-5/+0
| | | | | | | | | These are only needed for RHEL5 builds, which are no longer supported https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CMCUBB4SWS3URHTRRS3OPFM4HF5CGKBW/ https://fedoraproject.org/wiki/RPMGroups Signed-off-by: Cole Robinson <crobinso@redhat.com>
* Disable Python 2 on future RHEL and Fedora > 29v4.2.0Daniel P. Berrangé2018-03-231-0/+4
| | | | | | | | | | | | The end of Python 2 is nearing, so declare when it will be removed from libvirt Python binding RPMs. NB, this doesn't imply we'll be removing py2 support from upstream libvirt-python on the same timeframe - we'll consider what todo wrt that when upstream Python 2 finally goes EOL. Reviewed-by: Jiri Denemark <jdenemar@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Use python*_sitearch macros instead of manually defining the dirDaniel P. Berrange2018-01-121-15/+15
| | | | | | | | Note we use python_sitearch not python2_sitearch, since the former is more portable. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix filtering of RPM provides for .so filesDaniel P. Berrange2018-01-121-0/+5
| | | | | Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Require libvirt native version matching py version by defaultDaniel P. Berrange2018-01-121-1/+1
| | | | | | | | | | | | | Although we're capable of building against any libvirt >= 0.9.11, 99% of the time we want RPM builds to be done against matching libvirt version, otherwise we might silently build against an unexpected/wrong version. We don't support building against a native libvirt that's newer than the python binding, since the generator may incorrectly handle new APIs. So use == instead of >= too. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Turn on python3 sub-RPMs for RHEL > 7Daniel P. Berrange2018-01-121-1/+1
| | | | | | | | | It is expected that future RHEL-8 will have python3 by default, so enable that. It is unclear whether python2 will still be available, so leave that enabled for now. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Adapt to rename of py2 RPMs from python- to python2- prefixDaniel P. Berrange2018-01-121-0/+12
| | | | | Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add emacs mode marker to activate rpm-spec highlightingDaniel P. Berrange2018-01-121-0/+2
| | | | | Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add checks for min supported distrosDaniel P. Berrange2018-01-121-0/+16
| | | | | | | | Be clear about which distros we aim to support with the specfile, so we know what we can cleanup in the spec later. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Allow override of which sub-RPMs to buildDaniel P. Berrange2018-01-121-3/+6
| | | | | | | | | | | Allow using rpmbuild --define "with_python2 0" to override the default logic about which python sub-RPMs to build Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Allow disabling of python2 RPM buildDaniel P. Berrange2018-01-121-0/+13
| | | | | | | | | | | | With Fedora modularity, it is possible to have add-on repos for multiple versions of python3. It is thus desirable to be able to build libvirt-python in these repos, with only the python3 sub-RPMs enabled. Thus also helps if future RHEL/Fedora drop python2 entirely from their default repos. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Change Obsoletes to an explicit versionDaniel P. Berrange2017-09-041-2/+2
| | | | | | | We only want to obsolete versions which actually had the original name, not all future versions. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix package name in description of sub-RPMsDaniel P. Berrange2017-08-101-2/+2
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Revert "rpm: assume python3 is always available"Daniel P. Berrange2017-08-101-0/+17
| | | | | | | This reverts commit b302b6d884ad4c6c917203a463f3377f3615b030. Only drop the Fedora 18 test - RHEL must still build without python 3
* rpm: rename packages to python2-libvirt / python3-libvirtDaniel P. Berrange2017-08-101-5/+23
| | | | | | | This complies with Fedora naming policy for python packages Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* rpm: assume python3 is always availableDaniel P. Berrange2017-08-101-17/+0
| | | | | Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* spec: Install egg-info with rpm packageMartin Kletzander2017-05-151-1/+2
| | | | | | | | This was being done due to now deprecated policy and that file should be installed so that pip can recognize that the packages is already installed in the system. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* Add asyncio event loop implementationWojtek Porczyk2017-04-041-0/+2
| | | | | | | | | | | | | | This is usable only on python >= 3.4 (or 3.3 with out-of-tree asyncio), however it should be harmless for anyone with older python versions. In simplest case, to have the callbacks queued on the default loop: >>> import libvirtaio >>> libvirtaio.virEventRegisterAsyncIOImpl() The function is not present on non-compatible platforms. Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
* spec: Don't pull in dependencies for example scriptsCole Robinson2016-04-201-0/+5
| | | | | If the scripts are marked as executable, RPM magic will scan them for dependencies, which can pull in python2 for the python3 package
* spec: Reorganize to satisfy buggy spectoolv1.2.7Jiri Denemark2014-07-291-8/+6
| | | | | | | | spectool parses a specfile and strips everything but a preamble. However, if the first section is preceded by %if clause, it keeps it there which then makes rpmbuild complain about unmatched %if. Let's make the buggy tool happy by moving sections around so that the first one is not in any conditional.
* build: add BuildRequires for python-lxml and python3-lxmlv1.2.4Laine Stump2014-04-071-0/+2
| | | | | | | python-lxml is likely always already present anyway (due to so many packages being dependent on it), but at least on my F20 system, python3-lxml wasn't installed, leading to a failure of "python setup.py rpm" without an informative error message.
* Fix nosetests usage with python3v1.2.3Daniel P. Berrange2014-04-021-0/+8
| | | | | | | Add RPM deps on python/python3-nose, make RPM build run the test suite and invoke nosetests using correct python binary Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add python3 to the automated build and RPMDaniel P. Berrange2013-12-121-5/+48
| | | | | | | | This updates autobuild.sh to test the python3 build process. The RPM specfile is changed to build a libvirt-python3 RPM on Fedora > 18 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix misc RPM specfile flawsDaniel P. Berrange2013-11-281-3/+10
| | | | | | | | 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>
* Setup distutils build systemDaniel P. Berrange2013-11-221-0/+34
Create a setup.py for building libvirt python code and add supporting files Signed-off-by: Daniel P. Berrange <berrange@redhat.com>