clean spec file 47/27847/1 tizen
authorRonan Le Martret <ronan@fridu.net>
Fri, 19 Sep 2014 16:36:42 +0000 (18:36 +0200)
committerRonan Le Martret <ronan@fridu.net>
Fri, 19 Sep 2014 16:36:42 +0000 (18:36 +0200)
 - improve rpmlint score

Change-Id: I3c832da6a906bb36830e423991c72e1692079e9e
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/python-pygments.spec

index 46b63a6..709d961 100644 (file)
@@ -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
-
-