[eclipse-moreunit] Update to upstream 2.4.1.

Alexander Kurtakov akurtakov at fedoraproject.org
Mon Apr 4 09:08:40 UTC 2011


commit ddc30ef539a8250810d21241b15aa8874d42532b
Author: Alexander Kurtakov <akurtako at redhat.com>
Date:   Mon Apr 4 12:08:03 2011 +0300

    Update to upstream 2.4.1.

 .gitignore                    |    1 +
 eclipse-moreunit-fetch-src.sh |   29 +++++++----------------------
 eclipse-moreunit.spec         |   23 ++++++++++++++---------
 sources                       |    2 +-
 4 files changed, 23 insertions(+), 32 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 18f6198..f310b9e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 eclipse-moreunit-fetched-src-V_2_2_1.tar.bz2
 /eclipse-moreunit-fetched-src-V_2_3_0.tar.xz
+eclipse-moreunit-2.4.1.tar.xz
diff --git a/eclipse-moreunit-fetch-src.sh b/eclipse-moreunit-fetch-src.sh
index 7ab566d..64c6903 100644
--- a/eclipse-moreunit-fetch-src.sh
+++ b/eclipse-moreunit-fetch-src.sh
@@ -1,30 +1,15 @@
 #!/bin/sh
-usage='usage: $0 <tag>'
+usage='usage: $0 <tag> <version>'
 name=eclipse-moreunit
 tag=$1
-tar_name=$name-fetched-src-$tag
+version=$2
 
-# example of fetch command:
-# fetch_cmd=cvs -d:pserver:anonymous at dev.eclipse.org:/cvsroot/dsdp \
-# export -r $tag org.eclipse.tm.rse/features/$f;
-
-
-if [ "x$tag"x = 'xx' ]; then
+if [ "x$tag"x = 'xx' ] || [ "x$version"x = 'xx' ]; then
    echo >&2 "$usage"
    exit 1
 fi
 
-rm -fr $tar_name && mkdir $tar_name
-pushd $tar_name
-
-# Fetch plugins
-for f in \
-org.moreunit.plugin \
-org.moreunit.feature \
-; do
-cvs -d:pserver:anonymous at moreunit.cvs.sf.net:/cvsroot/moreunit export -r $tag $f
-done
-
-popd
-# create archive
-tar -caf $tar_name.tar.xz $tar_name
+git clone git://moreunit.git.sourceforge.net/gitroot/moreunit/moreunit
+pushd moreunit
+git archive --format=tar --prefix=${name}-${version}/ ${tag} | xz >${name}-${version}.tar.xz 
+popd 
diff --git a/eclipse-moreunit.spec b/eclipse-moreunit.spec
index 867d679..ccac51b 100644
--- a/eclipse-moreunit.spec
+++ b/eclipse-moreunit.spec
@@ -1,24 +1,23 @@
-%global src_repo_tag   V_2_3_0
+%global src_repo_tag   V_2_4_1
 %global eclipse_base   %{_libdir}/eclipse
 %global install_loc    %{_datadir}/eclipse/dropins/moreunit
 
 Name:           eclipse-moreunit
-Version:        2.3.0
+Version:        2.4.1
 Release:        1%{?dist}
 Summary:        An Eclipse plugin that assists with writing more unit tests
 
 Group:          Development/Tools
 License:        EPL
 URL:            http://moreunit.sourceforge.net
-## sh %{name}-fetch-src.sh V_2_3_0
-Source0:        %{name}-fetched-src-%{src_repo_tag}.tar.xz
+## sh %{name}-fetch-src.sh V_2_4_1 2.4.1
+Source0:        %{name}-%{version}.tar.xz
 Source1:        %{name}-fetch-src.sh
 
 BuildArch: noarch
 
 BuildRequires: eclipse-pde >= 1:3.6.0
-Requires: eclipse-platform >= 3.6.0
-Requires: eclipse-jdt
+Requires: eclipse-jdt >= 3.6.0
 
 %description
 MoreUnit is an Eclipse plugin that should assist with writing more unit tests.
@@ -28,10 +27,13 @@ rename/move the corresponding test code.  Generation of test method stubs is
 also possible.
 
 %prep
-%setup -q -c
+%setup -q 
+
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
 
 %build
-%{eclipse_base}/buildscripts/pdebuild
+%{eclipse_base}/buildscripts/pdebuild -f org.moreunit
 
 %install
 install -d -m 755 %{buildroot}%{install_loc}
@@ -42,9 +44,12 @@ install -d -m 755 %{buildroot}%{install_loc}
 %files
 %defattr(-,root,root,-)
 %{install_loc}
-%doc eclipse-moreunit-fetched-src-%{src_repo_tag}/org.moreunit.plugin/help/documentation.html
+%doc org.moreunit.plugin/help/documentation.html
 
 %changelog
+* Mon Apr 4 2011 Alexander Kurtakov <akurtako at redhat.com> 2.4.1-1
+- Update to upstream 2.4.1.
+
 * Fri Feb 25 2011 Alexander Kurtakov <akurtako at redhat.com> 2.3.0-1
 - Update to upstream version 2.3.0.
 
diff --git a/sources b/sources
index ee59caf..f881cac 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c13060d89a86229c5c291575816d95e7  eclipse-moreunit-fetched-src-V_2_3_0.tar.xz
+7dc612b5ee0d5b4f32c35d2fd8e9dbda  eclipse-moreunit-2.4.1.tar.xz


More information about the scm-commits mailing list