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