summaryrefslogtreecommitdiff
path: root/python-biblib-simple.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-biblib-simple.spec')
-rw-r--r--python-biblib-simple.spec117
1 files changed, 117 insertions, 0 deletions
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