diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:13:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:13:42 +0000 |
commit | 07beecbdc95b646b9ebe71cff131280476cbafe1 (patch) | |
tree | 0d3fcd2b5d2b5075f3de437d0f38ba07f668a36b | |
parent | b53762228198382294c07d0c20c2e1d32aa9e8f6 (diff) |
automatic import of python-leechcorepyc
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-leechcorepyc.spec | 83 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -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 <Python_Bot@openeuler.org> - 2.14.4-1 +- Package Spec generated @@ -0,0 +1 @@ +4c69377c572c429dd39d820b6fb175ac leechcorepyc-2.14.4.tar.gz |