diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:46:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:46:01 +0000 |
commit | b1d5de6935b350faa746f0c9c448424120e49b58 (patch) | |
tree | cea8702044765275fc6bdd7a9d49761db33b48a8 | |
parent | 908a4f9ba38b71b059b635de9100dd5f48824cf6 (diff) |
automatic import of python-biblib-simple
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-biblib-simple.spec | 117 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 119 insertions, 0 deletions
@@ -0,0 +1 @@ +/biblib-simple-0.1.2.tar.gz diff --git a/python-biblib-simple.spec b/python-biblib-simple.spec new file mode 100644 index 0000000..b2f156b --- /dev/null +++ b/python-biblib-simple.spec @@ -0,0 +1,117 @@ +%global _empty_manifest_terminate_build 0 +Name: python-biblib-simple +Version: 0.1.2 +Release: 1 +Summary: Simple, correct BibTeX parser and algorithms +License: MIT License +URL: https://github.com/colour-science/biblib +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/61/5a4b61f7cc095f7690a7e01f4c4670ecb23e619c0359826179fee4c3686f/biblib-simple-0.1.2.tar.gz +BuildArch: noarch + + +%description +This repository was forked from [Austin Clements +repository](https://github.com/aclements/biblib) to create +a [PyPi package](https://pypi.org/project/biblib-simple/). +Biblib provides a simple, standalone Python3 package for parsing +BibTeX bibliographic databases, as well as algorithms for manipulating +BibTeX entries in BibTeX-y ways. +There are a lot of BibTeX parsers out there. Most of them are +complete nonsense based on some imaginary grammar made up by the +module's author that is almost, but not quite, entirely unlike +BibTeX's actual grammar. *BibTeX has a grammar*. It's even pretty +simple, though it's probably not what you think it is. The hardest +part of BibTeX's grammar is that it's only written down in one place: +the BibTeX source code. +Biblib's parser is derived directly from the WEB source code for +BibTeX and hence (barring bugs in translation) should be fully +compatible with BibTeX's own parser. + +%package -n python3-biblib-simple +Summary: Simple, correct BibTeX parser and algorithms +Provides: python-biblib-simple +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-biblib-simple +This repository was forked from [Austin Clements +repository](https://github.com/aclements/biblib) to create +a [PyPi package](https://pypi.org/project/biblib-simple/). +Biblib provides a simple, standalone Python3 package for parsing +BibTeX bibliographic databases, as well as algorithms for manipulating +BibTeX entries in BibTeX-y ways. +There are a lot of BibTeX parsers out there. Most of them are +complete nonsense based on some imaginary grammar made up by the +module's author that is almost, but not quite, entirely unlike +BibTeX's actual grammar. *BibTeX has a grammar*. It's even pretty +simple, though it's probably not what you think it is. The hardest +part of BibTeX's grammar is that it's only written down in one place: +the BibTeX source code. +Biblib's parser is derived directly from the WEB source code for +BibTeX and hence (barring bugs in translation) should be fully +compatible with BibTeX's own parser. + +%package help +Summary: Development documents and examples for biblib-simple +Provides: python3-biblib-simple-doc +%description help +This repository was forked from [Austin Clements +repository](https://github.com/aclements/biblib) to create +a [PyPi package](https://pypi.org/project/biblib-simple/). +Biblib provides a simple, standalone Python3 package for parsing +BibTeX bibliographic databases, as well as algorithms for manipulating +BibTeX entries in BibTeX-y ways. +There are a lot of BibTeX parsers out there. Most of them are +complete nonsense based on some imaginary grammar made up by the +module's author that is almost, but not quite, entirely unlike +BibTeX's actual grammar. *BibTeX has a grammar*. It's even pretty +simple, though it's probably not what you think it is. The hardest +part of BibTeX's grammar is that it's only written down in one place: +the BibTeX source code. +Biblib's parser is derived directly from the WEB source code for +BibTeX and hence (barring bugs in translation) should be fully +compatible with BibTeX's own parser. + +%prep +%autosetup -n biblib-simple-0.1.2 + +%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-biblib-simple -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +837891eb8e9137310865ca022d71f404 biblib-simple-0.1.2.tar.gz |