fix spec file shortcomings

OBS-URL: https://build.opensuse.org/package/show/utilities/ranger?expand=0&rev=8
This commit is contained in:
Pascal Bleser 2013-07-15 10:29:03 +00:00 committed by Git OBS Bridge
parent 9c51902ab8
commit 103a2e935e

View File

@ -1,35 +1,48 @@
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# vim: set sw=4 ts=4 et nu: # vim: set sw=4 ts=4 et nu:
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: ranger Name: ranger
Version: 1.4.3 Version: 1.4.3
Release: 0 Release: 0
Summary: Console File Manager Summary: Console File Manager
Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz Source: http://nongnu.org/ranger/ranger-%{version}.tar.gz
Source1: ranger.desktop Source1: ranger.desktop
Source99: ranger-rpmlintrc Source99: ranger-rpmlintrc
URL: http://ranger.nongnu.org URL: http://ranger.nongnu.org
Group: Productivity/File utilities Group: Productivity/File utilities
License: GNU General Public License version 3 (GPL v3) License: GNU General Public License version 3 (GPL v3)
BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python-devel >= 2.5.1 BuildRequires: python-devel >= 2.5.1
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
%endif %endif
Requires: file Requires: file
%if 0%{?suse_version} %if 0%{?suse_version}
Recommends: atool Recommends: atool
Recommends: mediainfo Recommends: mediainfo
Recommends: w3m Recommends: w3m
Recommends: highlight Recommends: highlight
%else %else
BuildRequires: atool BuildRequires: atool
Requires: atool Requires: atool
%endif %endif
%if 0%{?suse_version} >= 1120 %if 0%{?suse_version} >= 1120
BuildArch: noarch BuildArch: noarch
%endif %endif
%if 0%{?suse_version} %if 0%{?suse_version}
%py_requires %py_requires