python-jeepney/python-jeepney.spec

104 lines
3.3 KiB
RPMSpec
Raw Normal View History

2020-12-03 17:51:52 +08:00
%global _empty_manifest_terminate_build 0
Name: python-jeepney
Version: 0.6.0
Release: 1
Summary: Low-level, pure Python DBus protocol wrapper.
License: MIT License
URL: https://gitlab.com/takluyver/jeepney
Source0: https://files.pythonhosted.org/packages/bb/4f/06017fbbe94eeaf1e7852c2dd7a065ca7d813e17b4500f4e842531d72593/jeepney-0.6.0.tar.gz
BuildArch: noarch
Requires: python3-testpath
Recommends: %{name}-help = %{version}-%{release}
%description
This is a low-level, pure Python DBus protocol client. It has an `I/O-free
<https://sans-io.readthedocs.io/>`__ core, and integration modules for different
event loops.
DBus is an inter-process communication system, mainly used in Linux.
`Jeepney docs on Readthedocs <https://jeepney.readthedocs.io/en/latest/>`__
This project is experimental, and there are a
number of `more mature Python DBus bindings <https://www.freedesktop.org/wiki/Software/DBusBindings/#python>`__.
%package -n python3-jeepney
Summary: Low-level, pure Python DBus protocol wrapper.
Provides: python-jeepney
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-jeepney
This is a low-level, pure Python DBus protocol client. It has an `I/O-free
<https://sans-io.readthedocs.io/>`__ core, and integration modules for different
event loops.
DBus is an inter-process communication system, mainly used in Linux.
`Jeepney docs on Readthedocs <https://jeepney.readthedocs.io/en/latest/>`__
This project is experimental, and there are a
number of `more mature Python DBus bindings <https://www.freedesktop.org/wiki/Software/DBusBindings/#python>`__.
%package help
Summary: Development documents and examples for jeepney
Provides: python3-jeepney-doc
%description help
This is a low-level, pure Python DBus protocol client. It has an `I/O-free
<https://sans-io.readthedocs.io/>`__ core, and integration modules for different
event loops.
DBus is an inter-process communication system, mainly used in Linux.
`Jeepney docs on Readthedocs <https://jeepney.readthedocs.io/en/latest/>`__
This project is experimental, and there are a
number of `more mature Python DBus bindings <https://www.freedesktop.org/wiki/Software/DBusBindings/#python>`__.
%prep
%autosetup -n jeepney-0.6.0
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-jeepney -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_pkgdocdir}
%changelog
* Thu Dec 3 2020 baizhonggui <baizhonggui@huawei.com>
- Package init