diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:08:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:08:13 +0000 |
commit | 1ff43dc3eb11faa71e18609f646b3ec8e40fc4b6 (patch) | |
tree | f3a8fe8d11be276e3c2b492771dffbd21d8ab417 | |
parent | 99a6bb56da3e7dc66f34d2a7ff9201933e40fe9c (diff) |
automatic import of python-mcqa-utilsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-mcqa-utils.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/mcqa_utils-0.7.0.tar.gz diff --git a/python-mcqa-utils.spec b/python-mcqa-utils.spec new file mode 100644 index 0000000..2db9444 --- /dev/null +++ b/python-mcqa-utils.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mcqa-utils +Version: 0.7.0 +Release: 1 +Summary: Multiple Choice Evaluation utilities +License: MIT license +URL: https://github.com/geblanco/mcqa_utils +Source0: https://mirrors.aliyun.com/pypi/web/packages/e6/ba/8222bd0d05dff3ce5cc30a63c977c8eadf94fd8bbc762065226e243fc805/mcqa_utils-0.7.0.tar.gz +BuildArch: noarch + +Requires: python3-mc-transformers +Requires: python3-numpy +Requires: python3-scikit-learn + +%description + + +%package -n python3-mcqa-utils +Summary: Multiple Choice Evaluation utilities +Provides: python-mcqa-utils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mcqa-utils + + +%package help +Summary: Development documents and examples for mcqa-utils +Provides: python3-mcqa-utils-doc +%description help + + +%prep +%autosetup -n mcqa_utils-0.7.0 + +%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-mcqa-utils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +466eba8e45bab2f2ebba93da57a6875e mcqa_utils-0.7.0.tar.gz |