From cf0572176d4faad730b13bdcecf8a696faf3fae5 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Thu, 29 May 2014 16:28:59 +0100 Subject: [PATCH] Drop old python3 conditionals, SPEC cleanups --- dbus-python.spec | 44 +++++++++++++++----------------------------- 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/dbus-python.spec b/dbus-python.spec index 3b630f2..03b3eda 100644 --- a/dbus-python.spec +++ b/dbus-python.spec @@ -1,29 +1,22 @@ - -%if 0%{?fedora} > 17 -%global python3 1 -%endif - Summary: D-Bus Python Bindings Name: dbus-python Version: 1.2.0 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: http://www.freedesktop.org/software/dbus-python 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 -# autoreconf and friends -BuildRequires: autoconf automake libtool BuildRequires: dbus-devel BuildRequires: dbus-glib-devel BuildRequires: python-devel BuildRequires: python-docutils -%if 0%{?python3} BuildRequires: python3-devel -%endif # for %%check BuildRequires: dbus-x11 pygobject3 +# autoreconf and friends +BuildRequires: autoconf automake libtool Provides: python-dbus = %{version}-%{release} Provides: python-dbus%{?_isa} = %{version}-%{release} @@ -47,66 +40,59 @@ Summary: D-Bus bindings for python3 %prep %setup -q - -# refresh autofoo, fix/improve aarch64 support in particular, -# which gets missed due to builddir hackery below -- rex -autoreconf -fi - +# For new arches (aarch64/ppc64le) +autoreconf -vif %build %global _configure ../configure mkdir python2-build; pushd python2-build -%configure PYTHON=%{__python} +%configure PYTHON=python make %{?_smp_mflags} popd -%if 0%{?python3} mkdir python3-build; pushd python3-build -%configure PYTHON=%{__python3} +%configure PYTHON=python3 make %{?_smp_mflags} popd -%endif %install -%if 0%{?python3} make install DESTDIR=$RPM_BUILD_ROOT -C python3-build -%endif make install DESTDIR=$RPM_BUILD_ROOT -C python2-build # unpackaged files -rm -fv $RPM_BUILD_ROOT%{python_sitearch}/*.la -rm -fv $RPM_BUILD_ROOT%{python3_sitearch}/*.la +find %{buildroot} -type f -name "*.la" -delete rm -rfv $RPM_BUILD_ROOT%{_datadir}/doc/dbus-python/ %check make check -k -C python2-build -%if 0%{?python3} + make check -k -C python3-build -%endif %files -%doc COPYING ChangeLog README NEWS +%doc COPYING NEWS %{python_sitearch}/*.so %{python_sitelib}/dbus/ %files devel -%doc doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt +%doc README ChangeLog doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt %{_includedir}/dbus-1.0/dbus/dbus-python.h %{_libdir}/pkgconfig/dbus-python.pc -%if 0%{?python3} %files -n python3-dbus +%doc COPYING %{python3_sitearch}/*.so %{python3_sitelib}/dbus/ -%endif %changelog +* Thu May 29 2014 Peter Robinson 1.2.0-3 +- Drop old python3 conditionals, SPEC cleanups + * Mon May 12 2014 Rex Dieter 1.2.0-2 - rebuild (f21-python)