rpms/eclipse-emf-query/devel get-emf-query.sh, NONE, 1.1 eclipse-emf-query.spec, NONE, 1.1 sources, 1.1, 1.2 .cvsignore, 1.1, 1.2
mbooth
mbooth at fedoraproject.org
Tue Dec 1 20:10:49 UTC 2009
Author: mbooth
Update of /cvs/pkgs/rpms/eclipse-emf-query/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19156/eclipse-emf-query/devel
Modified Files:
sources .cvsignore
Added Files:
get-emf-query.sh eclipse-emf-query.spec
Log Message:
* Sun Nov 22 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.0-2
- Don't pretty-print the package description.
- Remove spurious executable permissions from docs.
* Fri Nov 13 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.0-1
- New query spec file based on eclipse-gef.
--- NEW FILE get-emf-query.sh ---
#!/bin/bash
NAME="emf-query"
VERSION=1.3.0
TAG="R200906221200"
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
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 at 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 at 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
--- NEW FILE eclipse-emf-query.spec ---
%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 v200906221200
Name: eclipse-emf-query
Version: 1.3.0
Release: 2%{?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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: eclipse-pde >= 1:3.5.0
BuildRequires: eclipse-emf >= 2.5.0
BuildRequires: eclipse-mdt-ocl >= 1.3.0
Requires: java
Requires: jpackage-utils
Requires: eclipse-platform >= 1:3.5.0
Requires: eclipse-emf >= 2.5.0
Requires: eclipse-mdt-ocl >= 1.3.0
%description
The query component facilitates the process of search and retrieval of model
elements of interest in a flexible yet controlled and structured manner.
Provides API support for the basic EObject based Condition objects that are
used to formulate queries for EMF models.
#TODO - sdk/examples subpackages?
%prep
%setup -q -n emf-query-%{version}
# make sure upstream hasn't sneaked in any jars we don't know about
JARS=""
for j in `find -name "*.jar"`; do
if [ ! -L $j ]; then
JARS="$JARS $j"
fi
done
if [ ! -z "$JARS" ]; then
echo "These jars should be deleted and symlinked to system jars: $JARS"
exit 1
fi
# remove spurious exec permissions from docs
find -wholename "*/rootfiles/*" | xargs chmod -x
%build
# build emf-query features
%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.emf.query \
-d "emf ocl" -a "-DforceContextQualifier=%{contextQualifier}"
%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.emf.query.ocl \
-d "emf ocl" -a "-DforceContextQualifier=%{contextQualifier}"
%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{eclipse_dropin}
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-query build/rpmBuild/org.eclipse.emf.query.zip
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-query build/rpmBuild/org.eclipse.emf.query.ocl.zip
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{eclipse_dropin}/emf-query
%doc org.eclipse.emf.query-feature/rootfiles/*
%changelog
* Sun Nov 22 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.0-2
- Don't pretty-print the package description.
- Remove spurious executable permissions from docs.
* Fri Nov 13 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.0-1
- New query spec file based on eclipse-gef.
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-emf-query/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 1 Dec 2009 18:46:13 -0000 1.1
+++ sources 1 Dec 2009 20:10:49 -0000 1.2
@@ -0,0 +1 @@
+f55ce87a31658c7316094d214054031b emf-query-1.3.0.tar.gz
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-emf-query/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 1 Dec 2009 18:46:12 -0000 1.1
+++ .cvsignore 1 Dec 2009 20:10:49 -0000 1.2
@@ -0,0 +1 @@
+emf-query-1.3.0.tar.gz
More information about the fedora-extras-commits
mailing list