summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:58:54 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:58:54 +0000
commite9747c5cb8b96d5bb71ba901e817785bb0000f8d (patch)
tree033e9f7b43fc6ed5fcb907116ab6fcb2deba1cb2
parent443450e0e766e5a95528e0e04421de9c9e5adb88 (diff)
automatic import of python-yannopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-yann.spec102
-rw-r--r--sources1
3 files changed, 104 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..96e4088 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/yann-0.0.40.tar.gz
diff --git a/python-yann.spec b/python-yann.spec
new file mode 100644
index 0000000..c8f8be1
--- /dev/null
+++ b/python-yann.spec
@@ -0,0 +1,102 @@
+%global _empty_manifest_terminate_build 0
+Name: python-yann
+Version: 0.0.40
+Release: 1
+Summary: yet another neural network library
+License: MIT
+URL: https://github.com/michalwols/yann
+Source0: https://mirrors.aliyun.com/pypi/web/packages/3a/87/9306e50482fbefb285b0000f97e1d0b4bcbe468bba7f5d505631262367ec/yann-0.0.40.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-scipy
+Requires: python3-scikit-learn
+Requires: python3-torch
+Requires: python3-matplotlib
+Requires: python3-torchvision
+Requires: python3-tqdm
+Requires: python3-click
+Requires: python3-pretrainedmodels
+
+%description
+
+# yann (Yet Another Neural Network Library)
+
+Yann is an extended version of torch.nn, adding a ton of sugar to make training models as fast and easy as possible.
+
+
+
+
+
+%package -n python3-yann
+Summary: yet another neural network library
+Provides: python-yann
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-yann
+
+# yann (Yet Another Neural Network Library)
+
+Yann is an extended version of torch.nn, adding a ton of sugar to make training models as fast and easy as possible.
+
+
+
+
+
+%package help
+Summary: Development documents and examples for yann
+Provides: python3-yann-doc
+%description help
+
+# yann (Yet Another Neural Network Library)
+
+Yann is an extended version of torch.nn, adding a ton of sugar to make training models as fast and easy as possible.
+
+
+
+
+
+%prep
+%autosetup -n yann-0.0.40
+
+%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-yann -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.40-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..25c5309
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+93c582b104dc47bc59977443aeb48d59 yann-0.0.40.tar.gz