diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 08:07:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 08:07:55 +0000 |
commit | ec675f0bab632102cc5c5e810ed6c2a6684735c2 (patch) | |
tree | 265dc9b9308c0aeabd3c6f26857fcd6074b6a3dc /python-latexlintbear.spec | |
parent | 08464cf767e972294375cb886bdece8ce37f6040 (diff) |
automatic import of python-latexlintbear
Diffstat (limited to 'python-latexlintbear.spec')
-rw-r--r-- | python-latexlintbear.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-latexlintbear.spec b/python-latexlintbear.spec new file mode 100644 index 0000000..ae99f78 --- /dev/null +++ b/python-latexlintbear.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-LatexLintBear +Version: 0.10.0 +Release: 1 +Summary: 'LatexLintBear' bear for coala (http://coala.rtfd.org/) +License: AGPL-3.0 +URL: https://pypi.org/project/LatexLintBear/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ea/15/b572777681f4bcfa9790268ce77fe1d1c2facb2c86286f98f4e75fee45c8/LatexLintBear-0.10.0.tar.gz +BuildArch: noarch + + +%description +Checks the code with ``chktex``. + +%package -n python3-LatexLintBear +Summary: 'LatexLintBear' bear for coala (http://coala.rtfd.org/) +Provides: python-LatexLintBear +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-LatexLintBear +Checks the code with ``chktex``. + +%package help +Summary: Development documents and examples for LatexLintBear +Provides: python3-LatexLintBear-doc +%description help +Checks the code with ``chktex``. + +%prep +%autosetup -n LatexLintBear-0.10.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-LatexLintBear -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.0-1 +- Package Spec generated |