diff options
Diffstat (limited to 'python-pynidm.spec')
-rw-r--r-- | python-pynidm.spec | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/python-pynidm.spec b/python-pynidm.spec new file mode 100644 index 0000000..85f633a --- /dev/null +++ b/python-pynidm.spec @@ -0,0 +1,106 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pynidm +Version: 4.0.0 +Release: 1 +Summary: PYNIDM: a Python NIDM library and tools +License: Apache-2.0 +URL: https://github.com/incf-nidash/PyNIDM +Source0: https://mirrors.aliyun.com/pypi/web/packages/5a/af/7ab0d068b22b4c7e7f1b72dd03a8772b4c385327c298a4601e63923f6d2a/pynidm-4.0.0.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-click-option-group +Requires: python3-cognitiveatlas +Requires: python3-datalad +Requires: python3-etelemetry +Requires: python3-numpy +Requires: python3-ontquery +Requires: python3-pandas +Requires: python3-patsy +Requires: python3-prov +Requires: python3-pybids +Requires: python3-pydot +Requires: python3-pygithub +Requires: python3-pyld +Requires: python3-dateutil +Requires: python3-rapidfuzz +Requires: python3-rdflib +Requires: python3-requests +Requires: python3-scikit-learn +Requires: python3-scipy +Requires: python3-statsmodels +Requires: python3-tabulate +Requires: python3-validators +Requires: python3-matplotlib +Requires: python3-seaborn + +%description +* `Git-annex <https://git-annex.branchable.com/install/>`_ +* `Graphviz <http://graphviz.org>`_ (native package): + * Fedora: `dnf install graphviz` + * OS-X: `brew install graphviz` + +%package -n python3-pynidm +Summary: PYNIDM: a Python NIDM library and tools +Provides: python-pynidm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pynidm +* `Git-annex <https://git-annex.branchable.com/install/>`_ +* `Graphviz <http://graphviz.org>`_ (native package): + * Fedora: `dnf install graphviz` + * OS-X: `brew install graphviz` + +%package help +Summary: Development documents and examples for pynidm +Provides: python3-pynidm-doc +%description help +* `Git-annex <https://git-annex.branchable.com/install/>`_ +* `Graphviz <http://graphviz.org>`_ (native package): + * Fedora: `dnf install graphviz` + * OS-X: `brew install graphviz` + +%prep +%autosetup -n pynidm-4.0.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-pynidm -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.0-1 +- Package Spec generated |