diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-09 09:09:19 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 09:09:19 +0000 |
commit | 9d93e86e799dd1108833d3a776986cdb04a9cb1a (patch) | |
tree | b637945101777ecd0e48fb1d2502ab585857bb69 | |
parent | a50b59fe93f8b18eb8571d0c0b720ca966289f8b (diff) |
automatic import of python-pystackregopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pystackreg.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/pystackreg-0.2.7.tar.gz diff --git a/python-pystackreg.spec b/python-pystackreg.spec new file mode 100644 index 0000000..75b1886 --- /dev/null +++ b/python-pystackreg.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pystackreg +Version: 0.2.7 +Release: 1 +Summary: Image registration tool (python implementation of the ImageJ/FIJI Plugin TurboReg/StackReg) +License: Free To Use But Restricted +URL: https://github.com/glichtner/pystackreg +Source0: https://mirrors.aliyun.com/pypi/web/packages/d2/6e/ed88507c52cdf00c2331685efafa557166a22dce9f654d8c2ca24c06ee1c/pystackreg-0.2.7.tar.gz + +Requires: python3-numpy +Requires: python3-tqdm + +%description + + +%package -n python3-pystackreg +Summary: Image registration tool (python implementation of the ImageJ/FIJI Plugin TurboReg/StackReg) +Provides: python-pystackreg +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pystackreg + + +%package help +Summary: Development documents and examples for pystackreg +Provides: python3-pystackreg-doc +%description help + + +%prep +%autosetup -n pystackreg-0.2.7 + +%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-pystackreg -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.7-1 +- Package Spec generated @@ -0,0 +1 @@ +b72751285cf2fd123ba00e787b4fca8d pystackreg-0.2.7.tar.gz |