diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 06:22:13 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 06:22:13 +0000 |
| commit | d999ea498d4491478fbb2976c4f8ba35b04a345b (patch) | |
| tree | c6109ec1b4ad912562d633d6984602fea7e0d5ba /python-py-solc.spec | |
| parent | bf15356eb2340e626ff7d5564deb1d43be6a71a4 (diff) | |
automatic import of python-py-solc
Diffstat (limited to 'python-py-solc.spec')
| -rw-r--r-- | python-py-solc.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-py-solc.spec b/python-py-solc.spec new file mode 100644 index 0000000..fd6aaa0 --- /dev/null +++ b/python-py-solc.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-py-solc +Version: 3.2.0 +Release: 1 +Summary: Python wrapper around the solc binary +License: MIT +URL: https://github.com/ethereum/py-solc +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/53/8d/5451ff817206a1ba234ac2f33e0e9cbe1f88aa3eff2966e9d9e1a70d7e42/py-solc-3.2.0.tar.gz +BuildArch: noarch + +Requires: python3-semantic-version + +%description +|Build Status| |PyPi version| |PyPi downloads| +Python wrapper around the ``solc`` Solidity compiler. + +%package -n python3-py-solc +Summary: Python wrapper around the solc binary +Provides: python-py-solc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-py-solc +|Build Status| |PyPi version| |PyPi downloads| +Python wrapper around the ``solc`` Solidity compiler. + +%package help +Summary: Development documents and examples for py-solc +Provides: python3-py-solc-doc +%description help +|Build Status| |PyPi version| |PyPi downloads| +Python wrapper around the ``solc`` Solidity compiler. + +%prep +%autosetup -n py-solc-3.2.0 + +%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-py-solc -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.0-1 +- Package Spec generated |
