From 1c7de0a40c2763b3bd3f611462f9b6e856a347a5 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Fri, 19 Sep 2014 18:36:42 +0200 Subject: [PATCH] clean spec file - improve rpmlint score Change-Id: I3c832da6a906bb36830e423991c72e1692079e9e Signed-off-by: Ronan Le Martret --- packaging/python-pygments.spec | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/packaging/python-pygments.spec b/packaging/python-pygments.spec index 46b63a6..709d961 100644 --- a/packaging/python-pygments.spec +++ b/packaging/python-pygments.spec @@ -1,20 +1,19 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} - Name: python-pygments Version: 1.1.1 -Release: 1 +Release: 0 Summary: A syntax highlighting engine written in Python - Group: Development/Libraries -License: BSD +License: BSD-2-Clause URL: http://pygments.org/ Source0: %{name}-%{version}.tar.gz -Source1001: python-pygments.manifest +Source1001: python-pygments.manifest BuildArch: noarch -BuildRequires: python-devel, python-setuptools +BuildRequires: python-devel +BuildRequires: python-setuptools Requires: python-setuptools +BuildRequires: fdupes %description Pygments is a syntax highlighting engine written in Python. That means, it @@ -22,24 +21,21 @@ 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 +%fdupes %{buildroot} %if 0%{?suse_version} %files -f INSTALLED_FILES @@ -51,5 +47,3 @@ cp %{SOURCE1001} . %endif # For noarch packages: sitelib %{_bindir}/pygmentize - - -- 2.7.4