dbus-python3-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.3.2
  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. %debug_package
  28. %build
  29. %configure PYTHON=/usr/bin/python3
  30. %{__make} %{?_smp_mflags}
  31. %install
  32. %{__rm} -rf ${RPM_BUILD_ROOT}
  33. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  34. # remove unnecessary *.la files
  35. find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
  36. # remove conflict files with dbus-python
  37. rm -f ${RPM_BUILD_ROOT}%{_includedir}/dbus-1.0/dbus/dbus-python.h
  38. rm -f ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig/dbus-python.pc
  39. rm -f ${RPM_BUILD_ROOT}%{_docdir}/dbus-python/*
  40. %clean
  41. rm -rf ${RPM_BUILD_ROOT}
  42. %files
  43. %defattr(-,root,root)
  44. %license COPYING
  45. %doc ChangeLog README NEWS
  46. %{python3_sitearch}/*.so
  47. %dir %{python3_sitelib}/dbus
  48. %{python3_sitelib}/dbus/*
  49. %changelog
  50. * Fri Oct 28 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.2-1
  51. - new upstream release.
  52. * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.16-1
  53. - new upstream release.
  54. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-3
  55. - rebuild with python3-3.5.2
  56. * Sun May 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-2
  57. - rebuild with python3-3.4.3
  58. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  59. - initial build