File eric.spec of Package eric

#
# spec file for package eric (Version 4.2.1)
#
# Copyright (c) 2008 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:  python-qscintilla
Url:            http://www.die-offenbachs.de/eric/
%define python_site    %{_prefix}/%{_lib}/python%{py_ver}/site-packages
License:        GPL v2 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
Requires:       python-xml
Requires:       unzip
Version:        4.2.1
Release:        1
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
Source8:        x-eric.desktop
Source10:       Plugin_Checker_PyLint-4.1.2.tar.bz2
Source11:       Plugin_Packager_CxFreeze-4.1.3.tar.bz2
Source12:       Plugin_Refactoring_BRM-4.1.2.tar.bz2
Source13:       Plugin_Refactoring_Rope-1.1.1.tar.bz2
Source14:       Plugin_Tools_CharTables-4.1.3.tar.bz2
Source15:       Plugin_Vcs_CVS-4.1.7.tar.bz2
Patch0:         destdir-fix.diff
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 12 -b 13 -b 14 -b 15 -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

%files
%defattr(-,root,root)
%doc changelog README LICENSE.GPL
/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
* Tue Sep 23 2008 dmueller@suse.de
- update to 4.2.1:
  * for detailed changelog, see included changelog
* Thu Jul 10 2008 stbinner@suse.de
- update to 4.1.6: bug fixes
* Mon Jun 16 2008 stbinner@suse.de
- update to 4.1.5: bug fixes and compatibility fixes for Qt 4.4
* Thu Apr 24 2008 dmueller@suse.de
- update to 4.1.2:
  * plugin support, many other new features and bugfixes (see ChangeLog)
* Wed Dec 19 2007 stbinner@suse.de
- update to 4.0.4: several bugfixes
* Mon Oct 01 2007 stbinner@suse.de
- update to 4.0.2:
  - bug fixes
  - added '-z' to installer to inhibit compilation of python files
  - changed code to not look for the Qt4 tools in a subdirectory of
  the Qt installation directory (it is now required, that the Qt
  bin directory is in the PATH)
  - changed code of Python debug client to better intercept output
  on non-win32 systems
* Tue Sep 04 2007 dmueller@suse.de
- fix typo in last change
- add eric symlink
* Fri Aug 31 2007 dmueller@suse.de
- fix qscintilla requires (#bug 297650)
* Mon Aug 27 2007 dmueller@suse.de
- reduce buildrequires
* Sat Aug 11 2007 wstephenson@suse.de
- Add eric project files mimetype (#288962)
* Sat Aug 11 2007 dmueller@suse.de
- fix requires (#297650)
* Sun Jul 22 2007 stbinner@suse.de
- update to 4.0.1: Qt 4 version, for other changes see ChangeLog
* Sun Apr 22 2007 stbinner@suse.de
- update to 3.9.5: bugfixes and updated PyLint interface
* Fri Feb 02 2007 stbinner@suse.de
- fix changes file not incremental
* Tue Jan 02 2007 stbinner@suse.de
- update to version 3.9.4:
  * enhanced compatibility for Subversion 1.4
  * added support for new QScintilla stuff
  (e.g. autocomplete from document and APIs)
  * extended debugger to not set the encoding (configurable)
  * added keyboard shortcuts for the shell (clear, zoom actions)
  * added the tool eric3-configure to setup eric3 without the need
  to start the IDE
* Mon Jun 26 2006 stbinner@suse.de
- update to version 3.9.1
  * bug fixes
  * introduced a config option for wrapping long lines in editor
  * removed Mercurial support because it wasn't used
* Wed Jun 21 2006 adrian@suse.de
- fix build for 10.1 and below with original qscintilla
* Wed May 24 2006 adrian@suse.de
- fix build for < 10.1
  * remove obsolete BuildRequires
* Thu May 18 2006 dmueller@suse.de
- update buildrequires
* Wed May 17 2006 stbinner@suse.de
- update to version 3.9
  * a bunch of bug fixes
  * a few usability enhancements
  * support for Qt4 and PyQt4
  * support for functions new to subversion >= 1.2.0
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 22 2005 ro@suse.de
- require pyton-qt instead of PyQt
* Mon Dec 19 2005 stbinner@suse.de
- update to version 3.8.1
* Mon Nov 14 2005 stbinner@suse.de
- readd i18n files which were before last update in big tarball
* Mon Nov 07 2005 stbinner@suse.de
- update to version 3.8.0
* Mon Sep 26 2005 stbinner@suse.de
- made icon background transparent
* Mon Sep 19 2005 joe@suse.de
- update to version 3.7.2
* Mon Jul 11 2005 joe@suse.de
- update to bugfix version 3.7.1
* Mon Jun 06 2005 joe@suse.de
- update to version 3.7.0
* Mon Feb 21 2005 joe@suse.de
- update to bugfix version 3.6.2
- switching to using PyQt virtual package dependency, so
  we have the option of supplying separate binding packages later
* Thu Feb 17 2005 joe@suse.de
- fixing missing MimeType entries in .desktop file
* Mon Feb 07 2005 joe@suse.de
- using a somewhat better icon for the menus now
* Sat Jan 29 2005 joe@suse.de
- update to bugfix version 3.6.1
* Thu Jan 27 2005 joe@suse.de
- fixed the build requirements to get eric3 built on
  pre-9.2 distributions
* Sun Jan 23 2005 joe@suse.de
- update to version 3.6.0
- this version uses KDE widgets where possible
* Mon Dec 06 2004 joe@suse.de
- added the translation packages
* Fri Dec 03 2004 adrian@suse.de
- update to version 3.5.1
* Wed Sep 29 2004 joe@suse.de
- updated to prerelease of 3.5
- removed crystal icons; they are part of the package now
- now with German, Russion, French translations
* Tue Sep 21 2004 adrian@suse.de
- use kdebindings3-python instead of sip/PyQt
* Thu Sep 16 2004 adrian@suse.de
- fix build for lib64
* Fri Sep 10 2004 adrian@suse.de
- fix icon pixmap for menu entry
* Thu Jun 24 2004 joe@suse.de
- add CrystalSVG icons and make them the default
- add the PyQt API files (not activated by default)
* Fri May 28 2004 adrian@suse.de
- add menu entry (#41338)
* Thu May 27 2004 adrian@suse.de
- update to version 3.4.2
* Tue Apr 20 2004 adrian@suse.de
- update to version 3.4.1
* Tue Jan 06 2004 adrian@suse.de
- update to version 3.3.1
- use BuildRoot
* Fri Sep 19 2003 adrian@suse.de
- add german translation (#29882)
* Fri Aug 29 2003 mcihar@suse.cz
- require same python version as it was built with
- better site-packages path detection
* Wed Jul 16 2003 adrian@suse.de
- update to version 3.2
* Tue May 27 2003 adrian@suse.de
- remove not needed helpviewer
  (it is also build in and conflicts with other packages)
* Fri May 23 2003 adrian@suse.de
- eric was formerly in PyQt
- initial own package with version 3.1
openSUSE Build Service is sponsored by