From 94e02b743a433661b7100de355c7f187cdd75f61 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 09:04:56 +0000 Subject: automatic import of python-imodels --- python-imodels.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 python-imodels.spec (limited to 'python-imodels.spec') diff --git a/python-imodels.spec b/python-imodels.spec new file mode 100644 index 0000000..0a54e45 --- /dev/null +++ b/python-imodels.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-imodels +Version: 1.3.17 +Release: 1 +Summary: Implementations of various interpretable models +License: MIT License +URL: https://github.com/csinva/imodels +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1a/ca/c2782a803d038384b9cf1f72e1b5ad2c6cb83a5028d9ee7d6cc30559e629/imodels-1.3.17.tar.gz +BuildArch: noarch + +Requires: python3-matplotlib +Requires: python3-mlxtend +Requires: python3-numpy +Requires: python3-pandas +Requires: python3-requests +Requires: python3-scipy +Requires: python3-scikit-learn +Requires: python3-tqdm +Requires: python3-dvu +Requires: python3-gdown +Requires: python3-jupyter +Requires: python3-jupytext +Requires: python3-matplotlib +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-slurmpy +Requires: python3-tqdm +Requires: python3-pmlb + +%description +Decision Tree with Hierarchical Shrinkage + +%package -n python3-imodels +Summary: Implementations of various interpretable models +Provides: python-imodels +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-imodels +Decision Tree with Hierarchical Shrinkage + +%package help +Summary: Development documents and examples for imodels +Provides: python3-imodels-doc +%description help +Decision Tree with Hierarchical Shrinkage + +%prep +%autosetup -n imodels-1.3.17 + +%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-imodels -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 1.3.17-1 +- Package Spec generated -- cgit v1.2.3