From 6a50ba2dde7ce67e25a2e92b6cc6d1cd14095bf2 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Mar 17 2020 02:38:45 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e1e09b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/github-links-0.2.tar.gz diff --git a/python-mdx_gh_links.spec b/python-mdx_gh_links.spec new file mode 100644 index 0000000..a420c61 --- /dev/null +++ b/python-mdx_gh_links.spec @@ -0,0 +1,51 @@ +%global pypiname mdx_gh_links +%global projname github-links + +Name: python-%{pypiname} +Version: 0.2 +Release: 1%{?dist} +Summary: Python-Markdown Github-Links Extension + +License: BSD +URL: https://github.com/Python-Markdown/%{projname}/ +Source0: https://github.com/Python-Markdown/%{projname}/archive/%{version}.tar.gz#/%{projname}-%{version}.tar.gz + +BuildArch: noarch + + +%global _description %{expand: +This package provides an extension to Python-Markdown which adds support for +shorthand links to GitHub users, repositories, issues and commits.} + +%description %_description + +%package -n python3-%{pypiname} +Summary: %{summary} +BuildRequires: python3-devel +%{?python_provide:%python_provide python3-%{pypiname}} +BuildRequires: python3-markdown + +%description -n python3-%{pypiname} %_description + +%prep +%autosetup -n %{projname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} test_gh_links.py + +%files -n python3-%{pypiname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypiname}-*.egg-info/ +%{python3_sitelib}/%{pypiname}.py +%{python3_sitelib}/__pycache__/* + +%changelog +* Sun Mar 8 2020 Robin Lee - 0.2-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..4970a9b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (github-links-0.2.tar.gz) = 58e95f399ca4f0ffe1b5ceebc19bba00d07f28412f4f13114e7ed17a72bc2901c0f87bb49791fc05f3ac05f19a0e991cdf8e10cbba32944ba594152def088c4f