dbus-python3-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %define dbus_glib_version 0.70
  2. %define dbus_version 1.6
  3. Name: dbus-python3
  4. Summary: D-Bus Python3 Bindings
  5. Summary(ja): D-Bus Python3 バインディング
  6. Group: system
  7. Version: 1.2.16
  8. Release: 1%{?_dist_release}
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: MIT
  12. URL: https://www.freedesktop.org/software/dbus/
  13. Source0: https://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: dbus-devel >= %{dbus_version}
  16. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  17. BuildRequires: python3-devel
  18. BuildRequires: python3-rpm-macros
  19. Requires: python3
  20. Provides: python3-dbus = %{version}-%{release}
  21. %description
  22. D-Bus python3 bindings for use with python programs.
  23. %description -l ja
  24. D-Bus を python3 プログラムから使う為のバインディングです。
  25. %prep
  26. %setup -q -n dbus-python-%{version}
  27. %build
  28. %configure PYTHON=/usr/bin/python3
  29. %{__make} %{?_smp_mflags}
  30. %install
  31. %{__rm} -rf ${RPM_BUILD_ROOT}
  32. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  33. # remove unnecessary *.la files
  34. find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
  35. # remove conflict files with dbus-python
  36. rm -f ${RPM_BUILD_ROOT}%{_includedir}/dbus-1.0/dbus/dbus-python.h
  37. rm -f ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig/dbus-python.pc
  38. rm -f ${RPM_BUILD_ROOT}%{_docdir}/dbus-python/*
  39. %clean
  40. rm -rf ${RPM_BUILD_ROOT}
  41. %files
  42. %defattr(-,root,root)
  43. %license COPYING
  44. %doc ChangeLog README NEWS
  45. %{python3_sitearch}/*.so
  46. %dir %{python3_sitelib}/dbus
  47. %{python3_sitelib}/dbus/*
  48. %changelog
  49. * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.16-1
  50. - new upstream release.
  51. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-3
  52. - rebuild with python3-3.5.2
  53. * Sun May 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-2
  54. - rebuild with python3-3.4.3
  55. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  56. - initial build