|
|
|
@ -1,37 +1,25 @@
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
|
# Disable python2 build by default
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global python2dir %{_builddir}/python2-%{name}-%{version}-%{release}
|
|
|
|
|
%global python3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Summary: D-Bus Python Bindings
|
|
|
|
|
Name: dbus-python
|
|
|
|
|
Version: 1.2.4
|
|
|
|
|
Release: 15%{?dist}
|
|
|
|
|
Version: 1.2.18
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
|
|
|
|
|
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc
|
|
|
|
|
# gpg --keyserver keyring.debian.org --recv-keys 36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F
|
|
|
|
|
# gpg --export --export-options export-minimal > gpgkey-36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F.gpg
|
|
|
|
|
Source2: gpgkey-36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F.gpg
|
|
|
|
|
|
|
|
|
|
# borrow centos7 patch to use sitearch properly
|
|
|
|
|
Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
|
BuildRequires: dbus-glib-devel
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python2-docutils
|
|
|
|
|
%endif # with python2
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
|
# for %%check
|
|
|
|
|
BuildRequires: dbus-x11
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python2-gobject
|
|
|
|
|
%endif # with python2
|
|
|
|
|
BuildRequires: python3-gobject
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-gobject
|
|
|
|
|
# autoreconf and friends
|
|
|
|
|
BuildRequires: autoconf-archive automake libtool
|
|
|
|
|
|
|
|
|
@ -40,27 +28,15 @@ D-Bus python bindings for use with python programs.
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%package -n python2-dbus
|
|
|
|
|
Summary: %summary
|
|
|
|
|
%{?python_provide:%python_provide python2-dbus}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2dist(setuptools)
|
|
|
|
|
# Remove before F30
|
|
|
|
|
Provides: dbus-python = %{version}-%{release}
|
|
|
|
|
Provides: dbus-python%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: dbus-python < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python2-dbus %_description
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
%package -n python3-dbus
|
|
|
|
|
%package -n python%{python3_pkgversion}-dbus
|
|
|
|
|
Summary: D-Bus bindings for python3
|
|
|
|
|
%{?python_provide:%python_provide python3-dbus}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-dbus}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
# for py3_build
|
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
%description -n python3-dbus
|
|
|
|
|
%description -n python%{python3_pkgversion}-dbus
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
@ -71,72 +47,30 @@ Headers and static libraries for hooking up custom mainloops to the dbus python
|
|
|
|
|
bindings.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
# For new arches (aarch64/ppc64le), and patch0
|
|
|
|
|
autoreconf -vif
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
mkdir -p %{python2dir}
|
|
|
|
|
cp -a . %{python2dir}
|
|
|
|
|
mv %{python2dir} python2-build
|
|
|
|
|
%endif
|
|
|
|
|
mkdir -p %{python3dir}
|
|
|
|
|
cp -a . %{python3dir}
|
|
|
|
|
mv %{python3dir} python3-build
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%global _configure ../configure
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
pushd python2-build
|
|
|
|
|
%py2_build
|
|
|
|
|
%configure PYTHON="%{__python2}"
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
pushd python3-build
|
|
|
|
|
%set_build_flags
|
|
|
|
|
%py3_build
|
|
|
|
|
%configure PYTHON="%{__python3}"
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
pushd python2-build
|
|
|
|
|
%py2_install
|
|
|
|
|
%make_install
|
|
|
|
|
popd
|
|
|
|
|
%endif # with python2
|
|
|
|
|
pushd python3-build
|
|
|
|
|
%py3_install
|
|
|
|
|
%make_install
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# unpackaged files
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
rm -fv $RPM_BUILD_ROOT%{python2_sitearch}/*.la
|
|
|
|
|
%endif # with python2
|
|
|
|
|
rm -fv $RPM_BUILD_ROOT%{python3_sitearch}/*.la
|
|
|
|
|
rm -rfv $RPM_BUILD_ROOT%{_datadir}/doc/dbus-python/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
make check -k -C python2-build
|
|
|
|
|
%endif # with python2
|
|
|
|
|
make check -k -C python3-build
|
|
|
|
|
make check -k || (cat test-suite.log && false)
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%files -n python2-dbus
|
|
|
|
|
%doc NEWS
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python2_sitearch}/*.so
|
|
|
|
|
%{python2_sitearch}/dbus/
|
|
|
|
|
%{python2_sitearch}/dbus_python*egg-info
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
%files -n python3-dbus
|
|
|
|
|
%files -n python%{python3_pkgversion}-dbus
|
|
|
|
|
%doc NEWS
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python3_sitearch}/*.so
|
|
|
|
@ -144,17 +78,65 @@ make check -k -C python3-build
|
|
|
|
|
%{python3_sitearch}/dbus_python*egg-info
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc README ChangeLog doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
|
|
|
|
|
%doc README ChangeLog doc/API_CHANGES.txt doc/tutorial.txt
|
|
|
|
|
%{_includedir}/dbus-1.0/dbus/dbus-python.h
|
|
|
|
|
%{_libdir}/pkgconfig/dbus-python.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jun 06 2019 Josh Boyer <jwboyer@redhat.com> - 1.2.4-15
|
|
|
|
|
- Backport patch from Neal Gompa <ngompa13@gmail.com> to generate pythonXdist
|
|
|
|
|
metadata
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.18-2
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Mon Jul 26 2021 David King <amigadave@amigadave.com> - 1.2.18-1
|
|
|
|
|
- Update to 1.2.18 (#1985856)
|
|
|
|
|
- Verify GPG signature of sources
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.16-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.16-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.16-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.16-2
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Tue Feb 11 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.16-1
|
|
|
|
|
- Update to 1.2.16 (#1788491)
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 16 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-9
|
|
|
|
|
- Subpackage python2-dbus has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/RetirePython2
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-8
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-7
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Feb 11 2019 Neal Gompa <ngompa13@gmail.com> - 1.2.8-5
|
|
|
|
|
- Run setuptools build to generate pythonXdist() metadata (#1663693)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Sun Jul 22 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.4-14
|
|
|
|
|
- Conditionalize the python2 subpackage
|
|
|
|
|
* Wed May 23 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-1
|
|
|
|
|
- Update to 1.2.8 (#1539950) (#1578726)
|
|
|
|
|
- Cat the logs if tests failed
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|