diff options
Diffstat (limited to 'python-dkist-inventory.spec')
-rw-r--r-- | python-dkist-inventory.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/python-dkist-inventory.spec b/python-dkist-inventory.spec new file mode 100644 index 0000000..ae53423 --- /dev/null +++ b/python-dkist-inventory.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dkist-inventory +Version: 0.17.0 +Release: 1 +Summary: A shared library for dataset inventory and asdf generation. +License: BSD 3-Clause +URL: https://pypi.org/project/dkist-inventory/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/51/45/436156683c16fca37fa037506a21d2f8187d032472ac5435420d98de6f59/dkist-inventory-0.17.0.tar.gz +BuildArch: noarch + +Requires: python3-astropy +Requires: python3-gwcs +Requires: python3-sunpy[asdf,net] +Requires: python3-numpy +Requires: python3-ndcube +Requires: python3-packaging +Requires: python3-dkist +Requires: python3-dkist-fits-specifications +Requires: python3-scipy +Requires: python3-jsonschema +Requires: python3-asdf +Requires: python3-sphinx +Requires: python3-sphinx-automodapi +Requires: python3-pytest +Requires: python3-pytest-doctestplus +Requires: python3-pytest-cov +Requires: python3-dkist-data-simulator +Requires: python3-dkist-header-validator +Requires: python3-pytest-mock + +%description + + +%package -n python3-dkist-inventory +Summary: A shared library for dataset inventory and asdf generation. +Provides: python-dkist-inventory +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dkist-inventory + + +%package help +Summary: Development documents and examples for dkist-inventory +Provides: python3-dkist-inventory-doc +%description help + + +%prep +%autosetup -n dkist-inventory-0.17.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-dkist-inventory -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.17.0-1 +- Package Spec generated |