1 |
%global git_commit 63c07d8 |
2 |
%global cluster apache-geronimo-yoko |
3 |
%define pkg_version 0-g%{git_commit} |
4 |
Name: yoko |
5 |
Version: 1.0 |
6 |
Release: %mkrel 1 |
7 |
Summary: Apache Geronimo Yoko ORB - CORBA Server |
8 |
Group: Development/Java |
9 |
License: ASL |
10 |
Url: http://geronimo.apache.org/ |
11 |
Source0: https://download.github.com/%{cluster}-yoko-%{version}-%{pkg_version}.zip |
12 |
Patch0: geronimo-yoko-1.0-poms.patch |
13 |
BuildRequires: ant |
14 |
BuildRequires: ant-nodeps |
15 |
BuildRequires: ant-trax |
16 |
BuildRequires: antlr |
17 |
BuildRequires: bcel |
18 |
BuildRequires: concurrent |
19 |
BuildRequires: java-devel |
20 |
BuildRequires: jpackage-utils |
21 |
BuildRequires: junit |
22 |
BuildRequires: maven |
23 |
BuildRequires: maven-antrun-plugin |
24 |
BuildRequires: maven-assembly-plugin |
25 |
BuildRequires: maven-checkstyle-plugin |
26 |
BuildRequires: maven-compiler-plugin |
27 |
BuildRequires: maven-dependency-plugin |
28 |
BuildRequires: maven-deploy-plugin |
29 |
BuildRequires: maven-eclipse-plugin |
30 |
BuildRequires: maven-gpg-plugin |
31 |
BuildRequires: maven-jar-plugin |
32 |
BuildRequires: maven-javadoc-plugin |
33 |
BuildRequires: maven-pmd-plugin |
34 |
BuildRequires: maven-project-info-reports-plugin |
35 |
BuildRequires: maven-release-plugin |
36 |
BuildRequires: maven-remote-resources-plugin |
37 |
BuildRequires: maven-site-plugin |
38 |
BuildRequires: maven-source-plugin |
39 |
BuildRequires: maven-surefire-plugin |
40 |
BuildRequires: maven-plugin-idlj |
41 |
BuildRequires: plexus-compiler |
42 |
Requires: bcel |
43 |
Requires: jpackage-utils |
44 |
BuildArch: noarch |
45 |
|
46 |
%description |
47 |
Apache Geronimo Yoko ORB - CORBA Server. |
48 |
|
49 |
%package javadoc |
50 |
Group: Development/Java |
51 |
Summary: Javadoc for %{name} |
52 |
Requires: %{name} = %{version}-%{release} |
53 |
Requires: jpackage-utils |
54 |
|
55 |
%description javadoc |
56 |
Apache Geronimo Yoko ORB - CORBA Server. |
57 |
|
58 |
This package contains javadoc for %{name}. |
59 |
|
60 |
%prep |
61 |
%setup -q -n apache-geronimo-yoko-33a0be6 |
62 |
%patch0 -p1 |
63 |
|
64 |
# dont apply apache harmony require ... |
65 |
#sed -i "|<addClasspath>true</addClasspath>|<addClasspath>false</addClasspath>|" pom,xml |
66 |
|
67 |
%build |
68 |
|
69 |
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository |
70 |
mkdir -p $MAVEN_REPO_LOCAL |
71 |
|
72 |
mvn-jpp \ |
73 |
install:install-file \ |
74 |
-DgroupId=plexus \ |
75 |
-DartifactId=plexus-compiler-api \ |
76 |
-Dversion=1.5 \ |
77 |
-Dpackaging=jar \ |
78 |
-Dfile=$(build-classpath plexus/compiler-api) \ |
79 |
-Dmaven.repo.local=$MAVEN_REPO_LOCAL |
80 |
|
81 |
mvn-jpp \ |
82 |
install:install-file \ |
83 |
-DgroupId=concurrent \ |
84 |
-DartifactId=concurrent \ |
85 |
-Dversion=1.3.4 \ |
86 |
-Dpackaging=jar \ |
87 |
-Dfile=$(build-classpath concurrent) \ |
88 |
-Dmaven.repo.local=$MAVEN_REPO_LOCAL |
89 |
|
90 |
mvn-jpp \ |
91 |
install:install-file \ |
92 |
-DgroupId=ant \ |
93 |
-DartifactId=ant-trax \ |
94 |
-Dversion=1.6.5 \ |
95 |
-Dpackaging=jar \ |
96 |
-Dfile=$(build-classpath ant) \ |
97 |
-Dmaven.repo.local=$MAVEN_REPO_LOCAL |
98 |
|
99 |
mvn-jpp \ |
100 |
install:install-file \ |
101 |
-DgroupId=org.apache.maven.plugins \ |
102 |
-DartifactId=maven-antrun-plugin \ |
103 |
-Dversion=1.1 \ |
104 |
-Dpackaging=maven-plugin \ |
105 |
-Dfile=$(build-classpath maven-antrun-plugin) \ |
106 |
-Dmaven.repo.local=$MAVEN_REPO_LOCAL |
107 |
|
108 |
mvn-jpp \ |
109 |
-e \ |
110 |
-Dmaven.test.skip=true \ |
111 |
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \ |
112 |
install javadoc:aggregate |
113 |
|
114 |
%install |
115 |
[ %{buildroot} != / ] && rm -rf %{buildroot} |
116 |
|
117 |
mkdir -p %{buildroot}%{_javadir} |
118 |
install -pm 0644 yoko-spec-corba/target/yoko-spec-corba-%{version}.jar %{buildroot}%{_javadir}/ |
119 |
install -pm 0644 rmi-spec/target/yoko-rmi-spec-%{version}.jar %{buildroot}%{_javadir}/ |
120 |
install -pm 0644 rmi-impl/target/yoko-rmi-impl-%{version}.jar %{buildroot}%{_javadir}/ |
121 |
install -pm 0644 core/target/yoko-core-%{version}.jar %{buildroot}%{_javadir}/ |
122 |
|
123 |
( |
124 |
cd %{buildroot}%{_javadir}/ |
125 |
# apache harmony require ... ln -sf yoko-spec-corba-%{version}.jar yoko-%{version}.jar |
126 |
for jar in *-%{version}*; do |
127 |
ln -sf ${jar} ${jar/-%{version}/} |
128 |
done |
129 |
) |
130 |
|
131 |
mkdir -p %{buildroot}%{_mavenpomdir} |
132 |
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko.pom |
133 |
%add_to_maven_depmap org.apache.yoko yoko %{version} JPP yoko |
134 |
install -pm 0644 yoko-spec-corba/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-spec-corba.pom |
135 |
%add_to_maven_depmap org.apache.yoko yoko-spec-corba %{version} JPP yoko-spec-corba |
136 |
install -pm 0644 rmi-spec/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-rmi-spec.pom |
137 |
%add_to_maven_depmap org.apache.yoko yoko-rmi-spec %{version} JPP yoko-rmi-spec |
138 |
install -pm 0644 rmi-impl/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-rmi-impl.pom |
139 |
%add_to_maven_depmap org.apache.yoko yoko-rmi-impl %{version} JPP yoko-rmi-impl |
140 |
install -pm 0644 core/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-core.pom |
141 |
%add_to_maven_depmap org.apache.yoko yoko-core %{version} JPP yoko-core |
142 |
|
143 |
mkdir -p %{buildroot}%{_javadocdir}/yoko |
144 |
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/yoko/ |
145 |
|
146 |
%clean |
147 |
[ %{buildroot} != / ] && rm -rf %{buildroot} |
148 |
|
149 |
%post |
150 |
%update_maven_depmap |
151 |
|
152 |
%postun |
153 |
%update_maven_depmap |
154 |
|
155 |
%files |
156 |
%defattr(-,root,root) |
157 |
%{_javadir}/yoko-core-%{version}.jar |
158 |
%{_javadir}/yoko-core.jar |
159 |
%{_javadir}/yoko-rmi-impl-%{version}.jar |
160 |
%{_javadir}/yoko-rmi-impl.jar |
161 |
%{_javadir}/yoko-rmi-spec-%{version}.jar |
162 |
%{_javadir}/yoko-rmi-spec.jar |
163 |
%{_javadir}/yoko-spec-corba-%{version}.jar |
164 |
%{_javadir}/yoko-spec-corba.jar |
165 |
#%{_javadir}/yoko-%{version}.jar |
166 |
#%{_javadir}/yoko.jar |
167 |
%{_mavenpomdir}/* |
168 |
%{_mavendepmapfragdir}/* |
169 |
%doc KEYS LICENSE NOTICE README.txt |
170 |
|
171 |
%files javadoc |
172 |
%defattr(-,root,root) |
173 |
%{_javadocdir}/yoko |
174 |
|