|
|
cf3d3fe |
%define eclipse_base %{_libdir}/eclipse
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
Name: eclipse-epic
|
|
|
e5411ed |
Version: 0.6.35
|
|
|
44701c2 |
Release: 1%{?dist}
|
|
|
cee4bd3 |
Summary: Perl Eclipse plugin
|
|
|
cee4bd3 |
Group: Development/Tools
|
|
|
cee4bd3 |
License: CPL
|
|
|
cf3d3fe |
URL: http://www.epic-ide.org/
|
|
|
cee4bd3 |
|
|
|
436810f |
# source tarball and the script used to generate it from upstream's source control
|
|
|
cee4bd3 |
# script usage:
|
|
|
cee4bd3 |
# $ sh get-epic.sh
|
|
|
cee4bd3 |
Source0: epic-%{version}.tar.gz
|
|
|
cee4bd3 |
Source1: get-epic.sh
|
|
|
cee4bd3 |
|
|
|
5afbe73 |
# enable module starter and taint checking by default
|
|
|
5afbe73 |
Patch0: %{name}-enable-module-starter.patch
|
|
|
5afbe73 |
|
|
|
cee4bd3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
BuildArch: noarch
|
|
|
e5411ed |
|
|
|
cee4bd3 |
BuildRequires: java-devel
|
|
|
cee4bd3 |
BuildRequires: jpackage-utils
|
|
|
cf3d3fe |
BuildRequires: eclipse-pde >= 3.4
|
|
|
cee4bd3 |
BuildRequires: antlr
|
|
|
cee4bd3 |
BuildRequires: jdom
|
|
|
cee4bd3 |
BuildRequires: gnu-regexp
|
|
|
cee4bd3 |
BuildRequires: brazil
|
|
|
cee4bd3 |
Requires: java
|
|
|
cee4bd3 |
Requires: jpackage-utils
|
|
|
cf3d3fe |
Requires: eclipse-platform >= 3.4
|
|
|
cee4bd3 |
Requires: antlr
|
|
|
cee4bd3 |
Requires: jdom
|
|
|
cee4bd3 |
Requires: gnu-regexp
|
|
|
cee4bd3 |
Requires: brazil
|
|
|
cee4bd3 |
Requires: perl
|
|
|
c019623 |
Requires: perl(PadWalker)
|
|
|
c019623 |
Requires: perl(Module::Starter)
|
|
|
5afbe73 |
Requires: perl(Test::Simple)
|
|
|
e5411ed |
Requires: perl(Perl::Tidy)
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
%description
|
|
|
cee4bd3 |
EPIC is an open source Perl IDE based on the Eclipse platform. Features
|
|
|
cee4bd3 |
supported are syntax highlighting, on-the-fly syntax check, content assist,
|
|
|
cee4bd3 |
perldoc support, source formatter, templating support, a regular expression
|
|
|
cee4bd3 |
view and a Perl debugger.
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
%prep
|
|
|
cee4bd3 |
%setup -q -n epic-%{version}
|
|
|
cee4bd3 |
|
|
|
5afbe73 |
# apply patches
|
|
|
5afbe73 |
pushd org.epic.perleditor
|
|
|
5afbe73 |
%patch0 -p0
|
|
|
5afbe73 |
popd
|
|
|
5afbe73 |
|
|
|
cee4bd3 |
# ditch bundled libs in favor of building against fedora packaged libs
|
|
|
4101d3e |
rm org.epic.lib/lib/jdom-1.1.jar \
|
|
|
cee4bd3 |
org.epic.lib/lib/antlr-2.7.5.jar \
|
|
|
cee4bd3 |
org.epic.lib/lib/brazil_mini.jar \
|
|
|
cee4bd3 |
org.epic.lib/lib/gnu-regexp-1.1.4.jar
|
|
|
cee4bd3 |
build-jar-repository -s -p org.epic.lib/lib jdom antlr gnu-regexp brazil
|
|
|
cee4bd3 |
|
|
|
4101d3e |
grep -lR jdom-1.1 * | xargs sed --in-place "s/jdom-1.1/jdom/"
|
|
|
cee4bd3 |
grep -lR antlr-2.7.5 * | xargs sed --in-place "s/antlr-2.7.5/antlr/"
|
|
|
cee4bd3 |
grep -lR gnu-regexp-1.1.4 * | xargs sed --in-place "s/gnu-regexp-1.1.4/gnu-regexp/"
|
|
|
cee4bd3 |
grep -lR brazil_mini * | xargs sed --in-place "s/brazil_mini/brazil/"
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
# put the source plugin together
|
|
|
cee4bd3 |
for p in org.epic.perleditor \
|
|
|
cee4bd3 |
org.epic.regexp \
|
|
|
cee4bd3 |
org.epic.debug; do
|
|
|
cee4bd3 |
mkdir org.epic.source/src/$p
|
|
|
cee4bd3 |
pushd $p/src
|
|
|
cee4bd3 |
zip -r -q ../../org.epic.source/src/$p/src.zip *
|
|
|
cee4bd3 |
popd
|
|
|
cee4bd3 |
done
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
# make sure upstream hasn't sneaked in any jars we don't know about
|
|
|
cee4bd3 |
JARS=""
|
|
|
cee4bd3 |
for j in `find -name "*.jar"`; do
|
|
|
cee4bd3 |
if [ ! -L $j ]; then
|
|
|
cee4bd3 |
JARS="$JARS $j"
|
|
|
cee4bd3 |
fi
|
|
|
cee4bd3 |
done
|
|
|
cee4bd3 |
if [ ! -z "$JARS" ]; then
|
|
|
cee4bd3 |
echo "These jars should be deleted and symlinked to system jars: $JARS"
|
|
|
cee4bd3 |
exit 1
|
|
|
cee4bd3 |
fi
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
%build
|
|
|
cee4bd3 |
# parse grammar for grammar parser
|
|
|
cee4bd3 |
pushd org.epic.perleditor/src/org/epic/core/parser/
|
|
|
cee4bd3 |
for g in `find . -name "*.g"`; do
|
|
|
cee4bd3 |
antlr $g
|
|
|
cee4bd3 |
done
|
|
|
cee4bd3 |
popd
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
# build the main feature
|
|
|
cee4bd3 |
%{eclipse_base}/buildscripts/pdebuild -f org.epic.feature.main \
|
|
|
cee4bd3 |
-a "-DjavacTarget=1.4 -DjavacSource=1.4"
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
%install
|
|
|
cee4bd3 |
rm -rf %{buildroot}
|
|
|
cf3d3fe |
installDir=%{buildroot}%{_datadir}/eclipse/dropins/epic
|
|
|
cf3d3fe |
install -d -m 755 $installDir
|
|
|
cf3d3fe |
unzip -q -d $installDir build/rpmBuild/org.epic.feature.main.zip
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
# need to recreate the symlinks to libraries that were setup in "prep"
|
|
|
cee4bd3 |
# because for some reason the ant copy task doesn't preserve them
|
|
|
cf3d3fe |
pushd $installDir/eclipse/plugins/org.epic.lib_*/lib
|
|
|
cee4bd3 |
rm *.jar
|
|
|
cee4bd3 |
build-jar-repository -s -p . jdom antlr gnu-regexp brazil
|
|
|
cee4bd3 |
popd
|
|
|
cee4bd3 |
|
|
|
4101d3e |
# ensure source packages are correctly verisoned
|
|
|
cf3d3fe |
pushd $installDir/eclipse/plugins
|
|
|
cee4bd3 |
for p in org.epic.perleditor \
|
|
|
cee4bd3 |
org.epic.regexp \
|
|
|
cee4bd3 |
org.epic.debug; do
|
|
|
cee4bd3 |
PVERSION=_`ls -1 | grep $p | sed -r 's/.*_(.*)\.jar$/\1/'`
|
|
|
cee4bd3 |
mv org.epic.source_%{version}/src/$p org.epic.source_%{version}/src/$p$PVERSION
|
|
|
cee4bd3 |
done
|
|
|
cee4bd3 |
popd
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
%clean
|
|
|
cee4bd3 |
rm -rf %{buildroot}
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
%files
|
|
|
cee4bd3 |
%defattr(-,root,root,-)
|
|
|
cf3d3fe |
%doc org.epic.feature.main/license.html
|
|
|
cf3d3fe |
%{_datadir}/eclipse/dropins/epic
|
|
|
c019623 |
|
|
|
cee4bd3 |
%changelog
|
|
|
e5411ed |
* Tue Jun 02 2009 Mat Booth <fedora@matbooth.co.uk> 0.6.35-1
|
|
|
e5411ed |
- Drop GCJ support.
|
|
|
e5411ed |
- Require Perl::Tidy for code formatting.
|
|
|
e5411ed |
- Update to version 0.6.35.
|
|
|
e5411ed |
- Fixed Bug [ 2782469 ] Step Return very slow, ends up in overload.pm
|
|
|
e5411ed |
- Fixed Bug [ 1874581 ] Outline view out of sync with comment typing/deletion
|
|
|
e5411ed |
|
|
|
44701c2 |
* Tue Mar 24 2009 Mat Booth <fedora@matbooth.co.uk> 0.6.33-1
|
|
|
44701c2 |
- Rebuilt to omit p2 metadata.
|
|
|
44701c2 |
- Updated to version 0.6.33.
|
|
|
44701c2 |
- Fixed Bug [ 2609775 ] CGI debugging: Could not connect to debug port!
|
|
|
44701c2 |
- Fixed Bug [ 2617018 ] Breakpoints view sorting
|
|
|
44701c2 |
- Fixed Bug [ 2703403 ] Show options remain disabled in Variables view
|
|
|
44701c2 |
- Fixed Bug [ 2680597 ] doesn't respect global Eclipse text editor background color
|
|
|
44701c2 |
- Fixed Bug [ 2694463 ] Templates don't work anymore in 0.6.32
|
|
|
44701c2 |
- Fixed Bug [ 2617016 ] Editor fails highlight. double-click.
|
|
|
44701c2 |
- Fixed Bug [ 2612813 ] Editor fails highlight. Binary operators.
|
|
|
44701c2 |
- Implemented Feature Request [ 2692844 ] Preference for fold column background color
|
|
|
44701c2 |
|
|
|
5afbe73 |
* Mon Mar 16 2009 Mat Booth <fedora@matbooth.co.uk> 0.6.31-2
|
|
|
5afbe73 |
- Add missing dependency Test::Simple for Module::Starter integration.
|
|
|
5afbe73 |
- Enable Module::Starter and taint checking by default.
|
|
|
5afbe73 |
|
|
|
4d0ee51 |
* Sun Mar 1 2009 Mat Booth <fedora@matbooth.co.uk> 0.6.31-1
|
|
|
4d0ee51 |
- Updated to verion 0.6.31.
|
|
|
44701c2 |
- Fixed Bug [ 2431258 ] Perl internal variables not appearing
|
|
|
44701c2 |
- Fixed Bug [ 2241882 ] NPE in Perl Expression View
|
|
|
44701c2 |
- Fixed Bug [ 2513003 ] epic_breakpoints raises exception in Template::Toolkit
|
|
|
44701c2 |
- Fixed Bug [ 2501676 ] debugger crash
|
|
|
44701c2 |
- Fixed Bug [ 2433437 ] Content-type does not enable to run/debug perl scripts
|
|
|
44701c2 |
- Fixed Bug [ 2537700 ] Editor fails highlight. grep + regexp
|
|
|
44701c2 |
- Fixed Bug [ 2502366 ] Content assist and typed lexicals
|
|
|
44701c2 |
- Fixed Bug [ 2502358 ] Content assist and "use base"
|
|
|
44701c2 |
- Applied Patch [ 2490403 ] cygwin drive prefix processing
|
|
|
44701c2 |
- Implemented Feature Request [ 2431423 ] Show @_ in Variables view
|
|
|
4d0ee51 |
|
|
|
a46f9ed |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.27-2
|
|
|
a46f9ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
a46f9ed |
|
|
|
c019623 |
* Sat Nov 15 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.27-1
|
|
|
44701c2 |
- Add Module::Starter dependency.
|
|
|
c019623 |
- Updated to verion 0.6.27.
|
|
|
44701c2 |
- Fixed Bug [ 2188379 ] Global variables can not be displayed
|
|
|
44701c2 |
- Fixed Bug [ 2059660 ] shift left works different than in other eclipse editors
|
|
|
44701c2 |
- Implemented Feature Request [ 2204771 ] Enable variable substitution for Perl executable in prefs
|
|
|
44701c2 |
- Implemented Feature Request [ 2197630 ] Display package-scope ('our') variables in debugger
|
|
|
c019623 |
|
|
|
77fc83f |
* Thu Sep 04 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.25-1
|
|
|
77fc83f |
- Updated to version 0.6.25.
|
|
|
44701c2 |
- Implemented Feature Request [ 2045172 ] Module::Starter integration
|
|
|
44701c2 |
- Implemented Feature Request [ 2045001 ] Persistent Variables view options
|
|
|
77fc83f |
|
|
|
cf3d3fe |
* Wed Jul 30 2008 Andrew Overholt <overholt@redhat.com> 0.6.24-3
|
|
|
cf3d3fe |
- Update for building with Eclipse SDK 3.4.
|
|
|
cf3d3fe |
|
|
|
72e9852 |
* Sat Jun 14 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.24-2
|
|
|
72e9852 |
- Fixed package ownership of feature directory.
|
|
|
72e9852 |
|
|
|
436810f |
* Sun Jun 01 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.24-1
|
|
|
436810f |
- Updated to version 0.6.24.
|
|
|
44701c2 |
- Fixed Bug [ 1972281 ] URIs with PATH_INFO not recognized in CGI debug
|
|
|
436810f |
|
|
|
4101d3e |
* Mon May 05 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.23-1
|
|
|
4101d3e |
- Removed JDOM API patch that was moved upstream.
|
|
|
44701c2 |
- Updated to version 0.6.23.
|
|
|
4101d3e |
|
|
|
cee4bd3 |
* Tue Apr 29 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.22-4
|
|
|
cee4bd3 |
- Added missing dependency.
|
|
|
cee4bd3 |
- Build the source plugin properly to support the "import as projects with
|
|
|
cee4bd3 |
source folders" feature of Eclipse.
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
* Sat Apr 19 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.22-3
|
|
|
cee4bd3 |
- Use JPackage tools to create jar repositories.
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
* Sun Apr 13 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.22-2
|
|
|
cee4bd3 |
- Updated package for new Eclipse plugin guidelines.
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
* Sun Mar 30 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.22-1
|
|
|
cee4bd3 |
- Updated to version 0.6.22.
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
* Wed Feb 20 2008 Mat Booth <fedora@matbooth.co.uk> 0.6.20-1
|
|
|
cee4bd3 |
- Updated to version 0.6.20.
|
|
|
cee4bd3 |
|
|
|
cee4bd3 |
* Wed Dec 24 2007 Mat Booth <fedora@matbooth.co.uk> 0.6.17-1
|
|
|
cee4bd3 |
- Initial release.
|