[protobuf/f14/master] Revert "Fix java subpackage bugs #669345 and #669346"

konradm konradm at fedoraproject.org
Sat Jan 29 11:49:09 UTC 2011


commit 61455180a80233ec863dc88b9ab4d581fafa8d16
Author: Conrad Meyer <cemeyer at cs.washington.edu>
Date:   Sat Jan 29 03:47:18 2011 -0800

    Revert "Fix java subpackage bugs #669345 and #669346"
    
    This reverts commit fa05b4c5ed7575d5ea886307cf2424fb981ba691.
    
    (A maven subpackage that this uses isn't available in F14.)

 protobuf.spec |   32 ++++++++++++++------------------
 1 files changed, 14 insertions(+), 18 deletions(-)
---
diff --git a/protobuf.spec b/protobuf.spec
index ee270fb..6dc4f98 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -12,7 +12,7 @@
 Summary:        Protocol Buffers - Google's data interchange format
 Name:           protobuf
 Version:        2.3.0
-Release:        6%{?dist}
+Release:        5%{?dist}
 License:        BSD
 Group:          Development/Libraries
 Source:         http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
@@ -133,15 +133,16 @@ Group:   Development/Languages
 BuildRequires:    java-devel >= 1.6
 BuildRequires:    jpackage-utils
 BuildRequires:    maven2
-BuildRequires:    maven-compiler-plugin
-BuildRequires:    maven-install-plugin
-BuildRequires:    maven-jar-plugin
-BuildRequires:    maven-javadoc-plugin
-BuildRequires:    maven-resources-plugin
-BuildRequires:    maven-surefire-plugin
-BuildRequires:    maven-antrun-plugin
+BuildRequires:    maven2-plugin-compiler
+BuildRequires:    maven2-plugin-install
+BuildRequires:    maven2-plugin-jar
+BuildRequires:    maven2-plugin-javadoc
+#BuildRequires:    maven2-plugin-release
 BuildRequires:    maven-doxia
 BuildRequires:    maven-doxia-sitetools
+BuildRequires:    maven2-plugin-resources
+BuildRequires:    maven2-plugin-surefire
+BuildRequires:    maven2-plugin-antrun
 Requires:         java
 Requires:         jpackage-utils
 Requires(post):   jpackage-utils
@@ -218,14 +219,14 @@ install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/synt
 %if %{with java}
 pushd java
 install -d -m 755 %{buildroot}%{_javadir}
-install -pm 644 target/%{name}-java-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+install -pm 644 target/%{name}-java-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
 
 install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
 cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
 
-install -d -m 755 %{buildroot}%{_mavenpomdir}
-install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
-%add_to_maven_depmap com.google.protobuf %{name}-java %{version} JPP %{name}
+install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
+install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
+%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
 
 %endif
 
@@ -306,7 +307,7 @@ rm -rf %{buildroot}
 %if %{with java}
 %files java
 %defattr(-, root, root, -)
-%{_mavenpomdir}/JPP-protobuf.pom
+%{_datadir}/maven2/poms/JPP-protobuf.pom
 %{_mavendepmapfragdir}/protobuf
 %{_javadir}/*
 %doc examples/AddPerson.java examples/ListPeople.java
@@ -317,11 +318,6 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
-* Thu Jan 13 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 2.3.0-6
-- Fix java subpackage bugs #669345 and #669346
-- Use new maven plugin names
-- Use mavenpomdir macro for pom installation
-
 * Mon Jul 26 2010 David Malcolm <dmalcolm at redhat.com> - 2.3.0-5
 - generalize hardcoded reference to 2.6 in python subpackage %%files manifest
 


More information about the scm-commits mailing list