summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:00:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:00:42 +0000
commitd69471e7b50f7df9501bb1e8716454bf5d6df9d3 (patch)
tree1620554f9899623c5b7bf7a19a447a36aab78041
parent4bf982fc1bbe02214b28b020be2753164f93e1f1 (diff)
automatic import of python-kthbuild
-rw-r--r--.gitignore1
-rw-r--r--python-kthbuild.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8f9a199 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kthbuild-2.8.1.tar.gz
diff --git a/python-kthbuild.spec b/python-kthbuild.spec
new file mode 100644
index 0000000..06d9b9c
--- /dev/null
+++ b/python-kthbuild.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-kthbuild
+Version: 2.8.1
+Release: 1
+Summary: Knuth node build tools
+License: MIT
+URL: https://github.com/k-nuth/kthbuild
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/39/ad/705a2071c118b593bd06dba0782d88f25b9727383da12f6a0070e80acaf0/kthbuild-2.8.1.tar.gz
+BuildArch: noarch
+
+
+%description
+Knuth Building Tools (Alpha version)
+
+%package -n python3-kthbuild
+Summary: Knuth node build tools
+Provides: python-kthbuild
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-kthbuild
+Knuth Building Tools (Alpha version)
+
+%package help
+Summary: Development documents and examples for kthbuild
+Provides: python3-kthbuild-doc
+%description help
+Knuth Building Tools (Alpha version)
+
+%prep
+%autosetup -n kthbuild-2.8.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-kthbuild -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 2.8.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5950687
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e33ca383575f0de73e020d2189ea5e51 kthbuild-2.8.1.tar.gz