summaryrefslogtreecommitdiff
path: root/python-gluejobutils.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 04:08:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 04:08:56 +0000
commit953d70b117e920d9622d1428c35b7fffca41dae4 (patch)
treee9e4836cc2182b4562a1ea45134a5dacc7f80fb8 /python-gluejobutils.spec
parent6a767dfc9ea35033bd1cfce0e097cc6ed0f6556d (diff)
automatic import of python-gluejobutils
Diffstat (limited to 'python-gluejobutils.spec')
-rw-r--r--python-gluejobutils.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/python-gluejobutils.spec b/python-gluejobutils.spec
new file mode 100644
index 0000000..fa909ad
--- /dev/null
+++ b/python-gluejobutils.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gluejobutils
+Version: 3.2.0
+Release: 1
+Summary: Python 2.7 utils for glue jobs
+License: MIT
+URL: https://pypi.org/project/gluejobutils/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/95/f0/3afffb9e8eacca412ad8ab716a9b7cceeccc70eff890c18b1f18a74126e1/gluejobutils-3.2.0.tar.gz
+BuildArch: noarch
+
+
+%description
+# gluejobutils
+Python 2.7 utility functions to include with AWS glue jobs
+
+
+%package -n python3-gluejobutils
+Summary: Python 2.7 utils for glue jobs
+Provides: python-gluejobutils
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gluejobutils
+# gluejobutils
+Python 2.7 utility functions to include with AWS glue jobs
+
+
+%package help
+Summary: Development documents and examples for gluejobutils
+Provides: python3-gluejobutils-doc
+%description help
+# gluejobutils
+Python 2.7 utility functions to include with AWS glue jobs
+
+
+%prep
+%autosetup -n gluejobutils-3.2.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-gluejobutils -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.0-1
+- Package Spec generated