python-jeepney/python-jeepney.spec

107 lines
3.4 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.7.1
2020-12-03 17:51:52 +08:00
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/09/0d/81744e179cf3aede2d117c20c6d5b97a62ffe16b2ca5d856e068e81c7a68/jeepney-0.7.1.tar.gz
2020-12-03 17:51:52 +08:00
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.7.1
2020-12-03 17:51:52 +08:00
%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
2020-12-03 17:51:52 +08:00
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-03 17:51:52 +08:00
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-03 17:51:52 +08:00
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-03 17:51:52 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2020-12-03 17:51:52 +08:00
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
* Mon Jul 25 2022 renliang16 <renliang@uniontech.com> - 0.7.1-1
- Upgrade package python3-jeepney to version 0.7.1
2020-12-03 17:51:52 +08:00
* Thu Dec 3 2020 baizhonggui <baizhonggui@huawei.com>
- Package init