diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:21:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:21:17 +0000 |
commit | f84636a99aefd32380295c09397a8fd75a71dab2 (patch) | |
tree | 987b4e88f05331ddd4a9f58b0c06195975871694 | |
parent | c791942adbd431b7997956460cc1b9a71752a088 (diff) |
automatic import of python-dcxml
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dcxml.spec | 89 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 91 insertions, 0 deletions
@@ -0,0 +1 @@ +/dcxml-0.1.2.tar.gz diff --git a/python-dcxml.spec b/python-dcxml.spec new file mode 100644 index 0000000..36637e9 --- /dev/null +++ b/python-dcxml.spec @@ -0,0 +1,89 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dcxml +Version: 0.1.2 +Release: 1 +Summary: Dublin Core XML generation from Python dictionaries. +License: MIT +URL: https://github.com/inveniosoftware/dcxml +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/a6/cadcae31a432a2b7744724cf4908789f445954b0e37911f040451ce6d984/dcxml-0.1.2.tar.gz +BuildArch: noarch + +Requires: python3-lxml +Requires: python3-Sphinx +Requires: python3-check-manifest +Requires: python3-coverage +Requires: python3-isort +Requires: python3-pydocstyle +Requires: python3-pytest-cov +Requires: python3-pytest-pep8 +Requires: python3-pytest +Requires: python3-Sphinx +Requires: python3-check-manifest +Requires: python3-coverage +Requires: python3-isort +Requires: python3-pydocstyle +Requires: python3-pytest-cov +Requires: python3-pytest-pep8 +Requires: python3-pytest + +%description + + +%package -n python3-dcxml +Summary: Dublin Core XML generation from Python dictionaries. +Provides: python-dcxml +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dcxml + + +%package help +Summary: Development documents and examples for dcxml +Provides: python3-dcxml-doc +%description help + + +%prep +%autosetup -n dcxml-0.1.2 + +%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-dcxml -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +1f13452128e9ca423328f7712a540e89 dcxml-0.1.2.tar.gz |