[8355] | 1 | %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
---|
| 2 | %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} |
---|
| 3 | |
---|
| 4 | %define dbus_glib_version 0.70 |
---|
| 5 | %define dbus_version 1.6 |
---|
[10405] | 6 | %define pkg_release 3%{?_dist_release} |
---|
[8355] | 7 | |
---|
| 8 | Name: dbus-python3 |
---|
| 9 | Summary: D-Bus Python3 Bindings |
---|
| 10 | Summary(ja): D-Bus Python3 バインディング |
---|
| 11 | Version: 1.2.0 |
---|
| 12 | Release: %{pkg_release} |
---|
| 13 | |
---|
| 14 | Group: System Environment/Libraries |
---|
| 15 | License: MIT |
---|
| 16 | URL: http://www.freedesktop.org/software/dbus/ |
---|
| 17 | |
---|
| 18 | Source0: http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz |
---|
| 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 22 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
| 23 | BuildRequires: python3-devel |
---|
[10405] | 24 | Requires: python3 |
---|
[8355] | 25 | |
---|
| 26 | %description |
---|
| 27 | D-Bus python3 bindings for use with python programs. |
---|
| 28 | |
---|
| 29 | %description -l ja |
---|
| 30 | D-Bus を python3 プログラムから使う為のバインディングです。 |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q -n dbus-python-%{version} |
---|
| 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 | %files |
---|
| 58 | %defattr(-,root,root) |
---|
| 59 | %doc COPYING ChangeLog README NEWS |
---|
| 60 | %{python3_sitearch}/*.so |
---|
| 61 | %{python3_sitelib}/dbus/*.py* |
---|
| 62 | %{python3_sitelib}/dbus/mainloop/*.py* |
---|
| 63 | |
---|
| 64 | %changelog |
---|
[10405] | 65 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-3 |
---|
| 66 | - rebuild with python3-3.5.2 |
---|
| 67 | |
---|
[9585] | 68 | * Sun May 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-2 |
---|
| 69 | - rebuild with python3-3.4.3 |
---|
| 70 | |
---|
[8355] | 71 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
| 72 | - initial build |
---|
| 73 | |
---|