summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-01-05 16:25:49 +0900
committerJinWang An <jinwang.an@samsung.com>2021-01-05 16:35:48 +0900
commitf601806e8695c1565293f06cb319c48abf6e1874 (patch)
treecb85bea2f7e91b257b5bf8363083794c31104fd6
parent92c8a02a0a01c39a9cd6e864172f53692a453e20 (diff)
downloadpython-pygments-accepted/tizen_7.0_base.tar.gz
python-pygments-accepted/tizen_7.0_base.tar.bz2
python-pygments-accepted/tizen_7.0_base.zip
Change-Id: I6b7a017551b9706436843618811de4f32bc4cb34 Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r--packaging/python-pygments.manifest5
-rw-r--r--packaging/python-pygments.spec55
2 files changed, 60 insertions, 0 deletions
diff --git a/packaging/python-pygments.manifest b/packaging/python-pygments.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/python-pygments.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python-pygments.spec b/packaging/python-pygments.spec
new file mode 100644
index 0000000..31e181f
--- /dev/null
+++ b/packaging/python-pygments.spec
@@ -0,0 +1,55 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name: python-pygments
+Version: 2.7.3
+Release: 1
+Summary: A syntax highlighting engine written in Python
+
+Group: Development/Libraries
+License: BSD
+URL: http://pygments.org/
+Source0: %{name}-%{version}.tar.gz
+Source1001: python-pygments.manifest
+
+BuildArch: noarch
+BuildRequires: python-devel, python-setuptools
+Requires: python-setuptools
+
+
+%description
+Pygments is a syntax highlighting engine written in Python. That means, it
+will take source code (or other markup) in a supported language and output
+a processed version (in different formats) containing syntax highlighting
+markup.
+
+
+%prep
+%setup -q
+
+
+%build
+cp %{SOURCE1001} .
+%{__python} setup.py build
+%{__sed} -i 's/\r//' LICENSE
+
+
+%install
+
+%if 0%{?suse_version}
+%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
+%else
+%{__python} setup.py install -O1 --skip-build --root %{buildroot} --prefix=%{_prefix}
+%endif
+
+%if 0%{?suse_version}
+%files -f INSTALLED_FILES
+%manifest %{name}.manifest
+%else
+%files
+%manifest %{name}.manifest
+%{python_sitelib}/*
+%endif
+# For noarch packages: sitelib
+%{_bindir}/pygmentize
+
+