diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-kbastroutils.spec | 120 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 122 insertions, 0 deletions
@@ -0,0 +1 @@ +/kbastroutils-2.6.2.tar.gz diff --git a/python-kbastroutils.spec b/python-kbastroutils.spec new file mode 100644 index 0000000..e91317f --- /dev/null +++ b/python-kbastroutils.spec @@ -0,0 +1,120 @@ +%global _empty_manifest_terminate_build 0 +Name: python-kbastroutils +Version: 2.6.2 +Release: 1 +Summary: please add a summary manually as the author left a blank one +License: MIT License +URL: https://github.com/bkornpob/kbastroutils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3b/2a/8dcb7c736b43aa916444d3b88ecc84c867734f7d71c7181adb67a0713fa2/kbastroutils-2.6.2.tar.gz +BuildArch: noarch + + +%description +v.1.3.1 + - Fix import +v.1.3.0 + - Implement: grismconf.py, gnd.py, grismsens.py +v.1.2.0 + - Implement: sub2full.py + - Change: source.py to segmentation.py + - Fix description: segmentation.py +v.1.1.0 + - Implement: container.py, source.py + - Fix description: dqmask.py +v.1.0.2 + - Fix description of dqmask.py +v.1.0.1 + - Fix import modules in dqmask.py +v.1.0.0 + - Implement dqmask.py + +%package -n python3-kbastroutils +Summary: please add a summary manually as the author left a blank one +Provides: python-kbastroutils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-kbastroutils +v.1.3.1 + - Fix import +v.1.3.0 + - Implement: grismconf.py, gnd.py, grismsens.py +v.1.2.0 + - Implement: sub2full.py + - Change: source.py to segmentation.py + - Fix description: segmentation.py +v.1.1.0 + - Implement: container.py, source.py + - Fix description: dqmask.py +v.1.0.2 + - Fix description of dqmask.py +v.1.0.1 + - Fix import modules in dqmask.py +v.1.0.0 + - Implement dqmask.py + +%package help +Summary: Development documents and examples for kbastroutils +Provides: python3-kbastroutils-doc +%description help +v.1.3.1 + - Fix import +v.1.3.0 + - Implement: grismconf.py, gnd.py, grismsens.py +v.1.2.0 + - Implement: sub2full.py + - Change: source.py to segmentation.py + - Fix description: segmentation.py +v.1.1.0 + - Implement: container.py, source.py + - Fix description: dqmask.py +v.1.0.2 + - Fix description of dqmask.py +v.1.0.1 + - Fix import modules in dqmask.py +v.1.0.0 + - Implement dqmask.py + +%prep +%autosetup -n kbastroutils-2.6.2 + +%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-kbastroutils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2.6.2-1 +- Package Spec generated @@ -0,0 +1 @@ +b2330dca77cfceb86bde624e7e2090de kbastroutils-2.6.2.tar.gz |
