From 644a0687bc3260ba538a3eca896d3cdbaa0180f4 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 17 May 2023 04:44:56 +0000 Subject: automatic import of python-inspire-query-parser --- python-inspire-query-parser.spec | 86 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 python-inspire-query-parser.spec (limited to 'python-inspire-query-parser.spec') diff --git a/python-inspire-query-parser.spec b/python-inspire-query-parser.spec new file mode 100644 index 0000000..3bb68f0 --- /dev/null +++ b/python-inspire-query-parser.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-inspire-query-parser +Version: 6.0.51 +Release: 1 +Summary: A PEG-based query parser for INSPIRE. +License: GPLv3 +URL: https://github.com/inspirehep/inspire-query-parser +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fa/71/1f0426706c4fa91bd758691d9e6e06f81126ddd4e7bbfd1ec180dfecdf13/inspire-query-parser-6.0.51.tar.gz +BuildArch: noarch + +Requires: python3-inspire-schemas +Requires: python3-inspire-utils +Requires: python3-pypeg2 +Requires: python3-dateutil +Requires: python3-six +Requires: python3-datefinder +Requires: python3-flake8 +Requires: python3-mock +Requires: python3-pytest-cov +Requires: python3-pytest +Requires: python3-flake8 +Requires: python3-mock +Requires: python3-pytest-cov +Requires: python3-pytest + +%description + + +%package -n python3-inspire-query-parser +Summary: A PEG-based query parser for INSPIRE. +Provides: python-inspire-query-parser +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-inspire-query-parser + + +%package help +Summary: Development documents and examples for inspire-query-parser +Provides: python3-inspire-query-parser-doc +%description help + + +%prep +%autosetup -n inspire-query-parser-6.0.51 + +%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-inspire-query-parser -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot - 6.0.51-1 +- Package Spec generated -- cgit v1.2.3