Blame SPECS/dbus-python.spec

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