[packages/python-pygments-github-lexers] - new
qboosh
qboosh at pld-linux.org
Fri Jul 18 20:55:09 CEST 2025
commit dde90aacb943281a3bef79feadca31b01cd90c0a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jul 18 20:56:42 2025 +0200
- new
python-pygments-github-lexers.spec | 89 ++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
---
diff --git a/python-pygments-github-lexers.spec b/python-pygments-github-lexers.spec
new file mode 100644
index 0000000..a74b7b7
--- /dev/null
+++ b/python-pygments-github-lexers.spec
@@ -0,0 +1,89 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Pygments Github custom lexers
+Summary(pl.UTF-8): Leksery dla pygments dostosowane do Githuba
+Name: python-pygments-github-lexers
+Version: 0.0.5
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pygments-github-lexers/
+Source0: https://files.pythonhosted.org/packages/source/p/pygments-github-lexers/pygments-github-lexers-%{version}.tar.gz
+# Source0-md5: d4d76b710bee8ffcca02f8cb550806d7
+URL: https://pypi.org/project/pygments-github-lexers/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pygments Github custom lexers.
+
+%description -l pl.UTF-8
+Leksery dla pygments dostosowane do Githuba.
+
+%package -n python3-pygments-github-lexers
+Summary: Pygments Github custom lexers
+Summary(pl.UTF-8): Leksery dla pygments dostosowane do Githuba
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+
+%description -n python3-pygments-github-lexers
+Pygments Github custom lexers.
+
+%description -n python3-pygments-github-lexers -l pl.UTF-8
+Leksery dla pygments dostosowane do Githuba.
+
+%prep
+%setup -q -n pygments-github-lexers-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/pygments_github_lexers
+%{py_sitescriptdir}/pygments_github_lexers-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pygments-github-lexers
+%defattr(644,root,root,755)
+%{py3_sitescriptdir}/pygments_github_lexers
+%{py3_sitescriptdir}/pygments_github_lexers-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygments-github-lexers.git/commitdiff/dde90aacb943281a3bef79feadca31b01cd90c0a
More information about the pld-cvs-commit
mailing list