diff options
Diffstat (limited to 'python-saxpy.spec')
| -rw-r--r-- | python-saxpy.spec | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/python-saxpy.spec b/python-saxpy.spec new file mode 100644 index 0000000..7a3350a --- /dev/null +++ b/python-saxpy.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-saxpy +Version: 1.0.1.dev167 +Release: 1 +Summary: SAX, HOTSAX, EMMA implementations for Python +License: GPL2 +URL: https://github.com/seninp/saxpy.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c1/06/c912c97c8348ffabf47b7c010f400574ef9fcf38ba33b449437e58b60c48/saxpy-1.0.1.dev167.tar.gz +BuildArch: noarch + +Requires: python3-codecov +Requires: python3-numpy +Requires: python3-pytest +Requires: python3-pytest-cov + +%description +This code is released under `GPL v.2.0 <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>`_ and implements in Python: + * Symbolic Aggregate approXimation (i.e., SAX) stack [LIN2002] + * a simple function for time series motif discovery [PATEL2001] + * HOT-SAX - a time series anomaly (discord) discovery algorithm [KEOGH2005] +Note that the most of the library's functionality is also available in `R <https://github.com/jMotif/jmotif-R>`__ and `Java <https://github.com/jMotif/SAX>`__ + +%package -n python3-saxpy +Summary: SAX, HOTSAX, EMMA implementations for Python +Provides: python-saxpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-saxpy +This code is released under `GPL v.2.0 <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>`_ and implements in Python: + * Symbolic Aggregate approXimation (i.e., SAX) stack [LIN2002] + * a simple function for time series motif discovery [PATEL2001] + * HOT-SAX - a time series anomaly (discord) discovery algorithm [KEOGH2005] +Note that the most of the library's functionality is also available in `R <https://github.com/jMotif/jmotif-R>`__ and `Java <https://github.com/jMotif/SAX>`__ + +%package help +Summary: Development documents and examples for saxpy +Provides: python3-saxpy-doc +%description help +This code is released under `GPL v.2.0 <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>`_ and implements in Python: + * Symbolic Aggregate approXimation (i.e., SAX) stack [LIN2002] + * a simple function for time series motif discovery [PATEL2001] + * HOT-SAX - a time series anomaly (discord) discovery algorithm [KEOGH2005] +Note that the most of the library's functionality is also available in `R <https://github.com/jMotif/jmotif-R>`__ and `Java <https://github.com/jMotif/SAX>`__ + +%prep +%autosetup -n saxpy-1.0.1.dev167 + +%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-saxpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1.dev167-1 +- Package Spec generated |
