Run setuptools build to generate pythonXdist() metadata (#1663693)
This commit is contained in:
parent
6798431e90
commit
7505b46ea4
@ -1,7 +1,10 @@
|
|||||||
|
%global python2dir %{_builddir}/python2-%{name}-%{version}-%{release}
|
||||||
|
%global python3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||||
|
|
||||||
Summary: D-Bus Python Bindings
|
Summary: D-Bus Python Bindings
|
||||||
Name: dbus-python
|
Name: dbus-python
|
||||||
Version: 1.2.8
|
Version: 1.2.8
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
|
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
|
||||||
@ -30,6 +33,8 @@ D-Bus python bindings for use with python programs.
|
|||||||
Summary: %summary
|
Summary: %summary
|
||||||
%{?python_provide:%python_provide python2-dbus}
|
%{?python_provide:%python_provide python2-dbus}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
# for py2_build
|
||||||
|
BuildRequires: python2dist(setuptools)
|
||||||
# Remove before F30
|
# Remove before F30
|
||||||
Provides: dbus-python = %{version}-%{release}
|
Provides: dbus-python = %{version}-%{release}
|
||||||
Provides: dbus-python%{?_isa} = %{version}-%{release}
|
Provides: dbus-python%{?_isa} = %{version}-%{release}
|
||||||
@ -41,6 +46,8 @@ Obsoletes: dbus-python < %{version}-%{release}
|
|||||||
Summary: D-Bus bindings for python3
|
Summary: D-Bus bindings for python3
|
||||||
%{?python_provide:%python_provide python3-dbus}
|
%{?python_provide:%python_provide python3-dbus}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
# for py3_build
|
||||||
|
BuildRequires: python3dist(setuptools)
|
||||||
|
|
||||||
%description -n python3-dbus
|
%description -n python3-dbus
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -55,24 +62,44 @@ bindings.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
|
||||||
# For new arches (aarch64/ppc64le), and patch0
|
# For new arches (aarch64/ppc64le), and patch0
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
%global _configure ../configure
|
|
||||||
|
|
||||||
mkdir python2-build; pushd python2-build
|
# Copy the source trees into subdirs for setup.py stuff
|
||||||
|
mkdir -p %{python2dir}
|
||||||
|
cp -a . %{python2dir}
|
||||||
|
mkdir -p %{python3dir}
|
||||||
|
cp -a . %{python3dir}
|
||||||
|
|
||||||
|
mv %{python2dir} python2-build
|
||||||
|
mv %{python3dir} python3-build
|
||||||
|
|
||||||
|
%build
|
||||||
|
%set_build_flags
|
||||||
|
# Yes, this is gross, but this gets us all the stuff set up correctly...
|
||||||
|
pushd python2-build
|
||||||
|
%py2_build
|
||||||
%configure PYTHON="%{__python2}"
|
%configure PYTHON="%{__python2}"
|
||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
mkdir python3-build; pushd python3-build
|
pushd python3-build
|
||||||
|
%py3_build
|
||||||
%configure PYTHON="%{__python3}"
|
%configure PYTHON="%{__python3}"
|
||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -C python2-build
|
# And the grossness continues...
|
||||||
%make_install -C python3-build
|
pushd python2-build
|
||||||
|
%py2_install
|
||||||
|
%make_install
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd python3-build
|
||||||
|
%py3_install
|
||||||
|
%make_install
|
||||||
|
popd
|
||||||
|
|
||||||
# unpackaged files
|
# unpackaged files
|
||||||
rm -fv $RPM_BUILD_ROOT%{python2_sitearch}/*.la
|
rm -fv $RPM_BUILD_ROOT%{python2_sitearch}/*.la
|
||||||
@ -88,12 +115,14 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && false)
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%{python2_sitearch}/*.so
|
%{python2_sitearch}/*.so
|
||||||
%{python2_sitearch}/dbus/
|
%{python2_sitearch}/dbus/
|
||||||
|
%{python2_sitearch}/dbus_python*egg-info
|
||||||
|
|
||||||
%files -n python3-dbus
|
%files -n python3-dbus
|
||||||
%doc NEWS
|
%doc NEWS
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python3_sitearch}/*.so
|
%{python3_sitearch}/*.so
|
||||||
%{python3_sitearch}/dbus/
|
%{python3_sitearch}/dbus/
|
||||||
|
%{python3_sitearch}/dbus_python*egg-info
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc README ChangeLog doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
|
%doc README ChangeLog doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
|
||||||
@ -101,6 +130,9 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && false)
|
|||||||
%{_libdir}/pkgconfig/dbus-python.pc
|
%{_libdir}/pkgconfig/dbus-python.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user