diff options
Diffstat (limited to 'python-sdmx1.spec')
| -rw-r--r-- | python-sdmx1.spec | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/python-sdmx1.spec b/python-sdmx1.spec new file mode 100644 index 0000000..d506528 --- /dev/null +++ b/python-sdmx1.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sdmx1 +Version: 2.9.0 +Release: 1 +Summary: Statistical Data and Metadata eXchange (SDMX) +License: Apache Software License +URL: https://pypi.org/project/sdmx1/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d4/74/474d459265382856a9124916f8b6b603ef57757e6127c94a76cee6f31de9/sdmx1-2.9.0.tar.gz +BuildArch: noarch + +Requires: python3-lxml +Requires: python3-pandas +Requires: python3-pydantic +Requires: python3-dateutil +Requires: python3-requests +Requires: python3-typing-extensions +Requires: python3-requests-cache +Requires: python3-IPython +Requires: python3-sphinx +Requires: python3-sphinx-book-theme +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pytest-xdist +Requires: python3-requests-mock + +%description +See https://sdmx1.readthedocs.io/en/latest/ for the latest docs per the ``main`` branch, or https://sdmx1.readthedocs.io/en/stable/ for the most recent release. + +%package -n python3-sdmx1 +Summary: Statistical Data and Metadata eXchange (SDMX) +Provides: python-sdmx1 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sdmx1 +See https://sdmx1.readthedocs.io/en/latest/ for the latest docs per the ``main`` branch, or https://sdmx1.readthedocs.io/en/stable/ for the most recent release. + +%package help +Summary: Development documents and examples for sdmx1 +Provides: python3-sdmx1-doc +%description help +See https://sdmx1.readthedocs.io/en/latest/ for the latest docs per the ``main`` branch, or https://sdmx1.readthedocs.io/en/stable/ for the most recent release. + +%prep +%autosetup -n sdmx1-2.9.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-sdmx1 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.9.0-1 +- Package Spec generated |
