diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:33:46 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:33:46 +0000 |
| commit | 8c965f04ca2663aaa4603a368af62663648c88de (patch) | |
| tree | aaa1d87b8b66df71805d640a73de8f900e2837ad /python-conx.spec | |
| parent | 9baea6c3c93408a5924e3d437a1c8dc1c20de9e6 (diff) | |
automatic import of python-conx
Diffstat (limited to 'python-conx.spec')
| -rw-r--r-- | python-conx.spec | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/python-conx.spec b/python-conx.spec new file mode 100644 index 0000000..f0cdb42 --- /dev/null +++ b/python-conx.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-conx +Version: 3.7.10 +Release: 1 +Summary: On-Ramp to Deep Learning. Built on Keras +License: GNU Affero General Public License v3 or later (AGPLv3+) +URL: https://github.com/Calysto/conx +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/c8/6b5d8426e63af47e023f0260cd54a0517b0f3c2c8edcb651070e269add47/conx-3.7.10.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-keras +Requires: python3-matplotlib +Requires: python3-ipywidgets +Requires: python3-Pillow +Requires: python3-IPython +Requires: python3-h5py +Requires: python3-svgwrite +Requires: python3-sklearn +Requires: python3-tqdm +Requires: python3-requests +Requires: python3-pydot +Requires: python3-cairosvg + +%description + + +%package -n python3-conx +Summary: On-Ramp to Deep Learning. Built on Keras +Provides: python-conx +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-conx + + +%package help +Summary: Development documents and examples for conx +Provides: python3-conx-doc +%description help + + +%prep +%autosetup -n conx-3.7.10 + +%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-conx -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.7.10-1 +- Package Spec generated |
