File eric.spec of Package eric
#
# spec file for package eric (Version 4.3.6)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: eric
BuildRequires: libjpeg-devel libqt4-devel python-xml unzip update-desktop-files
BuildRequires: fdupes python-qscintilla python-qt4-devel python-sip-devel
Url: http://eric-ide.python-projects.org/
%define python_site %{_prefix}/%{_lib}/python%{py_ver}/site-packages
License: GPL v3 or later
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.3.6
Release: 5
Source0: eric4-%version.tar.bz2
Source1: %name.desktop
Source3: %name.png
Source4: eric4-i18n-cs-%version.tar.bz2
Source5: eric4-i18n-de-%version.tar.bz2
Source6: eric4-i18n-fr-%version.tar.bz2
Source7: eric4-i18n-ru-%version.tar.bz2
Source16: eric4-i18n-es-%version.tar.bz2
Source17: eric4-i18n-tr-%version.tar.bz2
Source18: eric4-i18n-zh_CN.GB2312-%version.tar.bz2
Source8: x-eric.desktop
Source10: Plugin_Checker_PyLint-4.1.3.tar.bz2
Source11: Plugin_Packager_CxFreeze-4.2.0.tar.bz2
Source13: Plugin_Refactoring_Rope-1.1.5.tar.bz2
Source14: Plugin_Tools_CharTables-4.1.4.tar.bz2
Source15: Plugin_Vcs_CVS-4.1.11.tar.bz2
Source19: Plugin_Assistant_Eric-1.2.1.tar.bz2
Source20: Plugin_Project_Django-2.1.0.tar.bz2
Source21: Plugin_Project_Pylons-1.0.0.tar.bz2
Source22: Plugin_Project_TurboGears-1.0.5.tar.bz2
Source23: Plugin_Project_wxPython-1.0.3.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
A Python IDE written in PyQt.
Authors:
--------
Detlev Offenbach <detlev@die-offenbachs.de>
%prep
%setup -q -b 4 -b 5 -b 6 -b 7 -b 16 -b 17 -b 10 -b 11 -b 13 -b 14 -b 15 -b 18 -b 19 -b 20 -b 21 -b 22 -b 23 -n eric4-%{version}
#%patch0
pushd ..
for plug in Plugin*; do
pushd $plug
rm -f PKGLIST VERSION ChangeLog *e4p *zip
popd
done
popd
%build
# nothing here
%install
python install.py \
-b /usr/bin \
-d %python_site \
-i $RPM_BUILD_ROOT \
-x
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application
cp %SOURCE3 $RPM_BUILD_ROOT/usr/share/pixmaps/eric.png
cp %SOURCE8 $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/x-eric.desktop
%suse_update_desktop_file -i eric Development IDE
ln -s eric4 $RPM_BUILD_ROOT/usr/bin/eric
cd ..
sd=$PWD
for plug in Plugin*/; do
pushd $RPM_BUILD_ROOT/%python_site/eric4plugins
cp -a $sd/$plug/* .
popd
done
%fdupes $RPM_BUILD_ROOT/%python_site/eric4
%files
%defattr(-,root,root)
%doc changelog README LICENSE.GPL3
/usr/bin/*
/usr/share/applications/*desktop
/usr/share/pixmaps/*png
%dir /opt/kde3
%dir /opt/kde3/share
%dir /opt/kde3/share/mimelnk
%dir /opt/kde3/share/mimelnk/application
/opt/kde3/share/mimelnk/application/x-eric.desktop
/%python_site/*
/usr/share/qt4/qsci/api/python
/usr/share/qt4/qsci/api/ruby
%changelog