diff --git a/protobuf-java-fixes.patch b/protobuf-2.4.1-java-fixes.patch
similarity index 82%
rename from protobuf-java-fixes.patch
rename to protobuf-2.4.1-java-fixes.patch
index 3d553e8..cb0e300 100644
--- a/protobuf-java-fixes.patch
+++ b/protobuf-2.4.1-java-fixes.patch
@@ -1,6 +1,5 @@
-diff -up protobuf-2.3.0/java/pom.xml.orig protobuf-2.3.0/java/pom.xml
---- protobuf-2.3.0/java/pom.xml.orig 2010-04-21 20:59:56.378273539 -0600
-+++ protobuf-2.3.0/java/pom.xml 2010-04-21 21:28:39.565018649 -0600
+--- protobuf-2.4.1/java/pom.xml.orig 2011-04-30 12:23:04.000000000 -0500
++++ protobuf-2.4.1/java/pom.xml 2011-06-09 14:47:09.554188809 -0500
@@ -3,11 +3,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -12,7 +11,7 @@ diff -up protobuf-2.3.0/java/pom.xml.orig protobuf-2.3.0/java/pom.xml
-
com.google.protobuf
protobuf-java
- 2.3.0
+ 2.4.1
@@ -32,26 +27,6 @@
scm:svn:http://protobuf.googlecode.com/svn/trunk/
@@ -55,7 +54,7 @@ diff -up protobuf-2.3.0/java/pom.xml.orig protobuf-2.3.0/java/pom.xml
maven-antrun-plugin
-@@ -90,38 +57,6 @@
+@@ -90,44 +57,6 @@
run
@@ -74,6 +73,12 @@ diff -up protobuf-2.3.0/java/pom.xml.orig protobuf-2.3.0/java/pom.xml
-
-
+-
+-
+-
+-
+-
+-
-
-
-@@ -148,18 +83,6 @@
- **/UninitializedMessageException.java
+@@ -159,18 +88,6 @@
+ **/UnmodifiableLazyStringList.java
**/WireFormat.java
-
diff --git a/protobuf.spec b/protobuf.spec
index d0a2793..72561b8 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -11,14 +11,14 @@
Summary: Protocol Buffers - Google's data interchange format
Name: protobuf
-Version: 2.3.0
-Release: 7%{?dist}
+Version: 2.4.1
+Release: 1%{?dist}
License: BSD
Group: Development/Libraries
Source: http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
Source1: ftdetect-proto.vim
-Patch1: protobuf-2.3.0-fedora-gtest.patch
-Patch2: protobuf-java-fixes.patch
+Patch1: protobuf-2.3.0-fedora-gtest.patch
+Patch2: protobuf-2.4.1-java-fixes.patch
URL: http://code.google.com/p/protobuf/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: automake autoconf libtool pkgconfig
@@ -167,11 +167,11 @@ This package contains the API documentation for %{name}-java.
%setup -q
%if %{with gtest}
rm -rf gtest
-%patch1 -p1
+%patch1 -p1 -b .gtest
%endif
chmod 644 examples/*
%if %{with java}
-%patch2 -p1
+%patch2 -p1 -b .java-fixes
rm -rf java/src/test
%endif
@@ -317,6 +317,10 @@ rm -rf %{buildroot}
%endif
%changelog
+* Thu Jun 09 2011 BJ Dierkes - 2.4.1-1
+- Latest sources from upstream.
+- Rewrote Patch2 as protobuf-2.4.1-java-fixes.patch
+
* Wed Feb 09 2011 Fedora Release Engineering - 2.3.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild