From 35d1c90fc9d35be700d96512dc6237c1d8b3d9f5 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Fri, 15 Mar 2013 08:35:33 +0100 Subject: [PATCH] Update to upstream version 3.1.3 - Remove bundled JARs from tarball --- .gitignore | 1 + create-tarball.sh | 2 ++ google-guice.spec | 15 +++++++++++---- sources | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 7b27d20..79fde4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /guice-2.0-1219.tar.xz /guice-3.0-rc2-src.zip +/google-guice-3.1.3.tar.xz diff --git a/create-tarball.sh b/create-tarball.sh index 553f8c5..11bb435 100755 --- a/create-tarball.sh +++ b/create-tarball.sh @@ -8,6 +8,8 @@ git checkout sisu-guice-${1} git branch unbundled-guice-${1} git checkout unbundled-guice-${1} rm -rf $(ls . | grep -E -v 'core|extensions|pom|COPYING') +find . -name "*.jar" -delete +find . -name "*.class" -delete git commit -a -m "Remove unneeded stuff" git tag unbundled-${1} git archive --format=tar --prefix=google-guice-${1}/ unbundled-${1} \ diff --git a/google-guice.spec b/google-guice.spec index b2e64de..05e4685 100644 --- a/google-guice.spec +++ b/google-guice.spec @@ -5,14 +5,14 @@ %global short_name guice Name: google-%{short_name} -Version: 3.1.2 -Release: 11%{?dist} +Version: 3.1.3 +Release: 1%{?dist} Summary: Lightweight dependency injection framework for Java 5 and above Group: Development/Libraries License: ASL 2.0 URL: https://github.com/sonatype/sisu-%{short_name} # ./create-tarball.sh %{version} -Source: %{name}-%{version}.tar.xz +Source0: %{name}-%{version}.tar.xz BuildArch: noarch BuildRequires: java-devel @@ -157,7 +157,7 @@ This package provides %{summary}. %prep -%setup -q +%setup -q -n %{name}-%{version} # We don't have struts2 in Fedora yet. %pom_disable_module struts2 extensions @@ -174,6 +174,9 @@ This package provides %{summary}. # maven-javadoc-plugin to generate javadocs with default style. %pom_remove_plugin :maven-javadoc-plugin +%pom_remove_dep javax.persistence:persistence-api extensions/persist +%pom_add_dep org.hibernate.javax.persistence:hibernate-jpa-2.0-api extensions/persist + # Don't try to build extension modules unless they are needed %if %{without extensions} %pom_disable_module extensions @@ -218,6 +221,10 @@ servlet,spring,throwingproviders}" "com.google.inject.extensions:guice-@1" %changelog +* Thu Mar 14 2013 Michal Srb - 3.1.3-1 +- Update to upstream version 3.1.3 +- Remove bundled JARs from tarball + * Wed Feb 06 2013 Java SIG - 3.1.2-11 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local diff --git a/sources b/sources index a699fd2..e1d2072 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f77dccf2a71a4461ce4244e4d7fe7a68 google-guice-3.1.2.tar.xz +337721d122a9c0ba3d9815b69d3cf6a1 google-guice-3.1.3.tar.xz