e1ab905
e1ab905
# Fedora review
e1ab905
# http://bugzilla.redhat.com/186919
e1ab905
b67bb4c
# avoid empty debuginfo package
b67bb4c
%define debug_package %{nil}
b67bb4c
840c6d1
Name:    eric
e1ab905
Summary: Python IDE
2c1d684
Version: 4.3.10
e96e966
Release: 1%{?dist}
e1ab905
e344627
License: GPL+
840c6d1
Group:   Development/Tools
09ac7c7
URL:     http://eric-ide.python-projects.org
d06ef6a
Source:  http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-%{version}.tar.gz
e1ab905
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e1ab905
d06ef6a
Source1: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-fr-%{version}.tar.gz
d06ef6a
Source2: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-de-%{version}.tar.gz
d06ef6a
Source3: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-ru-%{version}.tar.gz
d06ef6a
Source4: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-cs-%{version}.tar.gz
3336579
Source5: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-es-%{version}.tar.gz
3336579
Source6: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-tr-%{version}.tar.gz
1f676ef
Source7: http://downloads.sourceforge.net/sourceforge/eric-ide/%{name}4-i18n-zh_CN.GB2312-%{version}.tar.gz 
aa766f9
Source10: eric4.desktop
e1ab905
7e90637
Patch1:    eric4-4.3.3-shebang.patch
e1ab905
aa766f9
Provides: eric4 = %{version}-%{release}
b094cfa
e1ab905
BuildRequires: desktop-file-utils
d06ef6a
BuildRequires: qscintilla-python-devel
174f506
BuildRequires: qscintilla-python
52dbaaa
BuildRequires: python
e1ab905
f266b6b
# This can be left unversioned
d45a642
Requires: qscintilla-python
e1ab905
f8095eb
# Need this for the documentation
b7fb8a8
Requires(hint): python-docs
b7fb8a8
Requires(hint): qt4-designer
b7fb8a8
# wow, at 80mb+, are we sure we want this?  -- Rex
125aa7f
#Doc is optionnal, we can remove -- Johan
125aa7f
#Requires(hint): qt4-doc
3336579
e1ab905
%global python_ver %(%{__python} -c "import sys ; print sys.version[:3]")
d47a734
%global full_python_ver %(%{__python} -c "import sys ; print sys.version[:3]")
e1ab905
%global python_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
9ca2b50
%global pyqt_ver %(%{__python} -c "from PyQt4 import QtCore; print QtCore.PYQT_VERSION_STR")
9ca2b50
%global qt_ver %(%{__python} -c "from PyQt4 import QtCore; print QtCore.QT_VERSION_STR")
9ca2b50
e1ab905
e1ab905
%description
aa766f9
eric4 is a full featured Python IDE.
e1ab905
e1ab905
e1ab905
%prep
1f676ef
%setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -n %{name}4-%{version}
e1ab905
aa766f9
%patch1 -p1
435154a
424626c
# copy language files
ce23611
mv eric4-%{version}/%{name}/i18n/*.qm %{name}/i18n/
3336579
424626c
rm -rf %{name}-%{version}
f8095eb
3336579
e1ab905
%build
3336579
# Empty build
e1ab905
e1ab905
e1ab905
%install
e1ab905
rm -rf %{buildroot}
e1ab905
mkdir -p %{buildroot}/
e1ab905
0a2bc54
#path to install api files // As of 4.3.1 release, this is no longer required
0a2bc54
#sed -i -e 's|qtDataDir = pyqtconfig._pkg_config\["qt_data_dir"\]|qtDataDir = "%{buildroot}" + pyqtconfig._pkg_config\["qt_data_dir"\]|' install.py
3336579
e1ab905
%{__python} install.py \
e1ab905
  -i %{buildroot}/ \
e1ab905
  -b %{_bindir} \
e1ab905
  -d %{python_sitedir}
e1ab905
74e919a
#we have to correct api path to remove %{builddir}
74e919a
sed -i -e 's|%{buildroot}||' %{buildroot}%{python_sitedir}/eric4config.py
74e919a
e1ab905
desktop-file-install \
e1ab905
  --dir %{buildroot}/%{_datadir}/applications/ \
e344627
  --vendor="" \
e1ab905
  %{SOURCE10}
e1ab905
e1ab905
install -m644 -p -D \
aa766f9
  %{buildroot}%{python_sitedir}/eric4/icons/default/eric.png \
aa766f9
  %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/eric4.png
e1ab905
e1ab905
e1ab905
## generate api files
e1ab905
mkdir -p %{buildroot}%{_datadir}/eric/
e1ab905
e1ab905
# %ghost'd api files (package separately?) -- Rex
e1ab905
PyQt4_apis="QtAssistant.api QtCore.api QtGui.api QtNetwork.api QtOpenGL.api QtSql.api QtSvg.api QtXml.api"
e1ab905
PyKDE_apis="dcop.api kdecore.api kdefx.api kdeprint.api kdeui.api kfile.api khtml.api kmdi.api kparts.api kspell.api kutils.api"
e1ab905
for api in $PyQt4_apis $PyKDE_apis ; do
e1ab905
  touch %{buildroot}%{_datadir}/eric/$api
e1ab905
  echo "%ghost %{_datadir}/eric/$api" >> %{name}-files.list
e1ab905
done
e1ab905
e1ab905
# mostly to make rpmlint happier, non-executable-scripts
aa766f9
chmod a+x %{buildroot}%{python_sitedir}/eric4/ThirdParty/brm/bike/parsing/fastparser.py ||:
aa766f9
chmod a+x %{buildroot}%{python_sitedir}/eric4/*.py ||:
aa766f9
chmod a+x %{buildroot}%{python_sitedir}/eric4/uninstall.py
aa766f9
chmod a+x %{buildroot}%{python_sitedir}/eric4/Examples/hallo.py
aa766f9
chmod a+x %{buildroot}%{python_sitedir}/eric4/DebugClients/Python/PyCoverage.py
aa766f9
chmod a+x %{buildroot}%{python_sitedir}/eric4/Examples/rhallo.py
aa766f9
chmod a-x %{buildroot}%{python_sitedir}/eric4/patch_pyxml.py
e1ab905
9ca2b50
# add envrionment variables for qt, qt4 and python documentations
9ca2b50
sed -i -e 's|exec|QT4DIR=%{_libdir}/qt4\nPYTHONDOCDIR=%{_docdir}/python-docs-%{?full_python_ver}/html\nQTDOCDIR=%{_docdir}/qt-devel-%{?qt_ver}/html\nQT4DOCDIR=%{_docdir}/qt4/html\nPYQT4DOCDIR=%{_docdir}/PyQt4-devel-%{?pyqt_ver}/html\nexport QT4DIR PYTHONDOCDIR QTDOCDIR QT4DOCDIR PYQT4DOCDIR\n&|' %{buildroot}%{_bindir}/eric4
9ca2b50
781b73a
# add qt4 suffix
781b73a
sed -i -e 's|"QtToolsPostfix4" : "",|"QtToolsPostfix4" : "-qt4",|' %{buildroot}%{python_sitedir}/eric4/Preferences/__init__.py
781b73a
e1ab905
e1ab905
%post
e1ab905
touch --no-create %{_datadir}/icons/hicolor ||:
e1ab905
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
e1ab905
e1ab905
%postun
e1ab905
touch --no-create %{_datadir}/icons/hicolor ||:
e1ab905
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
e1ab905
e1ab905
e1ab905
%clean
e1ab905
rm -rf %{buildroot}
e1ab905
e1ab905
e1ab905
%files -f %{name}-files.list
e1ab905
%defattr(-,root,root,-)
1f676ef
%doc eric/README* THANKS LICENSE.GPL3
aa766f9
%{_bindir}/eric4*
aa766f9
%{python_sitedir}/eric4config.py*
aa766f9
%{python_sitedir}/eric4/
435154a
%{python_sitedir}/eric4plugins/
1b60e0b
%{python_sitedir}/eric4.pth
e1ab905
e1ab905
%dir %{_datadir}/eric/
aa766f9
%{_datadir}/applications/*eric4.desktop
e1ab905
%{_datadir}/icons/hicolor/*/*/*
e1ab905
0a2bc54
%{_libdir}/qt4/qsci/api/python/*.api
0a2bc54
%{_libdir}/qt4/qsci/api/ruby/*.api
e1ab905
e1ab905
%changelog
2c1d684
* Fri Jan 01 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.10-1
2c1d684
- 4.3.10
2c1d684
8d760de
* Mon Nov 09 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.9-1
8d760de
- 4.3.9
8d760de
- eric:desktop : drop deprecated Application category (#487800)
8d760de
e96e966
* Fri Oct 16 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.8-1
e96e966
- 4.3.8
e96e966
781b73a
* Fri Sep 18 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.7.1-2
781b73a
- add default suffix for qt4 apps
781b73a
174f506
* Sun Sep 13 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.7.1-1
174f506
- 4.3.7.1
174f506
- add BR on qscintilla-python since qscintilla-python-devel no longer
174f506
  requires it
174f506
ddcb626
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.5-2
ddcb626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ddcb626
2ddaf7d
* Sun Jul 5 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.5-1
2ddaf7d
- 4.3.5
2ddaf7d
b628ac0
* Sun May 31 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.4-1
b628ac0
- 4.3.4
b628ac0
c39450f
* Tue May 19 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.3-1
c39450f
- 4.3.3
c39450f
85602ab
* Mon Apr 6 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.2-1
85602ab
- 4.3.2
85602ab
85602ab
* Sun Mar 8 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.1-1
0a2bc54
- 4.3.1
0a2bc54
d47a734
* Thu Mar 5 2009 Johan Cwiklinski <johan AT x-tnd DOT be> - 4.3.0-3
d47a734
- Fixed bad 'full_python_ver'
d47a734
59d7e5e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.0-2
59d7e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
59d7e5e
1f676ef
* Mon Feb 9 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.3.0-1
1f676ef
- 4.3.0
1f676ef
- Added new translation files (zh_CN)
1f676ef
09ac7c7
* Thu Jan 8 2009 Johan Cwiklinski <johan AT x-tnd DOT be> 4.2.5-1
1f676ef
- 4.2.5
09ac7c7
3b579d1
* Wed Dec 9 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.2.4a-1
3b579d1
- 4.2.4a
3b579d1
0a05892
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.2.3-2
0a05892
- Rebuild for Python 2.6
0a05892
1b60e0b
* Wed Nov 19 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.2.3-1
1b60e0b
- 4.2.3
1b60e0b
125aa7f
* Wed Oct 8 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.2.2a-1
125aa7f
- 4.2.2a
125aa7f
9e79744
* Sun Sep 7 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.2.1-1
9e79744
- 4.2.1
3336579
- no longer noarch package (see bz #456761)
3336579
- .ts files from translations should not be included
3336579
82484e4
* Sat Jul 05 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.6-1
82484e4
- 4.1.6
82484e4
1020b15
* Sat Jun 07 2008  Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.5-1
1020b15
- 4.1.5
1020b15
1b60e0b
* Wed May 21 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.4-1
1b60e0b
- 4.1.4
1b60e0b
1b60e0b
* Sat May 17 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.3-1
1b60e0b
- 4.1.3
1b60e0b
c7f30bb
* Sat Apr 05 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.2-2
c7f30bb
- using qt4-designer and qt4-doc
c7f30bb
c9958f3
* Sat Apr 05 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.2-1
c9958f3
- 4.1.2
c9958f3
c9958f3
* Mon Mar 24 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.1-2
c9958f3
- Qt4 package was renamed from qt4 to qt
c9958f3
aed5e3c
* Sat Mar 01 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.1-1
aed5e3c
- 4.1.1
aed5e3c
d06ef6a
* Thu Feb 14 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.0-2
d06ef6a
- BR: qscintilla-python-devel
d06ef6a
- update Source URLS
d06ef6a
- omit superfluous (Build)Requires 
d06ef6a
435154a
* Mon Feb 04 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.1.0-1
435154a
- 4.1.0
435154a
- Requires PyQt4, not PyQt
435154a
9ca2b50
* Tue Jan 29 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.0.4-4
9ca2b50
- define qt_ver and pyqt_ver
9ca2b50
- use environment variables to set documentation path
9ca2b50
- init preferences to have relevant qt commands suffix
9ca2b50
- add PyQt4 as Requires
9ca2b50
424626c
* Tue Jan 29 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 4.0.4-3
424626c
- requires qt4-designer not qt-designer
424626c
- BR : qt-devel already required by PyQt-devel
424626c
- seems no longer necessary to define qt_ver
424626c
- language files were sourced, not installed
ce23611
- error on language files path
424626c
d45a642
* Wed Jan 28 2008 Dennis Gilmore <dennis@ausil.us> 4.0.4-2
d45a642
- fix incorrect BuildRequires/Requires  qscintilla-python 
d45a642
bd94555
* Wed Jan 28 2008 Dennis Gilmore <dennis@ausil.us> 4.0.4-1
aa766f9
- update to eric4
aa766f9
f8095eb
* Thu Jan 17 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.9.5-2
f8095eb
- Add environment variable to set python, qt4 and qt docs path (bug #200856)
f8095eb
- Requires python-doc, qt-designer, qt4-devel and qt4-doc
f8095eb
- BR: PyQt-devel is already needeed by PyQt-qscintilla-devel
f8095eb
840c6d1
* Fri Jan 11 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.9.5-1
840c6d1
- Rebuild for last version
840c6d1
- Include the translation files
840c6d1
e344627
* Mon Aug 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.9.2-3
e344627
- License: GPL+
e344627
- don't set PYTHONOPTIMIZE, let brp-python-bytecompile do it's job,
e344627
  addresses selinux issues (#243163, #254421)
e344627
6d9ef51
* Wed Nov 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.2-2
b094cfa
- Provides: eric3 (get ready for PyQt4-based eric4)
6d9ef51
- fix biffed %%version's in %%changelog
6d9ef51
- simplify %%description
6d9ef51
6d9ef51
* Mon Nov 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.2-1
6d9ef51
- 3.9.2 
7d4b896
b094cfa
* Mon Nov 06 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.1-4
f266b6b
- BR: PyQt-qscintilla-devel
f266b6b
- (unversioned) Requires: PyQt-qscintilla
f266b6b
b094cfa
* Thu Sep 07 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.1-3
eedde96
- include .py[c,o] files again (with no %%ghost'ing)
eedde96
83444f1
* Thu Jul 27 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.1-2
83444f1
- (re)enable PYTHONOPTIMIZE
83444f1
67c198e
* Thu Jul 27 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.1-1
67c198e
- 3.9.1
67c198e
- gen_sip_api_20060711.tar.gz
67c198e
d4749cc
* Thu Jul 27 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.0-6
d4749cc
- (re)comment PYTHONOPTIMIZE
d4749cc
e1ab905
* Wed Jul 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.0-5
e1ab905
- make fastparser.py eXecutable
e1ab905
- s/$RPM_BUILD_ROOT/%%buildroot/
e1ab905
e1ab905
* Wed Jul 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.0-4
e1ab905
- fix fedora > 4 %%ghost'ing case.
e1ab905
e1ab905
* Wed Jul 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.0-3
e1ab905
- %%ghost .pyo files
e1ab905
e1ab905
* Thu May 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.0-2
e1ab905
- merge -fonts,-api patches into -prefs patch, make it work on
e1ab905
  fc5/python24 too
e1ab905
e1ab905
* Mon May 1 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.9.0-1
e1ab905
- 3.9.0
e1ab905
- create/own %%{_datadir}/eric, for .api files
e1ab905
- generate .api files for python, PyQt
e1ab905
- %%triggerin PyQt4/PyKDE to (auto)generate .api files
e1ab905
e1ab905
* Wed Apr 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.8.2-3
e1ab905
- --vendor=""
e1ab905
e1ab905
* Mon Apr 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.8.2-2
e1ab905
- cleanup/drop unused bits 
e1ab905
- note PyQt-qscintilla submission (#188496)
e1ab905
e1ab905
* Mon Mar 27 2006 Rex Dieter <rexdieter[AT]users.sf.net> 3.8.2-1
e1ab905
- 3.8.2
e1ab905
e1ab905
* Mon Dec 19 2005 Rex Dieter <rexdieter[AT]users.sf.net> 3.8.1-1
e1ab905
- 3.8.1
e1ab905
- include gen_python_api, gen_sip_api
e1ab905
e1ab905
* Sun Sep 18 2005 Rex Dieter 3.7.2-0.1.kde
e1ab905
- 3.7.2
e1ab905
e1ab905
* Wed Sep 14 2005 Rex Dieter 3.7.1-0.1.kde
e1ab905
- 3.7.1
e1ab905
e1ab905
* Mon Jun 13 2005 Rex Dieter 0:3.6.1-0.1.kde
e1ab905
- cleanup
e1ab905
e1ab905
* Sat Jan 29 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0:3.6.1-0.fdr.1
e1ab905
- 3.6.1
e1ab905
- TODO: package .api files as (one or more) separate .noarch.rpms
e1ab905
e1ab905
* Mon Nov 29 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0:3.5.1-0.fdr.2
e1ab905
- get icons right
e1ab905
e1ab905
* Mon Nov 29 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0:3.5.1-0.fdr.1
e1ab905
- 3.5.1
e1ab905
e1ab905
* Fri Oct 08 2004 Rex Dieter <rexdieter at sf.net> 0:3.5.0-0.fdr.1
e1ab905
- 3.5.0
e1ab905
e1ab905
* Thu Sep 16 2004 Rex Dieter <rexdieter at sf.net> 0:3.4.2-0.fdr.2
e1ab905
- remove Provides: eric3, (redundant) Provides: eric
e1ab905
- allow build going back as far as rh73.
e1ab905
e1ab905
* Sun May 30 2004 Aurelien Bompard <gauret[AT]free.fr> 0:3.4.2-0.fdr.1
e1ab905
- Initial RPM package
e1ab905