diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 07:05:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 07:05:25 +0000 |
| commit | cdd6599931ec559f6f1c9d3d631a9d78586e2500 (patch) | |
| tree | 7236fde1523ffc8c7ca50fe9484c33c9d3df615a | |
| parent | dd8723e21b6810b81324ca90d8a9dc8815bc43af (diff) | |
automatic import of python-cryptohelp
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-cryptohelp.spec | 90 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/cryptohelp-0.0.16.tar.gz diff --git a/python-cryptohelp.spec b/python-cryptohelp.spec new file mode 100644 index 0000000..49ae0af --- /dev/null +++ b/python-cryptohelp.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cryptohelp +Version: 0.0.16 +Release: 1 +Summary: A package which contains helper functions for solving crypto challenges in CTFs +License: MIT License +URL: https://github.com/Angmar2722/CTF-Helper-Functions-For-Crypto +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d1/94/ca8e5a9e64c5b497adeda68cd31ead5a1e14c685f88c4177415129a0e843/cryptohelp-0.0.16.tar.gz +BuildArch: noarch + + +%description +Just some CTF helper functions I use for crypto challenges (sourced from many different places) + +## Installation: + +`pip install cryptohelper` + + + +%package -n python3-cryptohelp +Summary: A package which contains helper functions for solving crypto challenges in CTFs +Provides: python-cryptohelp +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cryptohelp +Just some CTF helper functions I use for crypto challenges (sourced from many different places) + +## Installation: + +`pip install cryptohelper` + + + +%package help +Summary: Development documents and examples for cryptohelp +Provides: python3-cryptohelp-doc +%description help +Just some CTF helper functions I use for crypto challenges (sourced from many different places) + +## Installation: + +`pip install cryptohelper` + + + +%prep +%autosetup -n cryptohelp-0.0.16 + +%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-cryptohelp -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.16-1 +- Package Spec generated @@ -0,0 +1 @@ +673f2eaab4a1ceb62ee819b0ffbf87b8 cryptohelp-0.0.16.tar.gz |
