%global _empty_manifest_terminate_build 0
Name: python-mdx_gh_links
Version: 0.4
Release: 1
Summary: An extension to Python-Markdown
License: BSD-3-Clause
URL: https://github.com/Python-Markdown/github-links/
Source0: https://files.pythonhosted.org/packages/2f/ea/bf1f721a8dc0ff83b426480f040ac68dbe3d7898b096c1277a5a4e3da0ec/mdx_gh_links-0.4.tar.gz
BuildArch: noarch
Requires: python3-markdown
%description
An extension to Python-Markdown which adds support for shorthand links to GitHub users, repositories, issues and commits.
%package -n python3-mdx_gh_links
Summary: An extension to Python-Markdown
Provides: python-mdx_gh_links
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
%description -n python3-mdx_gh_links
An extension to Python-Markdown which adds support for shorthand links to GitHub users, repositories, issues and commits.
%package help
Summary: Development documents and examples for mdx_gh_links
Provides: python3-mdx_gh_links-doc
%description help
An extension to Python-Markdown which adds support for shorthand links to GitHub users, repositories, issues and commits.
%prep
%autosetup -n mdx_gh_links-%{version}
%build
%pyproject_build
%install
%pyproject_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-mdx_gh_links -f filelist.lst
%dir %{python3_sitelib}/*
%{python3_sitelib}/__pycache__/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon Apr 08 2024 zhaojingyu <zhaojingyu@kylinos.cn> - 0.4-1
- Update package to 0.4
- Add domain configuration option in order to support GitHub Enterprise Servers
* Tue Aug 01 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 0.3.1-1
- Update package to version 0.3.1
* Tue Sep 27 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.3-1
- Upgrade to 0.3
* Wed May 11 2022 houyingchao <houyingchao@h-partners.com> - 0.2-2
- License compliance rectification
* Sun Jul 04 2021 Python_Bot <Python_Bot@openeuler.org> - 0.2-1
- Package Spec generated