rpms/eclipse-emf-transaction/devel get-emf-transaction.sh, NONE, 1.1 eclipse-emf-transaction.spec, NONE, 1.1 sources, 1.1, 1.2 .cvsignore, 1.1, 1.2
mbooth
mbooth at fedoraproject.org
Fri Nov 27 21:16:58 UTC 2009
Author: mbooth
Update of /cvs/pkgs/rpms/eclipse-emf-transaction/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12521/eclipse-emf-transaction/devel
Modified Files:
sources .cvsignore
Added Files:
get-emf-transaction.sh eclipse-emf-transaction.spec
Log Message:
* Tue Nov 24 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.1-2
- Don't pretty-print the package description.
* Fri Nov 13 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.1-1
- New transaction spec file based on eclipse-gef.
--- NEW FILE get-emf-transaction.sh ---
#!/bin/bash
NAME="emf-transaction"
VERSION=1.3.1
TAG="R200909151245"
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/transaction/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-transaction.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 v200909151245
Name: eclipse-emf-transaction
Version: 1.3.1
Release: 2%{?dist}
Summary: A model management layer for managing EMF resources
Group: System Environment/Libraries
License: EPL
URL: http://www.eclipse.org/modeling/emf/?project=transaction
# source tarball and the script used to generate it from upstream's source control
# script usage:
# $ sh get-emf-transaction.sh
Source0: emf-transaction-%{version}.tar.gz
Source1: get-emf-transaction.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: eclipse-pde >= 1:3.5.1
BuildRequires: eclipse-emf >= 2.5.0
BuildRequires: eclipse-emf-query >= 1.3.0
BuildRequires: eclipse-emf-validation >= 1.3.0
Requires: java
Requires: jpackage-utils
Requires: eclipse-platform >= 1:3.5.1
Requires: eclipse-emf >= 2.5.0
Requires: eclipse-emf-query >= 1.3.0
Requires: eclipse-emf-validation >= 1.3.0
%description
The transaction component provide support for clients to read and write EMF
models on multiple threads, provides automatic validation to detect invalid
changes and provides support for batched notification of related changes,
rather than as a stream of EMF notifications. In particular, this allows
applications to analyze change sets in their entirety. For a simplified
programming model, the API automatically tracks changes applied to models
without the need for client code to use EMF edit commands. These changes are
encapsulated in transactions/operations that can undo and redo themselves.
#TODO - sdk/examples subpackages?
%prep
%setup -q -n emf-transaction-%{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-transaction features
%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.emf.transaction \
-d "emf" -a "-DforceContextQualifier=%{contextQualifier}"
%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.emf.workspace \
-d "emf" -a "-DforceContextQualifier=%{contextQualifier}"
%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{eclipse_dropin}
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-transaction build/rpmBuild/org.eclipse.emf.transaction.zip
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-transaction build/rpmBuild/org.eclipse.emf.workspace.zip
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{eclipse_dropin}/emf-transaction
%doc org.eclipse.emf.transaction-feature/rootfiles/*
%changelog
* Tue Nov 24 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.1-2
- Don't pretty-print the package description.
* Fri Nov 13 2009 Mat Booth <fedora at matbooth.co.uk> 1.3.1-1
- New transaction spec file based on eclipse-gef.
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-emf-transaction/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 27 Nov 2009 05:31:49 -0000 1.1
+++ sources 27 Nov 2009 21:16:57 -0000 1.2
@@ -0,0 +1 @@
+a6378d6d1a6cf1cd19015494edc6b0c9 emf-transaction-1.3.1.tar.gz
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-emf-transaction/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 27 Nov 2009 05:31:49 -0000 1.1
+++ .cvsignore 27 Nov 2009 21:16:58 -0000 1.2
@@ -0,0 +1 @@
+emf-transaction-1.3.1.tar.gz
More information about the scm-commits
mailing list