1 |
Name: activemq-protobuf |
2 |
Version: 1.1 |
3 |
Release: %mkrel 4 |
4 |
Summary: ActiveMQ Protocol Buffers |
5 |
Group: Development/Java |
6 |
License: ASL 2.0 |
7 |
Url: http://activemq.apache.org/ |
8 |
# svn export http://svn.apache.org/repos/asf/activemq/activemq-protobuf/tags/activemq-protobuf-1.1 |
9 |
# tar czf activemq-protobuf-1.1-src-svn.tar.gz activemq-protobuf-1.1 |
10 |
Source0: activemq-protobuf-1.1-src-svn.tar.gz |
11 |
# remove ianal-maven-plugin |
12 |
# remove assembly-plugin and its deps (org.apache.geronimo.genesis apache-source-release-assembly-descriptor) |
13 |
# fix rat-plugin groupId artifactId version |
14 |
Patch0: activemq-protobuf-1.1-parent-pom.patch |
15 |
|
16 |
BuildRequires: java-devel |
17 |
BuildRequires: jpackage-utils |
18 |
|
19 |
BuildRequires: junit4 |
20 |
|
21 |
BuildRequires: maven |
22 |
BuildRequires: javacc-maven-plugin |
23 |
BuildRequires: maven-compiler-plugin |
24 |
BuildRequires: maven-enforcer-plugin |
25 |
BuildRequires: maven-install-plugin |
26 |
BuildRequires: maven-jar-plugin |
27 |
BuildRequires: maven-javadoc-plugin |
28 |
BuildRequires: maven-plugin-descriptor |
29 |
BuildRequires: maven-plugin-plugin |
30 |
BuildRequires: maven-plugin-tools-annotations |
31 |
BuildRequires: maven-plugin-tools-api |
32 |
BuildRequires: maven-plugin-tools-generators |
33 |
BuildRequires: maven-resources-plugin |
34 |
BuildRequires: maven-surefire-plugin |
35 |
BuildRequires: maven-surefire-provider-junit4 |
36 |
|
37 |
Requires: maven |
38 |
|
39 |
Requires: java |
40 |
Requires: jpackage-utils |
41 |
BuildArch: noarch |
42 |
|
43 |
%description |
44 |
A Simpler Protocol Buffer Java API. |
45 |
Comes with a built in proto file |
46 |
compiler and Java source code generator. |
47 |
|
48 |
%package javadoc |
49 |
Group: Development/Java |
50 |
Summary: Javadoc for %{name} |
51 |
Requires: jpackage-utils |
52 |
|
53 |
%description javadoc |
54 |
This package contains javadoc for %{name}. |
55 |
|
56 |
%prep |
57 |
%setup -q |
58 |
%patch0 -p0 |
59 |
chmod 644 LICENSE |
60 |
|
61 |
%build |
62 |
|
63 |
mvn-rpmbuild -Dproject.build.sourceEncoding=UTF-8 install javadoc:aggregate |
64 |
|
65 |
%install |
66 |
|
67 |
mkdir -p %{buildroot}%{_mavenpomdir} |
68 |
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-pom.pom |
69 |
%add_maven_depmap JPP.%{name}-pom.pom |
70 |
|
71 |
mkdir -p %{buildroot}%{_javadir}/activemq |
72 |
for m in protobuf protobuf-test; do |
73 |
install -m 644 activemq-${m}/target/activemq-${m}-%{version}.jar %{buildroot}%{_javadir}/activemq/${m}.jar |
74 |
install -pm 644 activemq-${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.activemq-${m}.pom |
75 |
%add_maven_depmap JPP.activemq-${m}.pom activemq/${m}.jar |
76 |
done |
77 |
|
78 |
mkdir -p %{buildroot}%{_javadocdir}/%{name} |
79 |
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} |
80 |
|
81 |
%files |
82 |
%dir %{_javadir}/activemq |
83 |
%{_javadir}/activemq/*.jar |
84 |
%{_mavenpomdir}/JPP.%{name}*.pom |
85 |
%{_mavendepmapfragdir}/%{name} |
86 |
%doc LICENSE NOTICE README.txt |
87 |
|
88 |
%files javadoc |
89 |
%{_javadocdir}/%{name} |
90 |
%doc LICENSE NOTICE |
91 |
|