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 バインディング |
---|
7 | Group: system |
---|
8 | Version: 1.2.16 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | License: MIT |
---|
14 | URL: https://www.freedesktop.org/software/dbus/ |
---|
15 | Source0: https://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz |
---|
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 |
---|
21 | BuildRequires: python3-rpm-macros |
---|
22 | Requires: python3 |
---|
23 | Provides: python3-dbus = %{version}-%{release} |
---|
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 | |
---|
35 | |
---|
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 | |
---|
57 | |
---|
58 | %files |
---|
59 | %defattr(-,root,root) |
---|
60 | %license COPYING |
---|
61 | %doc ChangeLog README NEWS |
---|
62 | %{python3_sitearch}/*.so |
---|
63 | %dir %{python3_sitelib}/dbus |
---|
64 | %{python3_sitelib}/dbus/* |
---|
65 | |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.16-1 |
---|
69 | - new upstream release. |
---|
70 | |
---|
71 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-3 |
---|
72 | - rebuild with python3-3.5.2 |
---|
73 | |
---|
74 | * Sun May 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-2 |
---|
75 | - rebuild with python3-3.4.3 |
---|
76 | |
---|
77 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
78 | - initial build |
---|
79 | |
---|