diff --git a/deap-1.3.1.tar.gz b/deap-1.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fb6283073ecf34902eb50db13ddb073346166aa1 Binary files /dev/null and b/deap-1.3.1.tar.gz differ diff --git a/python-deap.spec b/python-deap.spec new file mode 100644 index 0000000000000000000000000000000000000000..cb3771da97a8d05a5ec793e1d46fe1cc004ff6e3 --- /dev/null +++ b/python-deap.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-deap +Version: 1.3.1 +Release: 1 +Summary: Distributed Evolutionary Algorithms in Python +License: LGPL-3.0-only +URL: https://pypi.org/project/deap +Source0: https://files.pythonhosted.org/packages/85/1e/5f707798f8f05616c03079f02b63568b2b91f8136891a2eeffd9f78f6d8b/deap-1.3.1.tar.gz + +Requires: python3-numpy python3-cffi + +%description +DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas. It seeks to make algorithms explicit and data structures transparent. + +%package -n python3-deap +Summary: Distributed Evolutionary Algorithms in Python +Provides: python-deap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-deap +DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas.It seeks to make algorithms explicit and data structures transparent. + +%package help +Summary: Development documents and examples for deap +Provides: python3-deap-doc +%description help +DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas. It seeks to make algorithms explicit and data structures transparent. + +%prep +%autosetup -n deap-1.3.1 + +%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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-deap -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Dec 20 2021 wangqia - 1.3.1-1 +- Package Spec generated