diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:46:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:46:42 +0000 |
commit | b89e4b3f1f70ac38428cd03372f193901823ceef (patch) | |
tree | c6f937ebf5c5f0b73ab4e096c578c1c3660599e2 | |
parent | 9785a7adcebcde525a1e15d24accac30927e041f (diff) |
automatic import of python-pyfritzhomeopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyfritzhome.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyfritzhome-0.6.8.tar.gz diff --git a/python-pyfritzhome.spec b/python-pyfritzhome.spec new file mode 100644 index 0000000..efcedf5 --- /dev/null +++ b/python-pyfritzhome.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyfritzhome +Version: 0.6.8 +Release: 1 +Summary: Fritz!Box Smarthome Python Library +License: MIT +URL: http://github.com/hthiery/python-fritzhome +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c7/a6/31a5acb76c5408c0dd9481df6528fcd8e7aa41630296c20665b8b2cdebb2/pyfritzhome-0.6.8.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +|BuildStatus| |PypiVersion| |PyPiPythonVersions| |Coveralls| |CodeClimate| |Codacy| + +%package -n python3-pyfritzhome +Summary: Fritz!Box Smarthome Python Library +Provides: python-pyfritzhome +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyfritzhome +|BuildStatus| |PypiVersion| |PyPiPythonVersions| |Coveralls| |CodeClimate| |Codacy| + +%package help +Summary: Development documents and examples for pyfritzhome +Provides: python3-pyfritzhome-doc +%description help +|BuildStatus| |PypiVersion| |PyPiPythonVersions| |Coveralls| |CodeClimate| |Codacy| + +%prep +%autosetup -n pyfritzhome-0.6.8 + +%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-pyfritzhome -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.8-1 +- Package Spec generated @@ -0,0 +1 @@ +5fb14f4706745fdb1e7895a7741073c7 pyfritzhome-0.6.8.tar.gz |