summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:54:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:54:52 +0000
commit6561617a5f905134e681c70d93bdd2055d8cac33 (patch)
tree1435f5111229a467f95054d50b7befbc46c218dc
parent98bebb80a26ce08e76ae05ba2ce7e9ae646d1b48 (diff)
automatic import of python-idutilsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-idutils.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..652bc5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/idutils-1.2.1.tar.gz
diff --git a/python-idutils.spec b/python-idutils.spec
new file mode 100644
index 0000000..e2b2bf3
--- /dev/null
+++ b/python-idutils.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-idutils
+Version: 1.2.1
+Release: 1
+Summary: "Small library for persistent identifiers used in scholarly communication."
+License: Revised BSD License
+URL: https://github.com/inveniosoftware/idutils
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/31/bf/373a19718c80dfb30d17a0274026cd17ed999050429d39c79eda0189f503/idutils-1.2.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-six
+Requires: python3-isbnlib
+Requires: python3-pytest-black
+Requires: python3-pytest-cache
+Requires: python3-pytest-runner
+Requires: python3-pytest-invenio
+Requires: python3-sphinx
+
+%description
+
+
+%package -n python3-idutils
+Summary: "Small library for persistent identifiers used in scholarly communication."
+Provides: python-idutils
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-idutils
+
+
+%package help
+Summary: Development documents and examples for idutils
+Provides: python3-idutils-doc
+%description help
+
+
+%prep
+%autosetup -n idutils-1.2.1
+
+%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-idutils -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5c8e717
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+42b9a15da65973ff94b121f919bf9f14 idutils-1.2.1.tar.gz