From 2468dea478268c10773488e1b9c58da225278c19 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mar 29 2016 01:51:43 +0000 Subject: Initial import (#1318781) --- diff --git a/.gitignore b/.gitignore index e69de29..70c43ad 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pygments-markdown-lexer-0.1.0.dev39.zip diff --git a/python-pygments-markdown-lexer.spec b/python-pygments-markdown-lexer.spec new file mode 100644 index 0000000..45b08cf --- /dev/null +++ b/python-pygments-markdown-lexer.spec @@ -0,0 +1,93 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif + +%{!?_licensedir: %global license %%doc} + +%global modname pygments-markdown-lexer +%global sum A Markdown lexer for Pygments to highlight Markdown code snippets + +Name: python-pygments-markdown-lexer +Version: 0.1.0.dev39 +Release: 2%{?dist} +Summary: %{sum} + +# One file is BSD, the rest are ASL +# https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#Multiple_Licensing_Scenarios +License: ASL 2.0 and BSD +URL: http://pypi.python.org/pypi/pygments-markdown-lexer +Source0: https://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.zip +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python-pygments + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pygments +%endif + +%description +%{sum} + +%package -n python2-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{modname}} + +Requires: python-pygments + +%description -n python2-%{modname} +%{sum} + +%if 0%{?with_python3} +%package -n python3-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{modname}} + +Requires: python3-pygments + +%description -n python3-%{modname} +%{sum} +%endif + +%prep +%autosetup -n %{modname}-%{version} + +%build +%py2_build +%if 0%{?with_python3} +%py3_build +%endif + +%install +%py2_install +%if 0%{?with_python3} +%py3_install +%endif + +# Well this is weird... +rm -rf %{buildroot}/usr/EGG-INFO + +%files -n python2-%{modname} +%doc README.md +%license LICENSE +%{python2_sitelib}/pygments_markdown_lexer/ +%{python2_sitelib}/pygments_markdown_lexer-%{version}* + +%if 0%{?with_python3} +%files -n python3-%{modname} +%doc README.md +%license LICENSE +%{python3_sitelib}/pygments_markdown_lexer/ +%{python3_sitelib}/pygments_markdown_lexer-%{version}-* +%endif + +%changelog +* Tue Mar 22 2016 Ralph Bean - 0.1.0.dev39-2 +- Update licensing info as per review. +- Drop el6 macros. + +* Thu Mar 17 2016 Ralph Bean - 0.1.0.dev39-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..5245f7f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6360fe0f6d1f896e35b7a0142ce6459c pygments-markdown-lexer-0.1.0.dev39.zip