summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 06:22:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 06:22:13 +0000
commitd999ea498d4491478fbb2976c4f8ba35b04a345b (patch)
treec6109ec1b4ad912562d633d6984602fea7e0d5ba
parentbf15356eb2340e626ff7d5564deb1d43be6a71a4 (diff)
automatic import of python-py-solc
-rw-r--r--.gitignore1
-rw-r--r--python-py-solc.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9317e0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/py-solc-3.2.0.tar.gz
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..95c81c7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ed3f190b2a7d335db2845a0359d051a3 py-solc-3.2.0.tar.gz