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

# norootforbuild

Name:           eric
BuildRequires:  libjpeg-devel libqt4-devel python-xml unzip update-desktop-files
BuildRequires:  fdupes python-qscintilla python-qt4-devel python-sip-devel
%define python_site    %{_prefix}/%{_lib}/python%{py_ver}/site-packages
License:        GPLv3+
Group:          Development/Tools/IDE
Summary:        Python IDE
Requires:       python-qt4 >= %( echo `rpm -q --queryformat '%{VERSION}' python-qt4`)
Requires:       python-qscintilla >= %( echo `rpm -q --queryformat '%{VERSION}' python-qscintilla`)
Recommends:     python-doc >= %py_ver
Recommends:     python-cx-freeze
Recommends:     python-rope >= 0.9.2
Recommends:     python-pylint >= 0.18.0
Recommends:     python-enchant >= 1.5.3
Requires:       python-pysvn >= 1.7.0
Requires:       python-logilab-astng >= 0.19.0
Requires:       python-logilab-common >= 0.43.0
Requires:       python-xml
Requires:       unzip
Version:        4.4.12
Release:        0.<RELEASE2>

Source0:        eric4-%version.tar.gz
Source1:        %name.desktop
Source2:        x-eric.desktop
Source3:        %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

Source30:       Plugin_Assistant_Eric-1.2.3.tar.gz
Source31:       Plugin_Checker_PyLint-4.2.1.tar.gz
Source32:       Plugin_Packager_CxFreeze-4.3.0.tar.gz
Source33:       Plugin_Refactoring_Rope-1.1.5.tar.bz2
Source34:       Plugin_Tools_CharTables-4.1.4.tar.bz2
Source35:       Plugin_Vcs_CVS-4.1.12.tar.bz2

Source40:       Plugin_Project_Django-2.1.2.tar.gz
Source41:       Plugin_Project_Pylons-1.0.0.tar.bz2
Source42:       Plugin_Project_TurboGears-1.0.5.tar.bz2
Source43:       Plugin_Project_wxPython-1.0.3.tar.bz2

Patch0:         %{name}-build_compare.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A Python IDE written in PyQt.

    Detlev Offenbach <>

%setup -q -b 10 -b 11 -b 12 -b 13 -b 14 -b 15 -b 16 -b 17 -b 18 -b 30 -b 31 -b 32 -b 33 -b 34 -b 35 -b 40 -b 41 -b 42 -b 43 -n eric4-%{version}
pushd ..
  for plug in Plugin*; do
    pushd $plug
      rm -f PKGLIST VERSION ChangeLog *e4p *zip

# nothing here

python \
 -b /usr/bin \
 -d %python_site \
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application
cp %SOURCE2 $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/x-eric.desktop
cp %SOURCE3 $RPM_BUILD_ROOT/usr/share/pixmaps/eric.png
%suse_update_desktop_file -i eric Development IDE
ln -s eric4 $RPM_BUILD_ROOT/usr/bin/eric
cd ..
for plug in Plugin*/; do
  pushd $RPM_BUILD_ROOT/%python_site/eric4plugins
    cp -a $sd/$plug/* .
%fdupes $RPM_BUILD_ROOT/%python_site/eric4

%doc changelog README LICENSE.GPL3
%dir /opt/kde3
%dir /opt/kde3/share
%dir /opt/kde3/share/mimelnk
%dir /opt/kde3/share/mimelnk/application

openSUSE Build Service is sponsored by