diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 08:34:07 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 08:34:07 +0000 |
| commit | 9282be09fb47156bc337e75267fbb33dfed58222 (patch) | |
| tree | fb7657fad2a135e9fd5690a6fe4d82833364dd81 | |
| parent | b05271df7ee5e6a9d8276f9f9a52591423cdea91 (diff) | |
automatic import of python-mkdocs-autolinks-pluginopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-mkdocs-autolinks-plugin.spec | 76 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/mkdocs-autolinks-plugin-0.7.0.tar.gz diff --git a/python-mkdocs-autolinks-plugin.spec b/python-mkdocs-autolinks-plugin.spec new file mode 100644 index 0000000..ef55ab2 --- /dev/null +++ b/python-mkdocs-autolinks-plugin.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mkdocs-autolinks-plugin +Version: 0.7.0 +Release: 1 +Summary: An MkDocs plugin +License: MIT +URL: https://github.com/midnightprioriem/mkdocs-autolinks-plugin +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/5d/bb5d2d52100f2916edcd7999263bbb0a46f49fb6956759cac58709862a47/mkdocs-autolinks-plugin-0.7.0.tar.gz +BuildArch: noarch + +Requires: python3-mkdocs + +%description +An MkDocs plugin that automagically generates relative links between markdown pages + + +%package -n python3-mkdocs-autolinks-plugin +Summary: An MkDocs plugin +Provides: python-mkdocs-autolinks-plugin +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mkdocs-autolinks-plugin +An MkDocs plugin that automagically generates relative links between markdown pages + + +%package help +Summary: Development documents and examples for mkdocs-autolinks-plugin +Provides: python3-mkdocs-autolinks-plugin-doc +%description help +An MkDocs plugin that automagically generates relative links between markdown pages + + +%prep +%autosetup -n mkdocs-autolinks-plugin-0.7.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-mkdocs-autolinks-plugin -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +373d5383c1e631162ced12dbd1dce5d7 mkdocs-autolinks-plugin-0.7.0.tar.gz |
