diff --git a/.gitignore b/.gitignore index 8021c9d..e6d3139 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /.project /emf-query-1.6.0.tar.gz +/org.eclipse.emf.query-Root_R1_6_maintenance.tar.gz diff --git a/eclipse-emf-query.spec b/eclipse-emf-query.spec index dbde5de..8f2e5d9 100644 --- a/eclipse-emf-query.spec +++ b/eclipse-emf-query.spec @@ -1,23 +1,19 @@ %global eclipse_base %{_libdir}/eclipse %global eclipse_dropin %{_datadir}/eclipse/dropins - -# Note: Use the tag in get-mdt-ocl.sh as the context qualifier because it's -# later than the tags of the individual plugins. -%global contextQualifier R201206271200 +%global gittag Root_R1_6_maintenance Name: eclipse-emf-query Version: 1.6.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Specify and execute queries against EMF models Group: System Environment/Libraries License: EPL URL: http://www.eclipse.org/modeling/emf/?project=query -# source tarball and the script used to generate it from upstream's source control -# script usage: -# $ sh get-emf-query.sh -Source0: emf-query-%{version}.tar.gz -Source1: get-emf-query.sh +Source0: http://git.eclipse.org/c/emf-query/org.eclipse.emf.query.git/snapshot/org.eclipse.emf.query-%{gittag}.tar.gz + +# patch to accomodate ICU4J changing version number schemes +Patch0: fix-icu-version.patch BuildArch: noarch @@ -26,11 +22,13 @@ BuildRequires: jpackage-utils BuildRequires: eclipse-pde >= 1:4.2.0 BuildRequires: eclipse-emf >= 2.8.0 BuildRequires: eclipse-mdt-ocl >= 4.0.0 +BuildRequires: eclipse-mdt-uml2 >= 4.0.0 Requires: java Requires: jpackage-utils Requires: eclipse-platform >= 1:4.2.0 Requires: eclipse-emf >= 2.8.0 Requires: eclipse-mdt-ocl >= 4.0.0 +Requires: eclipse-mdt-uml2 >= 4.0.0 %description The query component facilitates the process of search and retrieval of model @@ -39,19 +37,17 @@ Provides API support for the basic EObject based Condition objects that are used to formulate queries for EMF models. %prep -%setup -q -n emf-query-%{version} - -# remove spurious exec permissions from docs -find -wholename "*/rootfiles/*" | xargs chmod -x +%setup -q -n org.eclipse.emf.query-%{gittag} +%patch0 -p0 -b .orig %build # build emf-query features eclipse-pdebuild -f org.eclipse.emf.query \ - -d "../../java/emf emf mdt-ocl" -a "-DforceContextQualifier=%{contextQualifier}" + -d "emf mdt-ocl mdt-uml2" eclipse-pdebuild -f org.eclipse.emf.query.ocl \ - -d "../../java/emf emf mdt-ocl" -a "-DforceContextQualifier=%{contextQualifier}" + -d "emf mdt-ocl mdt-uml2" eclipse-pdebuild -f org.eclipse.emf.query.doc \ - -a "-DforceContextQualifier=%{contextQualifier}" + -d "emf mdt-ocl mdt-uml2" %install install -d -m 755 %{buildroot}%{eclipse_dropin} @@ -64,6 +60,9 @@ unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-query build/rpmBuild/org.eclips %doc org.eclipse.emf.query-feature/rootfiles/* %changelog +* Sun Apr 21 2013 Mat Booth - 1.6.0-3 +- Fix FTBFS rhbz #913950. + * Wed Feb 13 2013 Fedora Release Engineering - 1.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/fix-icu-version.patch b/fix-icu-version.patch new file mode 100644 index 0000000..edf668b --- /dev/null +++ b/fix-icu-version.patch @@ -0,0 +1,11 @@ +--- org.eclipse.emf.query/META-INF/MANIFEST.MF.orig 2013-04-21 17:32:47.767043729 +0100 ++++ org.eclipse.emf.query/META-INF/MANIFEST.MF 2013-04-21 17:33:03.999004077 +0100 +@@ -19,7 +19,7 @@ + org.eclipse.emf.query.internal.statements;x-friends:="org.eclipse.emf.query.tests", + org.eclipse.emf.query.internal.util;x-friends:="org.eclipse.emf.query.tests", + org.eclipse.emf.query.statements +-Import-Package: com.ibm.icu.text;version="[4.0.0,5.0.0)" ++Import-Package: com.ibm.icu.text + Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)", + org.eclipse.emf.ecore;bundle-version="[2.3.0,3.0.0)" + Eclipse-LazyStart: true diff --git a/get-emf-query.sh b/get-emf-query.sh deleted file mode 100644 index 7aac581..0000000 --- a/get-emf-query.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -NAME="emf-query" -VERSION=1.6.0 -TAG="R201206271200" - -echo "Exporting from CVS..." -mkdir $NAME-$VERSION -pushd $NAME-$VERSION >/dev/null - -MAPFILE=$NAME.map -TEMPMAPFILE=temp.map -wget "http://download.eclipse.org/modeling/emf/query/downloads/drops/$VERSION/$TAG/directory.txt" -O $MAPFILE -dos2unix $MAPFILE -grep ^[a-z] $MAPFILE > $TEMPMAPFILE -sed -i -e 's|query/plugins/org.eclipse.emf|query/org.eclipse.emf|g' $TEMPMAPFILE -sed -i -e 's|query/doc/org.eclipse.emf|query/org.eclipse.emf|g' $TEMPMAPFILE -sed -i -e 's|query/examples/org.eclipse.emf|query/org.eclipse.emf|g' $TEMPMAPFILE -sed -i -e 's|query/tests/org.eclipse.emf|query/org.eclipse.emf|g' $TEMPMAPFILE - -gawk 'BEGIN { - FS="," -} -{ -if (NF < 4) { - - split($1, version, "="); - split(version[1], directory, "@"); - cvsdir=split($2, dirName, ":"); - printf("cvs -d %s%s %s %s %s %s %s\n", ":pserver:anonymous@dev.eclipse.org:", dirName[cvsdir], "-q export -r", version[2], "-d", directory[2], directory[2]) | "/bin/bash"; -} -else { - - split($1, version, "="); - total=split($4, directory, "/"); - cvsdir=split($2, dirName, ":"); - printf("cvs -d %s%s %s %s %s %s %s\n", ":pserver:anonymous@dev.eclipse.org:", dirName[cvsdir], "-q export -r", version[2], "-d", directory[total], $4) | "/bin/bash"; -} - -}' $TEMPMAPFILE - -rm $TEMPMAPFILE $MAPFILE -popd >/dev/null - -echo "Creating tarball '$NAME-$VERSION.tar.gz'..." -tar -czf $NAME-$VERSION.tar.gz $NAME-$VERSION diff --git a/sources b/sources index 908aec2..f5eb493 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f99ff6b38e8942e88d990cc55781539c emf-query-1.6.0.tar.gz +cf22128cc9648bcb0b9b63ca67cf6aa7 org.eclipse.emf.query-Root_R1_6_maintenance.tar.gz