diff options
author | JinWang An <jinwang.an@samsung.com> | 2021-01-05 16:25:49 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2021-01-05 16:35:48 +0900 |
commit | f601806e8695c1565293f06cb319c48abf6e1874 (patch) | |
tree | cb85bea2f7e91b257b5bf8363083794c31104fd6 /packaging | |
parent | 92c8a02a0a01c39a9cd6e864172f53692a453e20 (diff) | |
download | python-pygments-tizen_7.0_base_hotfix.tar.gz python-pygments-tizen_7.0_base_hotfix.tar.bz2 python-pygments-tizen_7.0_base_hotfix.zip |
Bump to python-pygments 2.7.3tizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasesubmit/tizen_base/20210105.075452submit/tizen_6.5_base/20211028.134601accepted/tizen/base/dev/20230602.080605accepted/tizen/base/20221115.103542accepted/tizen/base/20210110.213346accepted/tizen/8.0/base/20231005.045128accepted/tizen/7.0/base/hotfix/20221116.055121accepted/tizen/7.0/base/20221116.025704accepted/tizen/6.5/base/20211028.060005tizen_basetizen_8.0_basetizen_7.0_base_hotfixtizen_7.0_basetizen_6.5_basesandbox/jinwang.an/python-pygments_2.7.3_20210105accepted/tizen_base_devaccepted/tizen_baseaccepted/tizen_8.0_baseaccepted/tizen_7.0_base_hotfixaccepted/tizen_7.0_baseaccepted/tizen_6.5_base
Change-Id: I6b7a017551b9706436843618811de4f32bc4cb34
Signed-off-by: JinWang An <jinwang.an@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/python-pygments.manifest | 5 | ||||
-rw-r--r-- | packaging/python-pygments.spec | 55 |
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 + + |