107 lines
2.7 KiB
RPMSpec
107 lines
2.7 KiB
RPMSpec
|
|
%global _configure ../configure
|
||
|
|
|
||
|
|
Name: dbus-python
|
||
|
|
Version: 1.2.8
|
||
|
|
Release: 4
|
||
|
|
Summary: original Python binding for dbus
|
||
|
|
License: MIT
|
||
|
|
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
|
||
|
|
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
|
||
|
|
Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc
|
||
|
|
Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch
|
||
|
|
|
||
|
|
BuildRequires: dbus-devel dbus-glib-devel python2-docutils
|
||
|
|
BuildRequires: dbus-x11 python2-gobject python3-gobject
|
||
|
|
BuildRequires: git autoconf-archive automake libtool
|
||
|
|
|
||
|
|
%description
|
||
|
|
Dbus-python is the original Python binding for dbus, the reference
|
||
|
|
implementation of the D-Bus protocol.
|
||
|
|
|
||
|
|
%package -n python2-dbus
|
||
|
|
Summary: Python2 bindings for dbus
|
||
|
|
BuildRequires: python2-devel
|
||
|
|
Provides: %{name} = %{version}-%{release}
|
||
|
|
Provides: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description -n python2-dbus
|
||
|
|
Python2 bindings for dbus.
|
||
|
|
|
||
|
|
%package -n python3-dbus
|
||
|
|
Summary: Python3 bindings for dbus
|
||
|
|
BuildRequires: python3-devel
|
||
|
|
Provides: %{name} = %{version}-%{release}
|
||
|
|
Provides: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description -n python3-dbus
|
||
|
|
Python3 bindings for dbus
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for %{name}
|
||
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
The %{name}-devel package contains libraries and header files for
|
||
|
|
developing applications that use %{name}.
|
||
|
|
|
||
|
|
%package help
|
||
|
|
Summary: Doc files for %{name}
|
||
|
|
Buildarch: noarch
|
||
|
|
|
||
|
|
%description help
|
||
|
|
The %{name}-help package contains doc files for %{name}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{name}-%{version} -p1 -S git
|
||
|
|
|
||
|
|
%build
|
||
|
|
autoreconf -vif
|
||
|
|
|
||
|
|
mkdir -p python2-build python3-build
|
||
|
|
pushd python2-build; %configure PYTHON="%{__python2}"
|
||
|
|
%make_build; popd
|
||
|
|
|
||
|
|
pushd python3-build; %configure PYTHON="%{__python3}"
|
||
|
|
%make_build; popd
|
||
|
|
|
||
|
|
%install
|
||
|
|
%make_install -C python2-build
|
||
|
|
%make_install -C python3-build
|
||
|
|
find %{buildroot} -name '*.la' -delete
|
||
|
|
|
||
|
|
%check
|
||
|
|
make check -k -C python2-build
|
||
|
|
make check -k -C python3-build
|
||
|
|
|
||
|
|
%pre
|
||
|
|
|
||
|
|
%preun
|
||
|
|
|
||
|
|
%post -p /sbin/ldconfig
|
||
|
|
|
||
|
|
%postun -p /sbin/ldconfig
|
||
|
|
|
||
|
|
%files -n python2-dbus
|
||
|
|
%license COPYING
|
||
|
|
%{python2_sitearch}/_dbus_bindings.so
|
||
|
|
%{python2_sitearch}/_dbus_glib_bindings.so
|
||
|
|
%{python2_sitearch}/dbus/
|
||
|
|
|
||
|
|
%files -n python3-dbus
|
||
|
|
%license COPYING
|
||
|
|
%{python3_sitearch}/_dbus_bindings.so
|
||
|
|
%{python3_sitearch}/_dbus_glib_bindings.so
|
||
|
|
%{python3_sitearch}/*.so
|
||
|
|
%{python3_sitearch}/dbus/
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%{_includedir}/dbus-1.0/dbus/%{name}.h
|
||
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
||
|
|
|
||
|
|
%files help
|
||
|
|
%doc NEWS ChangeLog README doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 1.2.8-4
|
||
|
|
- Package init
|