diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 05:16:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 05:16:41 +0000 |
commit | abc30da7781956cfe96d3e97faf433f22676efe6 (patch) | |
tree | 454f27ad425f02245ef801b0b732732af6256231 /python-ada-core.spec | |
parent | 9b7a2208b85d515238ccc553e7c0bc114c96a0be (diff) |
automatic import of python-ada-core
Diffstat (limited to 'python-ada-core.spec')
-rw-r--r-- | python-ada-core.spec | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/python-ada-core.spec b/python-ada-core.spec new file mode 100644 index 0000000..103a3c0 --- /dev/null +++ b/python-ada-core.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ada-core +Version: 0.3.20 +Release: 1 +Summary: ada_core is an anomaly detection library for timeseries data +License: Apache Software License +URL: https://github.paypal.com/ROM/ada_core +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2c/1d/e16299682e2eefabb60332b0725e6c4465f5f81eca447acd91f6cf47a802/ada_core-0.3.20.tar.gz +BuildArch: noarch + +Requires: python3-PyYAML +Requires: python3-pytz +Requires: python3-scipy +Requires: python3-numpy +Requires: python3-pandas +Requires: python3-statsmodels +Requires: python3-schematics + +%description + + +%package -n python3-ada-core +Summary: ada_core is an anomaly detection library for timeseries data +Provides: python-ada-core +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ada-core + + +%package help +Summary: Development documents and examples for ada-core +Provides: python3-ada-core-doc +%description help + + +%prep +%autosetup -n ada-core-0.3.20 + +%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-ada-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.20-1 +- Package Spec generated |