diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:27:35 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:27:35 +0000 |
commit | 685f5397b8f63e2469e297c1540826b4758a70f7 (patch) | |
tree | 14ef858f281cf62de3c0b60834270aa8a3055a49 | |
parent | 9771d143462525110e5799081e8e263154be0ddb (diff) |
automatic import of python-carpalrouting
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-carpalrouting.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/CarpalRouting-0.0.0.56.tar.gz diff --git a/python-carpalrouting.spec b/python-carpalrouting.spec new file mode 100644 index 0000000..4a7bd85 --- /dev/null +++ b/python-carpalrouting.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-CarpalRouting +Version: 0.0.0.56 +Release: 1 +Summary: A routing optimization engine. +License: Apache License 2.0 +URL: https://pypi.org/project/CarpalRouting/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/52/28/251a517d66052674b114971a89d6c536c29f7d96a295b891dac09b0d004f/CarpalRouting-0.0.0.56.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-CarpalRouting +Summary: A routing optimization engine. +Provides: python-CarpalRouting +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-CarpalRouting + + +%package help +Summary: Development documents and examples for CarpalRouting +Provides: python3-CarpalRouting-doc +%description help + + +%prep +%autosetup -n CarpalRouting-0.0.0.56 + +%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-CarpalRouting -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.0.56-1 +- Package Spec generated @@ -0,0 +1 @@ +d757dfd1cd1b5026eed992a3f267636f CarpalRouting-0.0.0.56.tar.gz |