Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Turn off the brp-python-bytecompile script
- %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
- # Suppress empty debuginfo
- %global debug_package %{nil}
- %global release_version 4_2_0
- Epoch: 1
- Summary: Eclipse Python development plug-in
- Name: eclipse-pydev
- Version: 4.2.0
- Release: 1%{?dist}
- License: EPL
- URL: http://pydev.org
- Source0: https://github.com/fabioz/Pydev/archive/pydev_%{release_version}.tar.gz
- # Remove windows specific code that manipulates the windows registry
- Patch0: remove-winregistry.patch
- Patch1: remove-iInfo-error.patch
- # Allow system jython interpreter to be configured in preferences
- Patch2: system-jython-interpreter.patch
- # Fix native name
- Patch3: native-name.patch
- Requires: eclipse-platform
- Requires: python
- Requires: apache-commons-logging
- Requires: snakeyaml
- Requires: ws-commons-util
- Requires: xmlrpc-common
- Requires: xmlrpc-client
- Requires: xmlrpc-server
- Requires: jython >= 2.7
- Requires: pylint
- Requires: python-django
- Requires: python-ipython-console
- BuildRequires: tycho >= 0.22.0-15
- BuildRequires: tycho-extras
- BuildRequires: eclipse-p2-discovery
- BuildRequires: eclipse-mylyn-context-team >= 3.5.0
- BuildRequires: eclipse-mylyn-ide >= 3.5.0
- BuildRequires: apache-commons-logging
- BuildRequires: snakeyaml
- BuildRequires: ws-commons-util
- BuildRequires: xmlrpc-common
- BuildRequires: xmlrpc-client
- BuildRequires: xmlrpc-server
- BuildRequires: jython >= 2.7
- BuildRequires: lucene-core
- BuildRequires: lucene-analysis
- %description
- The eclipse-pydev package contains Eclipse plugins for
- Python development.
- %package mylyn
- Summary: Pydev Mylyn Focused UI
- Requires: eclipse-mylyn-context-team >= 3.5.0
- Requires: eclipse-mylyn-ide >= 3.5.0
- Requires: %{name} = %{epoch}:%{version}-%{release}
- %description mylyn
- Mylyn Task-Focused UI extensions for Pydev.
- %prep
- %setup -q -n Pydev-pydev_%{release_version}
- %patch0
- %patch1 -p1
- %patch2 -p1
- %patch3
- %mvn_package "::pom:" __noinstall
- %mvn_package ":*.mylyn" mylyn
- %mvn_package ":*.mylyn.*" mylyn
- %mvn_package ":*" core
- find -name 'Copy\ of\ opentype.gif' -exec rm -f '{}' \;
- # remove bundled ctypes (used only under cygwin)
- rm -r plugins/org.python.pydev/pysrc/third_party/wrapped_for_pydev
- # remove pre-built artifacts
- find -name '*.class' -delete
- find -name '*.jar' -delete
- find -name '*.dll' -delete
- find -name '*.dylib' -delete
- find -name '*.so' -delete
- rm -rf plugins/org.python.pydev.jython/Lib
- # link to system jars
- ln -sf %{_javadir}/jython/jython.jar \
- plugins/org.python.pydev.jython/jython.jar
- ln -sf %{_datadir}/jython/Lib \
- plugins/org.python.pydev.jython/Lib
- ln -sf %{_javadir}/commons-logging.jar \
- plugins/org.python.pydev.shared_interactive_console/commons-logging-1.1.1.jar
- ln -sf %{_javadir}/ws-commons-util.jar \
- plugins/org.python.pydev.shared_interactive_console/ws-commons-util-1.0.2.jar
- ln -sf %{_javadir}/xmlrpc-client.jar \
- plugins/org.python.pydev.shared_interactive_console/xmlrpc-client-3.1.3.jar
- ln -sf %{_javadir}/xmlrpc-common.jar \
- plugins/org.python.pydev.shared_interactive_console/xmlrpc-common-3.1.3.jar
- ln -sf %{_javadir}/xmlrpc-server.jar \
- plugins/org.python.pydev.shared_interactive_console/xmlrpc-server-3.1.3.jar
- ln -sf %{_javadir}/snakeyaml.jar \
- plugins/org.python.pydev.shared_core/libs/snakeyaml-1.11.jar
- ln -sf %{_javadir}/lucene/lucene-core.jar \
- plugins/org.python.pydev.shared_core/libs/lucene-core-5.1.0.jar
- ln -sf %{_javadir}/lucene/lucene-analyzers-common.jar \
- plugins/org.python.pydev.shared_core/libs/lucene-analyzers-common-5.1.0.jar
- # Fix encodings
- iconv -f CP1252 -t UTF-8 LICENSE.txt > LICENSE.txt.utf
- mv LICENSE.txt.utf LICENSE.txt
- %build
- # build native part first
- pushd plugins/org.python.pydev/pysrc/pydevd_attach_to_process/linux &>/dev/null
- g++ %{optflags} -shared -o attach_linux.so -fPIC -nostartfiles attach_linux.c
- mv attach_linux.so ../attach_linux.so
- popd &>/dev/null
- # build everything else
- %mvn_build -j -f -- -DforceContextQualifier=$(date +%Y%m%d%H00)
- %install
- %mvn_install
- # deal with linked deps
- installDir=${RPM_BUILD_ROOT}/%{_libdir}/eclipse/dropins/pydev-core
- pushd $installDir/eclipse/plugins
- file=`find . -name commons-logging-1.1.1.jar`
- rm $file
- ln -sf %{_javadir}/commons-logging.jar $file
- file=`find . -name ws-commons-util-1.0.2.jar`
- rm $file
- ln -sf %{_javadir}/ws-commons-util.jar $file
- file=`find . -name xmlrpc-client-3.1.3.jar`
- rm $file
- ln -sf %{_javadir}/xmlrpc-client.jar $file
- file=`find . -name xmlrpc-common-3.1.3.jar`
- rm $file
- ln -sf %{_javadir}/xmlrpc-common.jar $file
- file=`find . -name xmlrpc-server-3.1.3.jar`
- rm $file
- ln -sf %{_javadir}/xmlrpc-server.jar $file
- file=`find . -name snakeyaml-1.11.jar`
- rm $file
- ln -sf %{_javadir}/snakeyaml.jar $file
- file=`find . -name lucene-core.jar`
- rm $file
- ln -sf %{_javadir}/lucene/lucene-core.jar $file
- file=`find . -name lucene-analyzers-common.jar`
- rm $file
- ln -sf %{_javadir}/lucene/lucene-analyzers-common.jar $file
- # Symlink system jython and libs
- rm -rf org.python.pydev.jython_*/Lib
- ln -sf %{_datadir}/jython/Lib \
- org.python.pydev.jython_*
- rm -rf org.python.pydev.jython_*/jython.jar
- ln -sf %{_javadir}/jython/jython.jar \
- org.python.pydev.jython_*
- popd
- # convert .py$ files from mode 0644 to mode 0755
- sixFourFourfiles=$(find ${RPM_BUILD_ROOT} -name '*\.py' -perm 0644 | xargs)
- if [ ${sixFourFourfiles:-0} -ne 0 ]; then
- chmod 0755 ${sixFourFourfiles}
- fi
- %files -f .mfiles-core
- %doc LICENSE.txt README.txt
- %files mylyn -f .mfiles-mylyn
- %doc LICENSE.txt
- %changelog
- * Thu Jul 16 2015 Sopot Cela <scela@redhat.com> - 1:4.2.0-1
- - Update to 4.2.0 release
- * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.1.0-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
- * Wed May 27 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.1.0-1
- - Update to upstream 4.1.0 release.
- * Wed May 13 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.0.0-2
- - Make mylyn subpackage archful as timestamps make diff and fail builds.
- * Wed Apr 15 2015 Mat Booth <mat.booth@redhat.com> - 1:4.0.0-1
- - Update to latest upstream release
- - No longer necessary to symlink optparse
- - Now archful package due to having a native component
- * Mon Dec 8 2014 Alexander Kurtakov <akurtako@redhat.com> 1:3.7.1-2
- - Build with xmvn.
- * Thu Sep 18 2014 Alexander Kurtakov <akurtako@redhat.com> 1:3.7.1-1
- - Update to upstream 3.7.1.
- * Thu Jul 31 2014 Mat Booth <mat.booth@redhat.com> - 1:3.6.0-1
- - Update to latest upstream release
- - Require jython 2.7
- - Remove no longer needed patches
- * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.5.0-4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- * Wed Jun 04 2014 Mat Booth <mat.booth@redhat.com> - 1:3.5.0-3
- - Patch to allow system jython interpreter to be configured in preferences
- * Mon Jun 02 2014 Mat Booth <mat.booth@redhat.com> - 1:3.5.0-2
- - Patch to build with latest version of jython
- - Install license files
- - No longer need to package a portion of jython's lib dir
- * Thu May 29 2014 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-1
- - Update to 3.5.0.
- * Thu Mar 20 2014 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.1-1
- - Update to 3.4.1.
- * Wed Feb 12 2014 Alexander Kurtakov <akurtako@redhat.com> 1:3.3.3-1
- - Update to 3.3.3.
- * Mon Dec 30 2013 Alexander Kurtakov <akurtako@redhat.com> 1:3.2.0-1
- - Update to 3.2.0.
- * Fri Dec 13 2013 Alexander Kurtakov <akurtako@redhat.com> 1:3.1.0-1
- - Update to 3.1.0.
- * Mon Nov 11 2013 Alexander Kurtakov <akurtako@redhat.com> 1:3.0-1
- - Update to 3.0.
- - Drop old changelog now that we move to tycho builds.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement