Igor Foox 0e409e
Epoch: 1
Igor Foox 0e409e
Andrew Overholt 4e4ab7
%define eclipse_base        %{_libdir}/eclipse
631578
%define install_loc         %{_libdir}/eclipse/dropins
Igor Foox 0e409e
Michal Nowak 725c62
%define major     1
631578
%define minor     4
631578
%define maint     0
Igor Foox 0e409e
Summary:          Eclipse Python development plug-in
Igor Foox 0e409e
Name:             eclipse-pydev
Michal Nowak 725c62
Version:          %{major}.%{minor}.%{maint}
631578
Release:          1%{?dist}
388499
License:          EPL
Michal Nowak 725c62
URL:              http://pydev.sourceforge.net
Igor Foox 0e409e
Group:            Development/Tools
Igor Foox 0e409e
Michal Nowak 725c62
Source0:          http://downloads.sourceforge.net/pydev/org.python.pydev.feature-src-%{major}_%{minor}_%{maint}.zip
Ben Konrath 8903f5
Source1:          org.python.pydev.mylyn.feature-fetched-src-pydev_1_3_7.tar.bz2
Ben Konrath 8903f5
Source2:          fetch-pydev-mylyn.sh
Igor Foox 0e409e
Igor Foox 0e409e
BuildRequires:    java-devel >= 1.5.0
Igor Foox 0e409e
Igor Foox 0e409e
Requires:         eclipse-jdt
Igor Foox 0e409e
Requires:         python
b99391
# Psyco is available only on x86 
b99391
%ifarch %{ix86}
106933
Requires:         python-psyco
b99391
%endif
631578
Requires:         jakarta-commons-codec >= 1.3
631578
Requires:         jakarta-commons-logging
631578
Requires:         xmlrpc3-common
631578
Requires:         xmlrpc3-client
631578
Requires:         xmlrpc3-server
Igor Foox 0e409e
Requires:         junit >= 3.8.1
Igor Foox 0e409e
Requires:         jython >= 2.2
Igor Foox 0e409e
BuildRequires:    eclipse-pde
Ben Konrath 8903f5
BuildRequires:    eclipse-mylyn
Igor Foox 0e409e
BuildRequires:    jpackage-utils >= 0:1.5
Igor Foox 0e409e
BuildRequires:    junit >= 3.8.1
631578
BuildRequires:    jakarta-commons-codec >= 1.3
631578
BuildRequires:    jakarta-commons-logging
631578
BuildRequires:    ws-commons-util
631578
BuildRequires:    xmlrpc3-common
631578
BuildRequires:    xmlrpc3-client
631578
BuildRequires:    xmlrpc3-server
Igor Foox 0e409e
BuildRequires:    jython >= 2.2
Igor Foox 0e409e
631578
# This package can not be noarch because psyco is a x86 package.
b99391
#BuildArch:        noarch
Igor Foox 0e409e
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Igor Foox 0e409e
Igor Foox 0e409e
%description
Igor Foox 0e409e
The eclipse-pydev package contains Eclipse plugins for
Igor Foox 0e409e
Python development.
Igor Foox 0e409e
57be28
%package  mylyn
57be28
Summary:  Pydev Mylyn Focused UI
57be28
Requires: eclipse-mylyn
57be28
Requires: %{name} = %{epoch}:%{version}-%{release}
57be28
Group: Development/Tools
57be28
57be28
%description mylyn
57be28
Mylyn Task-Focused UI extensions for Pydev.
57be28
Igor Foox 0e409e
%prep
Igor Foox 0e409e
%setup -q -c 
Igor Foox 0e409e
Ben Konrath 8903f5
tar jxf %{SOURCE1}
Ben Konrath 8903f5
Ben Konrath 802227
# remove pre-generated build files
Ben Konrath 802227
find . -name build.xml | xargs rm 
Igor Foox 0e409e
Ben Konrath 802227
# remove pre-built jars
Ben Konrath 802227
rm -f plugins/org.python.pydev.core/core.jar
Ben Konrath 802227
rm -f plugins/org.python.pydev.ast/ast.jar
Ben Konrath 802227
rm -f plugins/org.python.pydev.debug/pydev-debug.jar
Ben Konrath 802227
rm -f plugins/org.python.pydev.parser/parser.jar
Ben Konrath 802227
rm -f plugins/org.python.pydev/pydev.jar
Ben Konrath 802227
rm -f plugins/org.python.pydev.jython/pydev-jython.jar
Ben Konrath 802227
rm -f plugins/org.python.pydev.refactoring/refactoring.jar
Igor Foox 0e409e
Ben Konrath 802227
# remove included retroweaver jars as it isn't being used
Ben Konrath 802227
find . -name retroweaver-rt.jar | xargs rm 
Igor Foox 0e409e
Ben Konrath 802227
# link to system jars
Igor Foox 0e409e
rm -f plugins/org.python.pydev.core/commons-codec.jar
631578
ln -sf %{_javadir}/jakarta-commons-codec.jar \
Igor Foox 0e409e
       plugins/org.python.pydev.core/commons-codec.jar
Igor Foox 0e409e
Igor Foox 0e409e
rm -f plugins/org.python.pydev.core/lib/junit.jar
631578
ln -sf %{_javadir}/junit.jar \
Igor Foox 0e409e
       plugins/org.python.pydev.core/junit.jar
Igor Foox 0e409e
Igor Foox 0e409e
rm -f plugins/org.python.pydev.jython/jython.jar
631578
ln -sf %{_javadir}/jython.jar \
Igor Foox 0e409e
       plugins/org.python.pydev.jython/jython.jar
631578
       
631578
rm -f plugins/org.python.pydev.debug/commons-logging-1.1.jar
631578
ln -sf %{_javadir}/jakarta-commons-logging.jar \
631578
       plugins/org.python.pydev.debug/commons-logging-1.1.jar
631578
       
631578
rm -f plugins/org.python.pydev.debug/ws-commons-util-1.0.2.jar
631578
ln -sf %{_javadir}/ws-commons-util.jar \
631578
       plugins/org.python.pydev.debug/ws-commons-util-1.0.2.jar
631578
       
631578
rm -f plugins/org.python.pydev.debug/xmlrpc-client-3.1.jar
631578
ln -sf %{_javadir}/xmlrpc3-client.jar \
631578
       plugins/org.python.pydev.debug/xmlrpc-client-3.1.jar
631578
631578
rm -f plugins/org.python.pydev.debug/xmlrpc-common-3.1.jar
631578
ln -sf %{_javadir}/xmlrpc3-common.jar \
631578
       plugins/org.python.pydev.debug/xmlrpc-common-3.1.jar
631578
       
631578
rm -f plugins/org.python.pydev.debug/xmlrpc-server-3.1.jar
631578
ln -sf %{_javadir}/xmlrpc3-server.jar \
631578
       plugins/org.python.pydev.debug/xmlrpc-server-3.1.jar
Igor Foox 0e409e
Ben Konrath 802227
rm -f plugins/org.python.pydev.refactoring/tests/lib/JFlex.jar
Ben Konrath 802227
# enable when tests are used
Ben Konrath 802227
#ln -sf %{_datadir}/java/jflex.jar \
Ben Konrath 802227
#       plugins/org.python.pydev.refactoring/tests/lib/JFlex.jar
Ben Konrath 802227
Ben Konrath 802227
rm -f plugins/org.python.pydev.refactoring/tests/lib/xpp3_min-1.1.3.4.O.jar
Ben Konrath 802227
# enable when tests are used
Ben Konrath 802227
#ln -sf %{_datadir}/java/xpp3-minimal.jar \
Ben Konrath 802227
#       plugins/org.python.pydev.refactoring/tests/lib/xpp3_min-1.1.3.4.O.jar
Ben Konrath 802227
Ben Konrath 802227
rm -f plugins/org.python.pydev.refactoring/tests/lib/xstream-1.2.1.jar
Ben Konrath 802227
# enable when tests are used
Ben Konrath 802227
#ln -sf %{_datadir}/java/xstream.jar \
Ben Konrath 802227
#       plugins/org.python.pydev.refactoring/tests/lib/xstream-1.2.1.jar
Ben Konrath 802227
Ben Konrath 802227
rm -f plugins/org.python.pydev.refactoring/contrib/ch/hsr/ukistler/astgraph/jgraph.jar
Ben Konrath 802227
Igor Foox 0e409e
%build
Andrew Overholt 4e4ab7
%{eclipse_base}/buildscripts/pdebuild \
Andrew Overholt 4e4ab7
  -a "-DjavacSource=1.5  -DjavacTarget=1.5" \
Andrew Overholt 4e4ab7
  -f org.python.pydev.feature
Igor Foox 0e409e
Andrew Overholt 4e4ab7
%{eclipse_base}/buildscripts/pdebuild \
Andrew Overholt 4e4ab7
  -a "-DjavacSource=1.5  -DjavacTarget=1.5" \
Andrew Overholt 4e4ab7
  -d mylyn \
Andrew Overholt 4e4ab7
  -f org.python.pydev.mylyn.feature
Ben Konrath 8903f5
Igor Foox 0e409e
%install
Igor Foox 0e409e
rm -rf $RPM_BUILD_ROOT
106933
installDir=${RPM_BUILD_ROOT}/%{install_loc}/pydev
Andrew Overholt 4e4ab7
install -d -m755 $installDir
Andrew Overholt 4e4ab7
install -d -m755 ${installDir}-mylyn
Ben Konrath 8903f5
Ben Konrath 8903f5
# pydev main feature
Andrew Overholt 4e4ab7
unzip -q -d $installDir build/rpmBuild/org.python.pydev.feature.zip
Igor Foox 0e409e
Ben Konrath 8903f5
# pydev mylyn feature
Andrew Overholt 4e4ab7
unzip -q -d ${installDir}-mylyn build/rpmBuild/org.python.pydev.mylyn.feature.zip
Ben Konrath 8903f5
Ben Konrath 8903f5
# deal with linked deps
Andrew Overholt 4e4ab7
pushd $installDir/eclipse/plugins
Ben Konrath 802227
rm -rf org.python.pydev.core_%{version}/commons-codec.jar
631578
ln -sf %{_javadir}/jakarta-commons-codec.jar \
Ben Konrath 802227
       org.python.pydev.core_%{version}/commons-codec.jar
Igor Foox 0e409e
Ben Konrath 802227
mkdir org.python.pydev.core_%{version}/lib
631578
ln -sf %{_javadir}/junit.jar \
Ben Konrath 802227
       org.python.pydev.core_%{version}/lib/junit.jar
Igor Foox 0e409e
631578
rm -rf org.python.pydev.debug_%{version}/commons-logging-1.1.jar
631578
ln -sf %{_javadir}/jakarta-commons-logging.jar \
631578
       org.python.pydev.debug_%{version}/commons-logging-1.1.jar
631578
       
631578
rm -rf org.python.pydev.debug_%{version}/ws-commons-util-1.0.2.jar
631578
ln -sf %{_javadir}/ws-commons-util.jar \
631578
       org.python.pydev.debug_%{version}/ws-commons-util-1.0.2.jar
631578
       
631578
rm -f org.python.pydev.debug_%{version}/xmlrpc-client-3.1.jar
631578
ln -sf %{_javadir}/xmlrpc3-client.jar \
631578
       org.python.pydev.debug_%{version}/xmlrpc-client-3.1.jar
631578
631578
rm -f org.python.pydev.debug_%{version}/xmlrpc-common-3.1.jar
631578
ln -sf %{_javadir}/xmlrpc3-common.jar \
631578
       org.python.pydev.debug_%{version}/xmlrpc-common-3.1.jar
631578
       
631578
rm -f org.python.pydev.debug_%{version}/xmlrpc-server-3.1.jar
631578
ln -sf %{_javadir}/xmlrpc3-server.jar \
631578
       org.python.pydev.debug_%{version}/xmlrpc-server-3.1.jar
631578
Ben Konrath 802227
rm -rf org.python.pydev.jython_%{version}/jython.jar
631578
ln -sf %{_javadir}/jython.jar \
Ben Konrath 802227
       org.python.pydev.jython_%{version}/jython.jar
Igor Foox 0e409e
popd
Igor Foox 0e409e
Michal Nowak 725c62
# rename cgi.py's shebang from /usr/local/bin/python to /usr/bin/env python
631578
sed -i 's/\/usr\/local\/bin\/python/\/usr\/bin\/env python/' ${RPM_BUILD_ROOT}%{install_loc}/pydev/eclipse/plugins/org.python.pydev.jython_%{version}/Lib/cgi.py
Michal Nowak 725c62
# convert .py$ files from mode 0644 to mode 0755
Michal Nowak 725c62
chmod 0755 `find ${RPM_BUILD_ROOT} -name '*\.py' -perm 0644 | xargs`
Michal Nowak 725c62
Michal Nowak 725c62
# convert '\r\n' end-of-lines to *unix-like '\n'
Michal Nowak 725c62
# sed -i 's/\r//' `find ${RPM_BUILD_ROOT} -name '*\.py' | xargs`
Michal Nowak 725c62
Michal Nowak 725c62
Igor Foox 0e409e
%clean 
Igor Foox 0e409e
rm -rf ${RPM_BUILD_ROOT}
Igor Foox 0e409e
Igor Foox 0e409e
%files
Igor Foox 0e409e
%defattr(-,root,root,-)
106933
%{install_loc}/pydev
57be28
57be28
%files mylyn
106933
%{install_loc}/pydev-mylyn
Igor Foox 0e409e
Igor Foox 0e409e
%changelog
631578
* Thu Dec 25 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.4.0-1
631578
- Update to 1.4.0 - adds support for Python 2.6/3.0.
631578
- Use system jakarta-commons-logging and xmlrpc3.
631578
- Drop arch checks for mylyn - it is noarch now.
631578
b99391
* Mon Dec 15 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.3.24-4
b99391
- This package is not noarch due to python-psyco and mylyn issues on different platforms.
b99391
106933
* Thu Dec 11 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.3.24-3
106933
- Require python-psyco to speed up debuging.
106933
54a009
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:1.3.24-2
54a009
- Rebuild for Python 2.6
54a009
d62ef2
* Mon Oct 27 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.3.24-1
d62ef2
- 1.3.24
d62ef2
a5bb53
* Sun Oct 26 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.3.23-1
a5bb53
- 1.3.23
a5bb53
ea0365
* Fri Oct 17 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.3.22-1
ea0365
- 1.3.22
ea0365
57be28
* Fri Oct 17 2008 Alexander Kurtakov <akurtako@redhat.com> 1:1.3.20-2
57be28
- Drop gcj support.
57be28
- Split mydev support to subpackage to correct dependencies.
57be28
- Drop eclipse-mylyn-ide BR - it is merged into eclipse-mylyn.
57be28
Michal Nowak 725c62
* Tue Oct 14 2008 Michal Nowak <mnowak@redhat.com> 1:1.3.20-1
Michal Nowak 725c62
- bump to 1.3.20
Michal Nowak 725c62
- created general versioning scheme for version tag & tarball URI)
Michal Nowak 725c62
- sed: /usr/local/bin/python -> /usr/bin/env python in Jython's cgi.py
Michal Nowak 725c62
- convert .py$ files from mode 0644 to mode 0755
Michal Nowak 725c62
- possibility to convert '\r\n' end-of-lines to *nix-like '\n'
Michal Nowak 725c62
  in all '.py$' files
Michal Nowak 725c62
Andrew Overholt 4e4ab7
* Wed Jul 30 2008 Andrew Overholt <overholt@redhat.com> 1:1.3.18-1
Andrew Overholt 4e4ab7
- 1.3.18
Andrew Overholt 4e4ab7
- Update for building with Eclipse SDK 3.4
Andrew Overholt 4e4ab7
- Back-port patch from HEAD for building against Eclipse SDK 3.4
Andrew Overholt 4e4ab7
388499
* Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:1.3.14-2
388499
- fix license tag
388499
7fa3ee
* Mon Apr 07 2008 Jeff Johnston <jjohnstn@redhat.com> 1:1.3.14-1
7fa3ee
- 1.3.14
7fa3ee
415348
* Fri Feb 01 2008 Jeff Johnston <jjohnstn@redhat.com> 1:1.3.12-1
415348
- Resolves Bugzilla #431200
415348
- 1.3.12
415348
254854
* Thu Sep 20 2007 Ben Konrath <bkonrath@redhat.com> 1:1.3.9-1
254854
- 1.3.9
254854
Ben Konrath 8903f5
* Tue Aug 28 2007 Ben Konrath <bkonrath@redhat.com> 1:1.3.8-2
Ben Konrath 17af96
- Add pydev mylyn feature to all archs except ppc64.
Ben Konrath 8903f5
Ben Konrath 802227
* Fri Aug 24 2007 Ben Konrath <bkonrath@redhat.com> 1:1.3.8-1
Ben Konrath 802227
- 1.3.8
Ben Konrath 802227
Igor Foox 0e409e
* Fri Apr 27 2007 Igor Foox <ifoox@redhat.com> 1:1.3.1-5
Igor Foox 0e409e
- Add runtime dependancy on the JDT.
Igor Foox 0e409e
- Reorganize Requires and BuildRequires.
Igor Foox 0e409e
Igor Foox 0e409e
* Mon Apr 02 2007 Andrew Overholt <overholt@redhat.com> 1:1.3.1-4
Igor Foox 0e409e
- Remove some whitespace, fix lines > 80 characters.
Igor Foox 0e409e
- Remove unnecessary rm of junit.jar.
Igor Foox 0e409e
- pushd to a deeper directory to fix long lines.
Igor Foox 0e409e
- Add missing popd.
Igor Foox 0e409e
- Typo in buildroot.
Igor Foox 0e409e
Igor Foox 0e409e
* Mon Apr 02 2007 Igor Foox <ifoox@redhat.com> 1:1.3.1-3
Igor Foox 0e409e
- Remove ExclusiveArch.
Igor Foox 0e409e
Igor Foox 0e409e
* Sun Apr 01 2007 Igor Foox <ifoox@redhat.com> 1:1.3.1-2
Igor Foox 0e409e
- Add Jython as a BuildRequires and Requires.
Igor Foox 0e409e
- Fix buildroot.
Igor Foox 0e409e
- Add dist tag.
Igor Foox 0e409e
- Remove pkg_summary and eclipse_name macros.
Igor Foox 0e409e
- Remove eclipse-jdt and eclipse-pde from BR as they are required by PDE.
Igor Foox 0e409e
- Fix permissions on defattr.
Igor Foox 0e409e
- Fix long lines.
Igor Foox 0e409e
- Renumber and comment patches.
Igor Foox 0e409e
- Update and simplify source drop generation comment.
Igor Foox 0e409e
Igor Foox 0e409e
* Tue Mar 27 2007 Igor Foox <ifoox@redhat.com> 1:1.3.1-1
Igor Foox 0e409e
- Update to PyDev 1.3.1.
Igor Foox 0e409e
Igor Foox 0e409e
* Mon Mar 26 2007 Igor Foox <ifoox@redhat.com> 1:1.3.0-2
Igor Foox 0e409e
- Add dependency on jython.
Igor Foox 0e409e
Igor Foox 0e409e
* Sun Mar 25 2007 Igor Foox <ifoox@redhat.com> 1:1.3.0-1
Igor Foox 0e409e
- Update to version 1.3.0.
Igor Foox 0e409e
- Update fetch script to include refactoring package.
Igor Foox 0e409e
- Fixeup changelog epochs.
Igor Foox 0e409e
- Remove #! lines from .py files.
Igor Foox 0e409e
Igor Foox 0e409e
* Sat Mar 24 2007 Igor Foox <ifoox@redhat.com> 1:1.2.5-2
Igor Foox 0e409e
- Update to version 1.2.5.
Igor Foox 0e409e
- Include Jython functionality again.
Igor Foox 0e409e
- Fix spacing issues.
Igor Foox 0e409e
- Remove backport to Java 1.4. 
Igor Foox 0e409e
- Change build method to package-build.
Igor Foox 0e409e
- Include script to create the tarball.
Igor Foox 0e409e
Igor Foox 0e409e
* Wed Jun 28 2006 Igor Foox <ifoox@redhat.com> 1:1.1.0-1
Igor Foox 0e409e
- Updated to version 1.1.0 (still backported)
Igor Foox 0e409e
- Excluded Jython functionality
Igor Foox 0e409e
- Removed _fc from version
Igor Foox 0e409e
- Indented
Igor Foox 0e409e
Igor Foox 0e409e
* Thu Feb 09 2006 Igor Foox <ifoox@redhat.com> 1:1.0.6_fc-1
Igor Foox 0e409e
- Building backported version.
Igor Foox 0e409e
Igor Foox 0e409e
* Thu Feb 09 2006 Andrew Overholt <overholt@redhat.com> 1:0.9.3_fc-14
Igor Foox 0e409e
- Build against 3.1.2.
Igor Foox 0e409e
Igor Foox 0e409e
* Fri Dec 16 2005 Andrew Overholt <overholt@redhat.com> 1:0.9.3_fc-13
Igor Foox 0e409e
- Build against gcc 4.1.
Igor Foox 0e409e
Igor Foox 0e409e
* Thu Oct 27 2005 Andrew Overholt <overholt@redhat.com> 1:0.9.3_fc-12
Igor Foox 0e409e
- Re-build.
Igor Foox 0e409e
Igor Foox 0e409e
* Tue Aug 02 2005 Jeff Pound <jpound@redhat.com> 1:0.9.3_fc-11
Igor Foox 0e409e
- Add patch to make python 2.4 default (bz#164847).
Igor Foox 0e409e
Igor Foox 0e409e
* Fri Jul 15 2005 Andrew Overholt <overholt@redhat.com> 1:0.9.3_fc-10
Igor Foox 0e409e
- Use gbenson's new aot-compile-rpm.
Igor Foox 0e409e
Igor Foox 0e409e
* Fri Jul 08 2005 Jeff Pound <jpound@redhat.com> 1:0.9.3_fc-9
Igor Foox 0e409e
- Fix eclipse build specification to be arch independant.
Igor Foox 0e409e
- Fix build.properties javacDebugInfo flag (Robin Green bz#161534)
Igor Foox 0e409e
- Add -g compile option (Robin Green bz#161534)
Igor Foox 0e409e
Igor Foox 0e409e
* Tue Jul 05 2005 Jeff Pound <jpound@redhat.com> 1:0.9.3_fc-8
Igor Foox 0e409e
- Apply Robin Greens patch to explicitly specify archive format (bz#162517)
Igor Foox 0e409e
- Fix spec file description.
Igor Foox 0e409e
Igor Foox 0e409e
* Tue Apr 26 2005 Andrew Overholt <overholt@redhat.com> 1:0.9.3_fc-7
Igor Foox 0e409e
- Re-organize and make use of scripts.
Igor Foox 0e409e
- Remove old tarball from sources.
Igor Foox 0e409e
Igor Foox 0e409e
* Tue Apr 26 2005 Jeff Pound <jpound@redhat.com> 1:0.9.3_fc-6
Igor Foox 0e409e
- Swap zip logic for tarball logic.
Igor Foox 0e409e
- Upgrade to 0.9.3.
Igor Foox 0e409e
- Remove 3.1 compat patch (included in 0.9.3).
Igor Foox 0e409e
Igor Foox 0e409e
* Fri Mar 4 2005 Phil Muldoon <pmuldoon@redhat.com> 1:0.9.0-4_fc
Igor Foox 0e409e
- Added x86_64 to ExclusiveArch
Igor Foox 0e409e
Igor Foox 0e409e
* Thu Mar 3 2005 Jeffrey Pound <jpound@redhat.com> 1:0.9.0-3_fc
Igor Foox 0e409e
- Rewrite for native build.
Igor Foox 0e409e
- Change gcc4 to gcc.
Igor Foox 0e409e
- Add python as requirement.
Igor Foox 0e409e
- Remove -g option for gcj.
Igor Foox 0e409e
Igor Foox 0e409e
* Tue Feb 08 2005 Jeff Pound <jpound@redhat.com> 1:0.9.0-1_fc
Igor Foox 0e409e
- Initial version