summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pytrec-eval-terrier.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b691e76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytrec_eval-terrier-0.5.5.tar.gz
diff --git a/python-pytrec-eval-terrier.spec b/python-pytrec-eval-terrier.spec
new file mode 100644
index 0000000..8ca306e
--- /dev/null
+++ b/python-pytrec-eval-terrier.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytrec-eval-terrier
+Version: 0.5.5
+Release: 1
+Summary: Provides Python bindings for popular Information Retrieval measures implemented within trec_eval.
+License: MIT License
+URL: https://github.com/cvangysel/pytrec_eval
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/fa/26a590d5a3b2a9278d783582381e1301c65aa66e4cef0386e3546578b603/pytrec_eval-terrier-0.5.5.tar.gz
+
+
+%description
+
+
+%package -n python3-pytrec-eval-terrier
+Summary: Provides Python bindings for popular Information Retrieval measures implemented within trec_eval.
+Provides: python-pytrec-eval-terrier
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pytrec-eval-terrier
+
+
+%package help
+Summary: Development documents and examples for pytrec-eval-terrier
+Provides: python3-pytrec-eval-terrier-doc
+%description help
+
+
+%prep
+%autosetup -n pytrec-eval-terrier-0.5.5
+
+%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-pytrec-eval-terrier -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..add9958
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c772e0887b9ec9b7abeb778cd33ebfed pytrec_eval-terrier-0.5.5.tar.gz