diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:49:57 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:49:57 +0000 |
| commit | 06d66875c4414287e7fe90d59f44083ed01a2229 (patch) | |
| tree | b916416c1a306d65440bf39138e2e0e7956954c7 | |
| parent | f318233c0429a8539eaf0ff207ffc02720cd9e4b (diff) | |
automatic import of python-techlib-nr-datasetsopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-techlib-nr-datasets.spec | 169 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 171 insertions, 0 deletions
@@ -0,0 +1 @@ +/techlib-nr-datasets-1.1.20.tar.gz diff --git a/python-techlib-nr-datasets.spec b/python-techlib-nr-datasets.spec new file mode 100644 index 0000000..d5a8df4 --- /dev/null +++ b/python-techlib-nr-datasets.spec @@ -0,0 +1,169 @@ +%global _empty_manifest_terminate_build 0 +Name: python-techlib-nr-datasets +Version: 1.1.20 +Release: 1 +Summary: Czech National Repository datasets data model. +License: MIT +URL: https://pypi.org/project/techlib-nr-datasets/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d4/b5/945f392147798f3333d261dd755fc7447beea5b376d824ef6356d6bb311c/techlib-nr-datasets-1.1.20.tar.gz +BuildArch: noarch + +Requires: python3-oarepo +Requires: python3-oarepo-doi-generator +Requires: python3-oarepo-tokens +Requires: python3-techlib-nr-datasets-metadata + +%description +# NR-Datasets + +[](https://travis-ci.org/Narodni-repozitar/nr-datasets) +[](https://coveralls.io/github/Narodni-repozitar/nr-datasets?branch=master) + + +Disclaimer: The library is part of the Czech National Repository, and therefore the README is written in Czech. +General libraries extending [Invenio](https://github.com/inveniosoftware) are concentrated under the [Oarepo + namespace](https://github.com/oarepo). + + ## Instalace + + Nejedná se o samostatně funkční knihovnu, proto potřebuje běžící Invenio a závislosti Oarepo. + Knihovna se instaluje ze zdroje. + + ```bash +git clone git@github.com:Narodni-repozitar/nr-datasets.git +cd nr-datasets +pip install poetry +poetry install +``` + +Pro testování a/nebo samostané fungování knihovny je nutné instalovat tests z extras. + +```bash +poetry install --extras tests +``` + +:warning: Pro instalaci se používá Manažer závilostí **Poetry** více infromací lze naleznout v +[dokumentaci](https://python-poetry.org/docs/) + + + +%package -n python3-techlib-nr-datasets +Summary: Czech National Repository datasets data model. +Provides: python-techlib-nr-datasets +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-techlib-nr-datasets +# NR-Datasets + +[](https://travis-ci.org/Narodni-repozitar/nr-datasets) +[](https://coveralls.io/github/Narodni-repozitar/nr-datasets?branch=master) + + +Disclaimer: The library is part of the Czech National Repository, and therefore the README is written in Czech. +General libraries extending [Invenio](https://github.com/inveniosoftware) are concentrated under the [Oarepo + namespace](https://github.com/oarepo). + + ## Instalace + + Nejedná se o samostatně funkční knihovnu, proto potřebuje běžící Invenio a závislosti Oarepo. + Knihovna se instaluje ze zdroje. + + ```bash +git clone git@github.com:Narodni-repozitar/nr-datasets.git +cd nr-datasets +pip install poetry +poetry install +``` + +Pro testování a/nebo samostané fungování knihovny je nutné instalovat tests z extras. + +```bash +poetry install --extras tests +``` + +:warning: Pro instalaci se používá Manažer závilostí **Poetry** více infromací lze naleznout v +[dokumentaci](https://python-poetry.org/docs/) + + + +%package help +Summary: Development documents and examples for techlib-nr-datasets +Provides: python3-techlib-nr-datasets-doc +%description help +# NR-Datasets + +[](https://travis-ci.org/Narodni-repozitar/nr-datasets) +[](https://coveralls.io/github/Narodni-repozitar/nr-datasets?branch=master) + + +Disclaimer: The library is part of the Czech National Repository, and therefore the README is written in Czech. +General libraries extending [Invenio](https://github.com/inveniosoftware) are concentrated under the [Oarepo + namespace](https://github.com/oarepo). + + ## Instalace + + Nejedná se o samostatně funkční knihovnu, proto potřebuje běžící Invenio a závislosti Oarepo. + Knihovna se instaluje ze zdroje. + + ```bash +git clone git@github.com:Narodni-repozitar/nr-datasets.git +cd nr-datasets +pip install poetry +poetry install +``` + +Pro testování a/nebo samostané fungování knihovny je nutné instalovat tests z extras. + +```bash +poetry install --extras tests +``` + +:warning: Pro instalaci se používá Manažer závilostí **Poetry** více infromací lze naleznout v +[dokumentaci](https://python-poetry.org/docs/) + + + +%prep +%autosetup -n techlib-nr-datasets-1.1.20 + +%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-techlib-nr-datasets -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.20-1 +- Package Spec generated @@ -0,0 +1 @@ +0fb9d3d92caf91f3234496de90a28ed5 techlib-nr-datasets-1.1.20.tar.gz |
