File eric.spec of Package eric

#
# spec file for package eric
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           eric
Version:        4.4.17
Release:        1
License:        GPLv3+
Summary:        Python IDE
Url:            http://eric-ide.python-projects.org/
Group:          Development/Tools/IDE
BuildRequires:  fdupes
BuildRequires:  python-qscintilla
BuildRequires:  python-qt4-devel
BuildRequires:  unzip
BuildRequires:  update-desktop-files
Requires:       python-logilab-astng >= 0.19.0
Requires:       python-logilab-common >= 0.43.0
Requires:       python-pysvn >= 1.7.0
Requires:       python-qscintilla >= %( echo `rpm -q --queryformat '%{VERSION}' python-qscintilla`)
Requires:       python-qt4 >= %( echo `rpm -q --queryformat '%{VERSION}' python-qt4`)
Requires:       unzip
Recommends:     python-cx_freeze
Recommends:     python-doc >= %{py_ver}
Recommends:     python-enchant >= 1.5.3
Recommends:     python-pylint >= 0.18.0
Recommends:     python-rope >= 0.9.2

Source0:        eric4-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.png

Source10:       eric4-i18n-cs-%{version}.tar.gz
Source11:       eric4-i18n-de-%{version}.tar.gz
Source12:       eric4-i18n-en-%{version}.tar.gz
Source13:       eric4-i18n-es-%{version}.tar.gz
Source14:       eric4-i18n-fr-%{version}.tar.gz
Source15:       eric4-i18n-it-%{version}.tar.gz
Source16:       eric4-i18n-ru-%{version}.tar.gz
Source17:       eric4-i18n-tr-%{version}.tar.gz
Source18:       eric4-i18n-zh_CN.GB2312-%{version}.tar.gz
Patch0:         %{name}-build_compare.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

%description
A Python IDE written in PyQt.

%prep
%setup -q -b 10 -b 11 -b 12 -b 13 -b 14 -b 15 -b 16 -b 17 -b 18 -n eric4-%{version}
%patch0

%build
# nothing here

%install
python install.py \
 -b %{_bindir} \
 -d %{py_sitedir} \
 -i %{buildroot} \
 -x
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/eric.png
%suse_update_desktop_file -i eric Development IDE
ln -s eric4 %{buildroot}%{_bindir}/eric
chmod a+x %{buildroot}%{py_sitedir}/eric4/*.py
chmod a+x %{buildroot}%{py_sitedir}/eric4/Examples/*.py
%fdupes %{buildroot}%{py_sitedir}/eric4
echo `rpm -q --queryformat '%{VERSION}' python-qt4`
echo `rpm -q --queryformat '%{VERSION}' python-qscintilla`

%files
%defattr(-,root,root)
%doc changelog README LICENSE.GPL3
%{_bindir}/*
%{_datadir}/applications/*desktop
%{_datadir}/pixmaps/*png
%{py_sitedir}/*
%{_datadir}/qt4/qsci/api/python
%{_datadir}/qt4/qsci/api/ruby

%changelog
openSUSE Build Service is sponsored by