correct licenses and provides pythonXdist

This commit is contained in:
hongjinghao 2023-01-11 11:17:52 +08:00 committed by hongjinghao
parent 1e397741c8
commit afa2e128f2

View File

@ -1,10 +1,11 @@
%global _configure ../configure %global _configure ../configure
%global python3dir %{_builddir}/python3-%{name}-%{version}-%{release}
Name: dbus-python Name: dbus-python
Version: 1.2.18 Version: 1.2.18
Release: 3 Release: 4
Summary: original Python binding for dbus Summary: original Python binding for dbus
License: MIT License: MIT and (AFL-2.1 or GPL-2.0-or-later)
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/ URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz 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 Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc
@ -46,13 +47,23 @@ developing applications that use %{name}.
%build %build
autoreconf -vif autoreconf -vif
mkdir -p python3-build install -d %{python3dir}
pushd python3-build; %configure PYTHON="%{__python3}" cp -a . %{python3dir}
%make_build; popd mv %{python3dir} python3-build
pushd python3-build
%py3_build
%configure PYTHON="%{__python3}"
%make_build
popd
%install %install
%make_install -C python3-build pushd python3-build
find %{buildroot} -name '*.la' -delete %py3_install
%make_install
popd
%delete_la
%check %check
make check -k -C python3-build || (cat python3-build/test-suite.log && true) make check -k -C python3-build || (cat python3-build/test-suite.log && true)
@ -70,6 +81,7 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && true)
%{python3_sitearch}/_dbus_bindings.so %{python3_sitearch}/_dbus_bindings.so
%{python3_sitearch}/_dbus_glib_bindings.so %{python3_sitearch}/_dbus_glib_bindings.so
%{python3_sitearch}/dbus/ %{python3_sitearch}/dbus/
%{python3_sitearch}/dbus_python-%{version}-py%{python3_version}.egg-info
%files devel %files devel
%{_includedir}/dbus-1.0/dbus/%{name}.h %{_includedir}/dbus-1.0/dbus/%{name}.h
@ -79,6 +91,9 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && true)
%doc NEWS ChangeLog README doc/API_CHANGES.txt doc/tutorial.txt %doc NEWS ChangeLog README doc/API_CHANGES.txt doc/tutorial.txt
%changelog %changelog
* Wed Jan 11 2023 hongjinghao <hongjinghao@huawei.com> - 1.2.18-4
- correct licenses and provide pythonXdist
* Tue Oct 25 2022 zhangruifang <zhangruifang1@h-partners.com> - 1.2.18-3 * Tue Oct 25 2022 zhangruifang <zhangruifang1@h-partners.com> - 1.2.18-3
- Rebuild for next release - Rebuild for next release