Blame SPECS/dbus-python.spec

7f9d7a
%if 0%{?rhel} > 7
7f9d7a
# Disable python2 build by default
7f9d7a
%bcond_with python2
7f9d7a
%else
7f9d7a
%bcond_without python2
7f9d7a
%endif
7f9d7a
7f9d7a
%global python2dir %{_builddir}/python2-%{name}-%{version}-%{release}
7f9d7a
%global python3dir %{_builddir}/python3-%{name}-%{version}-%{release}
7f9d7a
7f9d7a
Summary: D-Bus Python Bindings
7f9d7a
Name:    dbus-python
7f9d7a
Version: 1.2.4
7f9d7a
Release: 15%{?dist}
7f9d7a
7f9d7a
License: MIT
7f9d7a
URL:     http://www.freedesktop.org/wiki/Software/DBusBindings/
7f9d7a
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
7f9d7a
Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc
7f9d7a
7f9d7a
# borrow centos7 patch to use sitearch properly
7f9d7a
Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch
7f9d7a
7f9d7a
BuildRequires: dbus-devel
7f9d7a
BuildRequires: dbus-glib-devel
7f9d7a
%if %{with python2}
7f9d7a
BuildRequires: python2-docutils
7f9d7a
%endif # with python2
7f9d7a
# for %%check
7f9d7a
BuildRequires: dbus-x11
7f9d7a
%if %{with python2}
7f9d7a
BuildRequires: python2-gobject
7f9d7a
%endif # with python2
7f9d7a
BuildRequires: python3-gobject
7f9d7a
# autoreconf and friends
7f9d7a
BuildRequires: autoconf-archive automake libtool
7f9d7a
7f9d7a
%global _description\
7f9d7a
D-Bus python bindings for use with python programs.
7f9d7a
7f9d7a
%description %_description
7f9d7a
7f9d7a
%if %{with python2}
7f9d7a
%package -n python2-dbus
7f9d7a
Summary: %summary
7f9d7a
%{?python_provide:%python_provide python2-dbus}
7f9d7a
BuildRequires: python2-devel
7f9d7a
BuildRequires: python2dist(setuptools)
7f9d7a
# Remove before F30
7f9d7a
Provides: dbus-python = %{version}-%{release}
7f9d7a
Provides: dbus-python%{?_isa} = %{version}-%{release}
7f9d7a
Obsoletes: dbus-python < %{version}-%{release}
7f9d7a
7f9d7a
%description -n python2-dbus %_description
7f9d7a
%endif # with python2
7f9d7a
7f9d7a
%package -n python3-dbus
7f9d7a
Summary: D-Bus bindings for python3
7f9d7a
%{?python_provide:%python_provide python3-dbus}
7f9d7a
BuildRequires: python3-devel
7f9d7a
BuildRequires: python3dist(setuptools)
7f9d7a
7f9d7a
%description -n python3-dbus
7f9d7a
%{summary}.
7f9d7a
7f9d7a
%package devel
7f9d7a
Summary: Libraries and headers for dbus-python
7f9d7a
7f9d7a
%description devel
7f9d7a
Headers and static libraries for hooking up custom mainloops to the dbus python
7f9d7a
bindings.
7f9d7a
7f9d7a
%prep
7f9d7a
%autosetup -p1
7f9d7a
7f9d7a
# For new arches (aarch64/ppc64le), and patch0
7f9d7a
autoreconf -vif
7f9d7a
7f9d7a
%if %{with python2}
7f9d7a
mkdir -p %{python2dir}
7f9d7a
cp -a . %{python2dir}
7f9d7a
mv %{python2dir} python2-build
7f9d7a
%endif
7f9d7a
mkdir -p %{python3dir}
7f9d7a
cp -a . %{python3dir}
7f9d7a
mv %{python3dir} python3-build
7f9d7a
7f9d7a
%build
7f9d7a
%global _configure ../configure
7f9d7a
7f9d7a
%if %{with python2}
7f9d7a
pushd python2-build
7f9d7a
%py2_build
7f9d7a
%configure PYTHON="%{__python2}"
7f9d7a
%make_build
7f9d7a
popd
7f9d7a
%endif # with python2
7f9d7a
7f9d7a
pushd python3-build
7f9d7a
%py3_build
7f9d7a
%configure PYTHON="%{__python3}"
7f9d7a
%make_build
7f9d7a
popd
7f9d7a
7f9d7a
%install
7f9d7a
%if %{with python2}
7f9d7a
pushd python2-build
7f9d7a
%py2_install
7f9d7a
%make_install
7f9d7a
popd
7f9d7a
%endif # with python2
7f9d7a
pushd python3-build
7f9d7a
%py3_install
7f9d7a
%make_install
7f9d7a
popd
7f9d7a
7f9d7a
# unpackaged files
7f9d7a
%if %{with python2}
7f9d7a
rm -fv  $RPM_BUILD_ROOT%{python2_sitearch}/*.la
7f9d7a
%endif # with python2
7f9d7a
rm -fv  $RPM_BUILD_ROOT%{python3_sitearch}/*.la
7f9d7a
rm -rfv $RPM_BUILD_ROOT%{_datadir}/doc/dbus-python/
7f9d7a
7f9d7a
%check
7f9d7a
%if %{with python2}
7f9d7a
make check -k -C python2-build
7f9d7a
%endif # with python2
7f9d7a
make check -k -C python3-build
7f9d7a
7f9d7a
%if %{with python2}
7f9d7a
%files -n python2-dbus
7f9d7a
%doc NEWS
7f9d7a
%license COPYING
7f9d7a
%{python2_sitearch}/*.so
7f9d7a
%{python2_sitearch}/dbus/
7f9d7a
%{python2_sitearch}/dbus_python*egg-info
7f9d7a
%endif # with python2
7f9d7a
7f9d7a
%files -n python3-dbus
7f9d7a
%doc NEWS
7f9d7a
%license COPYING
7f9d7a
%{python3_sitearch}/*.so
7f9d7a
%{python3_sitearch}/dbus/
7f9d7a
%{python3_sitearch}/dbus_python*egg-info
7f9d7a
7f9d7a
%files devel
7f9d7a
%doc README ChangeLog doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
7f9d7a
%{_includedir}/dbus-1.0/dbus/dbus-python.h
7f9d7a
%{_libdir}/pkgconfig/dbus-python.pc
7f9d7a
7f9d7a
%changelog
7f9d7a
* Thu Jun 06 2019 Josh Boyer <jwboyer@redhat.com> - 1.2.4-15
7f9d7a
- Backport patch from Neal Gompa <ngompa13@gmail.com> to generate pythonXdist
7f9d7a
  metadata
7f9d7a
7f9d7a
* Sun Jul 22 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.4-14
7f9d7a
- Conditionalize the python2 subpackage
7f9d7a
7f9d7a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-13
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7f9d7a
7f9d7a
* Wed Jan 03 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.4-12
7f9d7a
- Update Python 2 dependency declarations to new packaging standards
7f9d7a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
7f9d7a
7f9d7a
* Wed Nov 08 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.4-11
7f9d7a
- Cleanups in packaging
7f9d7a
7f9d7a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.4-10
7f9d7a
- Also add Provides for the old name without %%_isa
7f9d7a
- Use %%python_provide for the python3 subpackage and drop manual Provide which
7f9d7a
  conflicts with %%python_provide in the python2 subpackage.
7f9d7a
7f9d7a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.4-9
7f9d7a
- Python 2 binary package renamed to python2-dbus
7f9d7a
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
7f9d7a
7f9d7a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-8
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7f9d7a
7f9d7a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-7
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7f9d7a
7f9d7a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-6
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7f9d7a
7f9d7a
* Wed Dec 21 2016 Kevin Fenzi <kevin@scrye.com> - 1.2.4-5
7f9d7a
- Rebuild again for Python 3.6
7f9d7a
7f9d7a
* Sun Dec 11 2016 leigh scott <leigh123linux@googlemail.com> - 1.2.4-4
7f9d7a
- Add missing build requires needed for check
7f9d7a
7f9d7a
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.2.4-3
7f9d7a
- Rebuild for Python 3.6
7f9d7a
7f9d7a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
7f9d7a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7f9d7a
7f9d7a
* Mon Mar 07 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.2.4-1
7f9d7a
- Update to 1.2.4 (#1310915)
7f9d7a
7f9d7a
* Tue Feb 23 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.2.2-1
7f9d7a
- Update to 1.2.2 (#1310915)
7f9d7a
- add build requires autoconf-archive
7f9d7a
7f9d7a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-13
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7f9d7a
7f9d7a
* Mon Nov 16 2015 Leigh Scott <leigh123linux@googlemail.com> - 1.2.0-12
7f9d7a
- Drop object manager patch
7f9d7a
7f9d7a
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.2.0-11
7f9d7a
- Rebuilt for Python3.5 rebuild
7f9d7a
7f9d7a
* Wed Aug 19 2015 Leigh Scott <leigh123linux@googlemail.com> - 1.2.0-10
7f9d7a
- rebuilt
7f9d7a
7f9d7a
* Wed Aug 19 2015 Leigh Scott <leigh123linux@googlemail.com> - 1.2.0-9
7f9d7a
- rebuilt
7f9d7a
7f9d7a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-8
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7f9d7a
7f9d7a
* Thu Nov 06 2014 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-7
7f9d7a
- python2_sitelib should be python2_sitearch (#1161121)
7f9d7a
- update URL, s/python/python2/ a bit
7f9d7a
7f9d7a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-6
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7f9d7a
7f9d7a
* Fri Jun 20 2014 Dan Mashal <dan.mashal@fedoraproject.org> - 1.2.0-5
7f9d7a
- Add patch needed that adds Object Manager functionality for Fedora server dbus api.
7f9d7a
7f9d7a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7f9d7a
7f9d7a
* Thu May 29 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.0-3
7f9d7a
- Drop old python3 conditionals, SPEC cleanups
7f9d7a
7f9d7a
* Mon May 12 2014 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-2
7f9d7a
- rebuild (f21-python)
7f9d7a
7f9d7a
* Mon Oct 28 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-1
7f9d7a
- dbus-python-1.2.0 is available (#1021817)
7f9d7a
7f9d7a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-6
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7f9d7a
7f9d7a
* Thu Apr 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-5
7f9d7a
- Add upstream patch to fix pygobject 3.8
7f9d7a
7f9d7a
* Fri Mar 29 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.1.1-4
7f9d7a
- Apply patch to support aarch64 (#925236)
7f9d7a
- Fix URL
7f9d7a
7f9d7a
* Mon Feb 25 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-3
7f9d7a
- python3-dbus subpkg (#892474)
7f9d7a
- (main) Provides: python-dbus
7f9d7a
- BR: python-docutils
7f9d7a
- .spec cosmetics
7f9d7a
- skip failed tests on rawhide (#913936)
7f9d7a
7f9d7a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7f9d7a
7f9d7a
* Tue Aug 07 2012 Rex Dieter <rdieter@fedoraproject.org> 1.1.1-1
7f9d7a
- dbus-python-1.1.1 (#800487)
7f9d7a
7f9d7a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-10
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f9d7a
7f9d7a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-9
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f9d7a
7f9d7a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-8
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7f9d7a
7f9d7a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.83.0-7
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
7f9d7a
7f9d7a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-6
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7f9d7a
7f9d7a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-5
7f9d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7f9d7a
7f9d7a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.83.0-4
7f9d7a
- Rebuild for Python 2.6
7f9d7a
7f9d7a
* Tue Sep 16 2008 Marco Pesenti Gritti - 0.83.0-3
7f9d7a
- Add patch for https://bugs.freedesktop.org/show_bug.cgi?id=17551
7f9d7a
7f9d7a
* Tue Aug 05 2008  Huang Peng <phuang@redhat.com> - 0.83.0-2
7f9d7a
- Update to 0.83.0.
7f9d7a
7f9d7a
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.82.4-3
7f9d7a
- fix license tag
7f9d7a
7f9d7a
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.82.4-2
7f9d7a
- Autorebuild for GCC 4.3
7f9d7a
7f9d7a
* Sun Jan 20 2008 Matthias Clasen <mclasen@redhat.com> - 0.82.4-1
7f9d7a
- Update to 0.82.4
7f9d7a
7f9d7a
* Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.82.0-3
7f9d7a
- Rebuild against new dbus-glib
7f9d7a
7f9d7a
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.82.0-2
7f9d7a
- Rebuild for selinux ppc32 issue.
7f9d7a
7f9d7a
* Fri Jun 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.82.0-1
7f9d7a
- Update to 0.82.0
7f9d7a
- Put all docs in the usual place
7f9d7a
7f9d7a
* Tue Apr 03 2007 David Zeuthen <davidz@redhat.com> - 0.80.2-3
7f9d7a
- Rebuild
7f9d7a
7f9d7a
* Tue Apr 03 2007 David Zeuthen <davidz@redhat.com> - 0.80.2-2
7f9d7a
- Don't examine args for functions declared METH_NOARGS (#235017)
7f9d7a
7f9d7a
* Tue Feb 13 2007 John (J5) Palmieri <johnp@redhat.com> - 0.80.2-1
7f9d7a
- upgrade to 0.80.2 which fixes some memleaks
7f9d7a
7f9d7a
* Wed Jan 24 2007 John (J5) Palmieri <johnp@redhat.com> - 0.80.1-1
7f9d7a
- upgrade to 0.80.1
7f9d7a
- remove dependency on Pyrex and libxml2
7f9d7a
- some API breakage,
7f9d7a
  please see http://dbus.freedesktop.org/doc/dbus-python/NEWS.html
7f9d7a
  for notes on changes
7f9d7a
7f9d7a
* Wed Jan  3 2007 David Zeuthen <davidz@redhat.com> - 0.70-9%{?dist}
7f9d7a
- rebuild against new Pyrex
7f9d7a
7f9d7a
* Wed Dec  6 2006 Jeremy Katz <katzj@redhat.com> - 0.70-8
7f9d7a
- rebuild against python 2.5
7f9d7a
7f9d7a
* Tue Nov  7 2006 Matthias Clasen <mclasen@redhat.com> - 0.70-7
7f9d7a
- Fix a typo in the spec file
7f9d7a
7f9d7a
* Fri Aug 18 2006 Karsten Hopp <karsten@redhat.com> - 0.70-6
7f9d7a
- require libxml2-python for site-packages/dbus/introspect_parser.py
7f9d7a
7f9d7a
* Thu Jul 20 2006 Jesse Keating <jkeating@redhat.com> - 0.70-5
7f9d7a
- Remove unnecessary obsoletes
7f9d7a
7f9d7a
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-4
7f9d7a
- Try python_sitearch this time
7f9d7a
7f9d7a
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-3
7f9d7a
- Add a BR on dbus-devel
7f9d7a
7f9d7a
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-2
7f9d7a
- Spec file cleanups
7f9d7a
- Add PKG_CONFIG_PATH
7f9d7a
7f9d7a
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1
7f9d7a
- Initial package import