summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-26 14:22:11 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-26 14:22:11 +0000
commit13fa01889026c1f72904a379fb0dc9f5b121ee41 (patch)
tree50b98c0636809577078882ad6c66437d5990da7d
parent6beeef7abb922646a464858ba9e458257c1f346f (diff)
automatic import of pyporter
-rw-r--r--.gitignore1
-rw-r--r--pyporter.spec60
-rw-r--r--sources1
3 files changed, 62 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7eb1eec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyporter-v1.2.tar.gz
diff --git a/pyporter.spec b/pyporter.spec
new file mode 100644
index 0000000..ebc332f
--- /dev/null
+++ b/pyporter.spec
@@ -0,0 +1,60 @@
+Name: pyporter
+Version: 1.2
+Release: 2
+Summary: A rpm packager bot for python modules from pypi.org
+License: Mulan PSL v2
+URL: https://gitee.com/openeuler/pyporter
+Source0: https://gitee.com/openeuler/pyporter/repository/archive/pyporter-v%{version}.tar.gz
+BuildArch: noarch
+%description
+pyporter is a tool to create spec file and create rpm for python modules For more details, please use pyporter -h.
+
+
+%package -n python3-pyporter
+Summary: A rpm packager bot for python modules from pypi.org
+
+BuildRequires: python3-hatchling python3-hatch-vcs python3-pip openEuler-rpm-config >= 30-39 python3-setuptools
+
+%description -n python3-pyporter
+pyporter is a tool to create spec file and create rpm for python modules.
+
+%prep
+%autosetup -n pyporter-v%{version} -p1
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+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
+popd
+mv %{buildroot}/filelist.lst .
+
+%files -n python3-pyporter -f filelist.lst
+%license LICENSE
+%doc README.md
+%dir %{python3_sitelib}/*
+
+
+%changelog
+* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.0-2
+- DESC: delete BuildRequires gdb
+
+* Wed Nov 4 2020 sunchendong<sunchendong@huawei.com> -1.0-1
+- Type:NA
+- ID:NA
+- SUG:NA
+- DESC:init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..d2f3f03
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7d3d3942906b9425f746ce40f4e389f0 pyporter-v1.2.tar.gz