diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 14:03:53 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 14:03:53 +0000 |
| commit | 52ff88b9566470a43d0725e503735fb575085d2e (patch) | |
| tree | d3ca7665ff5e7a245fce76878e572b5214f9a6fe /python-pandoc-fignos.spec | |
| parent | a57bd2249d73d74e7056a5658aea495dd4cd1849 (diff) | |
automatic import of python-pandoc-fignosopeneuler20.03
Diffstat (limited to 'python-pandoc-fignos.spec')
| -rw-r--r-- | python-pandoc-fignos.spec | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/python-pandoc-fignos.spec b/python-pandoc-fignos.spec new file mode 100644 index 0000000..4b193f9 --- /dev/null +++ b/python-pandoc-fignos.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pandoc-fignos +Version: 2.4.0 +Release: 1 +Summary: Figure number filter for pandoc +License: GPL +URL: https://github.com/tomduck/pandoc-fignos +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b5/ca/7fbf5c28111e0c1d8793e0579544314e7ce13292cd99105ecd662bd7dd6b/pandoc-fignos-2.4.0.tar.gz +BuildArch: noarch + +Requires: python3-pandoc-xnos + +%description +A pandoc filter for numbering figures and their references +when converting markdown to other formats. + + + + +%package -n python3-pandoc-fignos +Summary: Figure number filter for pandoc +Provides: python-pandoc-fignos +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pandoc-fignos +A pandoc filter for numbering figures and their references +when converting markdown to other formats. + + + + +%package help +Summary: Development documents and examples for pandoc-fignos +Provides: python3-pandoc-fignos-doc +%description help +A pandoc filter for numbering figures and their references +when converting markdown to other formats. + + + + +%prep +%autosetup -n pandoc-fignos-2.4.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-pandoc-fignos -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.0-1 +- Package Spec generated |
