From 07beecbdc95b646b9ebe71cff131280476cbafe1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 09:13:42 +0000 Subject: automatic import of python-leechcorepyc --- .gitignore | 1 + python-leechcorepyc.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 85 insertions(+) create mode 100644 python-leechcorepyc.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ace8450 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/leechcorepyc-2.14.4.tar.gz diff --git a/python-leechcorepyc.spec b/python-leechcorepyc.spec new file mode 100644 index 0000000..1624e25 --- /dev/null +++ b/python-leechcorepyc.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-leechcorepyc +Version: 2.14.4 +Release: 1 +Summary: LeechCore for Python +License: GNU General Public License v3.0 +URL: https://github.com/ufrisk/LeechCore +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c8/8d/907ddb1f20ccf388f995ef43a15ca77c5b0f32e9b077891f5726eabfc5d1/leechcorepyc-2.14.4.tar.gz + + +%description +LeechCore for Python : native extension for physical memory access + + + + +%package -n python3-leechcorepyc +Summary: LeechCore for Python +Provides: python-leechcorepyc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-leechcorepyc +LeechCore for Python : native extension for physical memory access + + + + +%package help +Summary: Development documents and examples for leechcorepyc +Provides: python3-leechcorepyc-doc +%description help +LeechCore for Python : native extension for physical memory access + + + + +%prep +%autosetup -n leechcorepyc-2.14.4 + +%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-leechcorepyc -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 2.14.4-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..09b8c5c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4c69377c572c429dd39d820b6fb175ac leechcorepyc-2.14.4.tar.gz -- cgit v1.2.3