[activemq-protobuf] Initial import (#822929).

gil gil at fedoraproject.org
Wed Aug 15 18:25:51 UTC 2012


commit 9085d3cd4aa2ee17a3ab7b8d1b5f492bc9ac01fe
Author: gil <puntogil at libero.it>
Date:   Wed Aug 15 20:25:38 2012 +0200

    Initial import (#822929).

 .gitignore                             |    1 +
 activemq-protobuf-1.1-parent-pom.patch |  123 ++++++++++++++++++++++++++++++++
 activemq-protobuf.spec                 |   93 ++++++++++++++++++++++++
 sources                                |    1 +
 4 files changed, 218 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b374a85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/activemq-protobuf-1.1-src-svn.tar.gz
diff --git a/activemq-protobuf-1.1-parent-pom.patch b/activemq-protobuf-1.1-parent-pom.patch
new file mode 100644
index 0000000..15022a3
--- /dev/null
+++ b/activemq-protobuf-1.1-parent-pom.patch
@@ -0,0 +1,123 @@
+--- pom.xml	2010-08-03 14:16:57.000000000 +0200
++++ pom.xml-gil	2012-03-09 12:57:28.481823868 +0100
+@@ -90,12 +90,12 @@
+       <dependency>
+         <groupId>org.apache.activemq.protobuf</groupId>
+         <artifactId>activemq-protobuf</artifactId>
+-        <version>${version}</version>
++        <version>${project.version}</version>
+       </dependency>
+       <dependency>
+         <groupId>org.apache.activemq.protobuf</groupId>
+         <artifactId>activemq-protobuf-test</artifactId>
+-        <version>${version}</version>
++        <version>${project.version}</version>
+       </dependency>
+ 
+ 
+@@ -127,20 +127,20 @@
+           <artifactId>maven-bundle-plugin</artifactId>
+           <version>1.0.0</version>
+         </plugin>
+-        <plugin>
++        <!--plugin>
+           <groupId>org.codehaus.mojo</groupId>
+           <artifactId>ianal-maven-plugin</artifactId>
+           <version>1.0-alpha-1</version>
+-        </plugin>
++        </plugin-->
+         <plugin>
+           <groupId>org.codehaus.mojo</groupId>
+           <artifactId>javacc-maven-plugin</artifactId>
+           <version>2.0</version>
+         </plugin>
+         <plugin>
+-          <groupId>org.codehaus.mojo</groupId>
+-          <artifactId>rat-maven-plugin</artifactId>
+-          <version>1.0-alpha-3</version>
++          <groupId>org.apache.rat</groupId>
++          <artifactId>apache-rat-plugin</artifactId>
++          <version>0.8-SNAPSHOT</version>
+           <configuration>
+             <excludeSubProjects>false</excludeSubProjects>
+           </configuration>
+@@ -164,8 +164,8 @@
+         <extensions>true</extensions>
+         <configuration>
+           <instructions>
+-            <Bundle-Name>${artifactId}</Bundle-Name>
+-            <Bundle-SymbolicName>${groupId}.${artifactId}</Bundle-SymbolicName>
++            <Bundle-Name>${project.artifactId}</Bundle-Name>
++            <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
+             <Export-Package>org.apache.activemq.protobuf.*</Export-Package>
+             <Implementation-Title>Apache ActiveMQ Protobuf</Implementation-Title>
+             <Implementation-Version>${project.version}</Implementation-Version>
+@@ -204,7 +204,7 @@
+           </execution>
+         </executions>
+       </plugin>
+-      <plugin>
++      <!--plugin>
+         <groupId>org.codehaus.mojo</groupId>
+         <artifactId>ianal-maven-plugin</artifactId>
+         <executions>
+@@ -217,7 +217,7 @@
+             </configuration>
+           </execution>
+         </executions>
+-      </plugin>
++      </plugin-->
+       <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-surefire-plugin</artifactId>
+@@ -239,8 +239,8 @@
+         </configuration>
+       </plugin>
+       <plugin>
+-        <groupId>org.codehaus.mojo</groupId>
+-        <artifactId>rat-maven-plugin</artifactId>
++        <groupId>org.apache.rat</groupId>
++        <artifactId>apache-rat-plugin</artifactId>
+       </plugin>
+ 
+     </plugins>
+@@ -287,7 +287,7 @@
+       </activation>
+       <build>
+         <plugins>
+-          <plugin>
++          <!--plugin>
+             <groupId>org.apache.maven.plugins</groupId>
+             <artifactId>maven-assembly-plugin</artifactId>
+             <executions>
+@@ -307,16 +307,16 @@
+               </execution>
+             </executions>
+             <dependencies>
+-              <dependency>
++              <dependency-->
+                 <!-- apache version not yet released -->
+                 <!--<groupId>org.apache</groupId>-->
+-                <groupId>org.apache.geronimo.genesis</groupId>
+-                <artifactId>apache-source-release-assembly-descriptor</artifactId>
++                <!--groupId>org.apache.geronimo.genesis</groupId>
++                <artifactId>apache-source-release-assembly-descriptor</artifactId-->
+                 <!-- apache version not yet known -->
+-                <version>2.0</version>
++                <!--version>2.0</version>
+               </dependency>
+             </dependencies>
+-          </plugin>
++          </plugin-->
+           <plugin>
+             <groupId>org.apache.maven.plugins</groupId>
+             <artifactId>maven-surefire-plugin</artifactId>
+@@ -327,7 +327,7 @@
+           <plugin>
+             <groupId>org.apache.activemq.protobuf</groupId>
+             <artifactId>activemq-protobuf</artifactId>
+-            <version>${version}</version>
++            <version>${project.version}</version>
+           </plugin>
+         </plugins>
+       </build>
diff --git a/activemq-protobuf.spec b/activemq-protobuf.spec
new file mode 100644
index 0000000..6df0617
--- /dev/null
+++ b/activemq-protobuf.spec
@@ -0,0 +1,93 @@
+Name:          activemq-protobuf
+Version:       1.1
+Release:       2%{?dist}
+Summary:       ActiveMQ Protocol Buffers
+Group:         Development/Libraries
+License:       ASL 2.0
+Url:           http://activemq.apache.org/
+# svn export http://svn.apache.org/repos/asf/activemq/activemq-protobuf/tags/activemq-protobuf-1.1
+# tar czf activemq-protobuf-1.1-src-svn.tar.gz activemq-protobuf-1.1
+Source0:       activemq-protobuf-1.1-src-svn.tar.gz
+# remove ianal-maven-plugin
+# remove assembly-plugin and its deps (org.apache.geronimo.genesis apache-source-release-assembly-descriptor)
+# fix rat-plugin groupId artifactId version
+Patch0:        activemq-protobuf-1.1-parent-pom.patch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: junit4
+
+BuildRequires: maven
+BuildRequires: javacc-maven-plugin
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-enforcer-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-plugin-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+Requires:      maven
+
+Requires:      java
+Requires:      jpackage-utils
+BuildArch:     noarch
+
+%description
+A Simpler Protocol Buffer Java API.
+Comes with a built in proto file
+compiler and Java source code generator.
+
+%package javadoc
+Group:         Documentation
+Summary:       Javadoc for %{name}
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+%patch0 -p0
+chmod 644 LICENSE
+
+%build
+
+mvn-rpmbuild -Dproject.build.sourceEncoding=UTF-8 install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-pom.pom
+%add_maven_depmap JPP.%{name}-pom.pom
+
+mkdir -p %{buildroot}%{_javadir}/activemq
+for m in protobuf protobuf-test; do
+  install -m 644 activemq-${m}/target/activemq-${m}-%{version}.jar %{buildroot}%{_javadir}/activemq/${m}.jar
+  install -pm 644 activemq-${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.activemq-${m}.pom
+%add_maven_depmap JPP.activemq-${m}.pom activemq/${m}.jar
+done
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%dir %{_javadir}/activemq
+%{_javadir}/activemq/*.jar
+%{_mavenpomdir}/JPP.%{name}*.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE NOTICE README.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE NOTICE
+
+%changelog
+* Wed Aug 15 2012 gil cattaneo <puntogil at libero.it> 1.1-2
+- Fix directory ownership
+
+* Fri May 18 2012 gil cattaneo <puntogil at libero.it> 1.1-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..898245b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d567940cfdc640abd29b92e16986648d  activemq-protobuf-1.1-src-svn.tar.gz


More information about the scm-commits mailing list