summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 04:34:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 04:34:53 +0000
commit449e4b8153d1e36b092de5911aaf40993bb05dd9 (patch)
tree010a42f1da0dbd2d730ef272a4af5d130f5a4a3b
parentb18ba454eed146ebdfb0bf7abe2fe430ae53098f (diff)
automatic import of python-staticx
-rw-r--r--.gitignore1
-rw-r--r--python-staticx.spec88
-rw-r--r--sources1
3 files changed, 90 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7d942b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/staticx-0.13.8.tar.gz
diff --git a/python-staticx.spec b/python-staticx.spec
new file mode 100644
index 0000000..7d19ada
--- /dev/null
+++ b/python-staticx.spec
@@ -0,0 +1,88 @@
+%global _empty_manifest_terminate_build 0
+Name: python-staticx
+Version: 0.13.8
+Release: 1
+Summary: Build static self-extracting app from dynamic executable
+License: GPL v2 with special exception allowing StaticX to build and distribute non-free programs
+URL: https://github.com/JonathonReinhart/staticx
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/dd/8c8ab2d19d1a92d26e4d8636aa90cf4be835661768c1f16a3f67a97b628c/staticx-0.13.8.tar.gz
+BuildArch: noarch
+
+Requires: python3-pyelftools
+
+%description
+Bundle dynamic executables with their library dependencies so they can be run
+anywhere, just like a static executable.
+For more information, [Read the Docs](https://staticx.readthedocs.io/).
+## License
+This software is released under the GPLv2, with an exception allowing the
+bootloader to be distributed. See [LICENSE.txt](LICENSE.txt) for more details.
+
+%package -n python3-staticx
+Summary: Build static self-extracting app from dynamic executable
+Provides: python-staticx
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-staticx
+Bundle dynamic executables with their library dependencies so they can be run
+anywhere, just like a static executable.
+For more information, [Read the Docs](https://staticx.readthedocs.io/).
+## License
+This software is released under the GPLv2, with an exception allowing the
+bootloader to be distributed. See [LICENSE.txt](LICENSE.txt) for more details.
+
+%package help
+Summary: Development documents and examples for staticx
+Provides: python3-staticx-doc
+%description help
+Bundle dynamic executables with their library dependencies so they can be run
+anywhere, just like a static executable.
+For more information, [Read the Docs](https://staticx.readthedocs.io/).
+## License
+This software is released under the GPLv2, with an exception allowing the
+bootloader to be distributed. See [LICENSE.txt](LICENSE.txt) for more details.
+
+%prep
+%autosetup -n staticx-0.13.8
+
+%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-staticx -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.8-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..61598c9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9d7dd893bf1de25c1c77e69d6ba6a4d2 staticx-0.13.8.tar.gz