diff options
Diffstat (limited to 'python-auditwheel-symbols.spec')
-rw-r--r-- | python-auditwheel-symbols.spec | 206 |
1 files changed, 206 insertions, 0 deletions
diff --git a/python-auditwheel-symbols.spec b/python-auditwheel-symbols.spec new file mode 100644 index 0000000..06d81e8 --- /dev/null +++ b/python-auditwheel-symbols.spec @@ -0,0 +1,206 @@ +%global _empty_manifest_terminate_build 0 +Name: python-auditwheel-symbols +Version: 0.1.13 +Release: 1 +Summary: Find out which symbols are causing auditwheel too-recent versioned symbols error. +License: MIT +URL: https://pypi.org/project/auditwheel-symbols/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4d/1d/99cb5c9550a6b6f8d2a67cfc3461482b44207eab9f945dcf8acdde7c285f/auditwheel_symbols-0.1.13.tar.gz + + +%description +# auditwheel-symbols + +[](https://github.com/messense/auditwheel-symbols/actions?query=workflow%3ACI) +[](https://pypi.org/project/auditwheel-symbols) + +Find out which symbols are causing auditwheel too-recent versioned symbols error, resolves [pypa/auditwheel#36](https://github.com/pypa/auditwheel/issues/36) . + +## Installation + +```bash +pip install auditwheel-symbols +``` + +## Usage + +```bash +❯ auditwheel-symbols --help +auditwheel-symbols 0.1.4 + +USAGE: + auditwheel-symbols [OPTIONS] <FILE> + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +OPTIONS: + -m, --manylinux <manylinux> [possible values: 1, 2010, 2014, 2_24] + +ARGS: + <FILE> + +❯ auditwheel-symbols --manylinux 2014 ~/Downloads/rjieba-0.1.5-cp36-abi3-manylinux2010_x86_64.whl +rjieba/rjieba.abi3.so is manylinux2014 compliant. + +❯ auditwheel-symbols --manylinux 1 ~/Downloads/rjieba-0.1.5-cp36-abi3-manylinux2010_x86_64.whl +rjieba/rjieba.abi3.so is not manylinux1 compliant because it links the following forbidden libraries: +libc.so.6 offending symbols: memcpy@@GLIBC_2.14 +``` + +## License + +This work is released under the MIT license. A copy of the license is provided in the [LICENSE](../LICENSE) file. + + + +%package -n python3-auditwheel-symbols +Summary: Find out which symbols are causing auditwheel too-recent versioned symbols error. +Provides: python-auditwheel-symbols +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-auditwheel-symbols +# auditwheel-symbols + +[](https://github.com/messense/auditwheel-symbols/actions?query=workflow%3ACI) +[](https://pypi.org/project/auditwheel-symbols) + +Find out which symbols are causing auditwheel too-recent versioned symbols error, resolves [pypa/auditwheel#36](https://github.com/pypa/auditwheel/issues/36) . + +## Installation + +```bash +pip install auditwheel-symbols +``` + +## Usage + +```bash +❯ auditwheel-symbols --help +auditwheel-symbols 0.1.4 + +USAGE: + auditwheel-symbols [OPTIONS] <FILE> + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +OPTIONS: + -m, --manylinux <manylinux> [possible values: 1, 2010, 2014, 2_24] + +ARGS: + <FILE> + +❯ auditwheel-symbols --manylinux 2014 ~/Downloads/rjieba-0.1.5-cp36-abi3-manylinux2010_x86_64.whl +rjieba/rjieba.abi3.so is manylinux2014 compliant. + +❯ auditwheel-symbols --manylinux 1 ~/Downloads/rjieba-0.1.5-cp36-abi3-manylinux2010_x86_64.whl +rjieba/rjieba.abi3.so is not manylinux1 compliant because it links the following forbidden libraries: +libc.so.6 offending symbols: memcpy@@GLIBC_2.14 +``` + +## License + +This work is released under the MIT license. A copy of the license is provided in the [LICENSE](../LICENSE) file. + + + +%package help +Summary: Development documents and examples for auditwheel-symbols +Provides: python3-auditwheel-symbols-doc +%description help +# auditwheel-symbols + +[](https://github.com/messense/auditwheel-symbols/actions?query=workflow%3ACI) +[](https://pypi.org/project/auditwheel-symbols) + +Find out which symbols are causing auditwheel too-recent versioned symbols error, resolves [pypa/auditwheel#36](https://github.com/pypa/auditwheel/issues/36) . + +## Installation + +```bash +pip install auditwheel-symbols +``` + +## Usage + +```bash +❯ auditwheel-symbols --help +auditwheel-symbols 0.1.4 + +USAGE: + auditwheel-symbols [OPTIONS] <FILE> + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +OPTIONS: + -m, --manylinux <manylinux> [possible values: 1, 2010, 2014, 2_24] + +ARGS: + <FILE> + +❯ auditwheel-symbols --manylinux 2014 ~/Downloads/rjieba-0.1.5-cp36-abi3-manylinux2010_x86_64.whl +rjieba/rjieba.abi3.so is manylinux2014 compliant. + +❯ auditwheel-symbols --manylinux 1 ~/Downloads/rjieba-0.1.5-cp36-abi3-manylinux2010_x86_64.whl +rjieba/rjieba.abi3.so is not manylinux1 compliant because it links the following forbidden libraries: +libc.so.6 offending symbols: memcpy@@GLIBC_2.14 +``` + +## License + +This work is released under the MIT license. A copy of the license is provided in the [LICENSE](../LICENSE) file. + + + +%prep +%autosetup -n auditwheel-symbols-0.1.13 + +%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-auditwheel-symbols -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.13-1 +- Package Spec generated |