diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 13:59:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 13:59:25 +0000 |
commit | 3fc840e94a34192f26e3d97b866928ed455529b8 (patch) | |
tree | 7d3e50ff1ef1539a232e9e280f487a468e97be8f | |
parent | 4ba4eefe019d2880bffeb154f740c8d8aed72c26 (diff) |
automatic import of python-sridentifyopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sridentify.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/sridentify-0.8.0.tar.gz diff --git a/python-sridentify.spec b/python-sridentify.spec new file mode 100644 index 0000000..f5cb4f4 --- /dev/null +++ b/python-sridentify.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sridentify +Version: 0.8.0 +Release: 1 +Summary: Identify the EPSG code from a .prj file +License: MIT +URL: https://github.com/cmollet/sridentify +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/07/0b7eeffee0332b77d9ebc05c6f07b6b007b097b50ebdcc5c88fcf8d2b4d2/sridentify-0.8.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-sridentify +Summary: Identify the EPSG code from a .prj file +Provides: python-sridentify +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sridentify + + +%package help +Summary: Development documents and examples for sridentify +Provides: python3-sridentify-doc +%description help + + +%prep +%autosetup -n sridentify-0.8.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-sridentify -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.0-1 +- Package Spec generated @@ -0,0 +1 @@ +a2ce6cd8f9a407fac2e51ef9d967d401 sridentify-0.8.0.tar.gz |