/[packages]/cauldron/yoko/pristine/SPECS/yoko.spec
ViewVC logotype

Annotation of /cauldron/yoko/pristine/SPECS/yoko.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 114302 - (hide annotations) (download)
Mon Jun 27 04:22:49 2011 UTC (11 years, 7 months ago) by gil
Original Path: cauldron/yoko/current/SPECS/yoko.spec
File size: 5263 byte(s)
imported package yoko
1 gil 114302 %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 0
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     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
46    
47     %description
48     Apache Geronimo Yoko ORB - CORBA Server.
49    
50     %package javadoc
51     Group: Documentation
52     Summary: Javadoc for %{name}
53     Requires: %{name} = %{version}-%{release}
54     Requires: jpackage-utils
55    
56     %description javadoc
57     Apache Geronimo Yoko ORB - CORBA Server.
58    
59     This package contains javadoc for %{name}.
60    
61     %prep
62     %setup -q -n apache-geronimo-yoko-33a0be6
63     %patch0 -p1
64    
65     # dont apply apache harmony require ...
66     #sed -i "|<addClasspath>true</addClasspath>|<addClasspath>false</addClasspath>|" pom,xml
67    
68     %build
69    
70     export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
71     mkdir -p $MAVEN_REPO_LOCAL
72    
73     mvn-jpp \
74     install:install-file \
75     -DgroupId=plexus \
76     -DartifactId=plexus-compiler-api \
77     -Dversion=1.5 \
78     -Dpackaging=jar \
79     -Dfile=$(build-classpath plexus/compiler-api) \
80     -Dmaven.repo.local=$MAVEN_REPO_LOCAL
81    
82     mvn-jpp \
83     install:install-file \
84     -DgroupId=concurrent \
85     -DartifactId=concurrent \
86     -Dversion=1.3.4 \
87     -Dpackaging=jar \
88     -Dfile=$(build-classpath concurrent) \
89     -Dmaven.repo.local=$MAVEN_REPO_LOCAL
90    
91     mvn-jpp \
92     install:install-file \
93     -DgroupId=ant \
94     -DartifactId=ant-trax \
95     -Dversion=1.6.5 \
96     -Dpackaging=jar \
97     -Dfile=$(build-classpath ant) \
98     -Dmaven.repo.local=$MAVEN_REPO_LOCAL
99    
100     mvn-jpp \
101     install:install-file \
102     -DgroupId=org.apache.maven.plugins \
103     -DartifactId=maven-antrun-plugin \
104     -Dversion=1.1 \
105     -Dpackaging=maven-plugin \
106     -Dfile=$(build-classpath maven-antrun-plugin) \
107     -Dmaven.repo.local=$MAVEN_REPO_LOCAL
108    
109     mvn-jpp \
110     -e \
111     -Dmaven.test.skip=true \
112     -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
113     install javadoc:aggregate
114    
115     %install
116     [ %{buildroot} != / ] && rm -rf %{buildroot}
117    
118     mkdir -p %{buildroot}%{_javadir}
119     install -pm 0644 yoko-spec-corba/target/yoko-spec-corba-%{version}.jar %{buildroot}%{_javadir}/
120     install -pm 0644 rmi-spec/target/yoko-rmi-spec-%{version}.jar %{buildroot}%{_javadir}/
121     install -pm 0644 rmi-impl/target/yoko-rmi-impl-%{version}.jar %{buildroot}%{_javadir}/
122     install -pm 0644 core/target/yoko-core-%{version}.jar %{buildroot}%{_javadir}/
123    
124     (
125     cd %{buildroot}%{_javadir}/
126     # apache harmony require ... ln -sf yoko-spec-corba-%{version}.jar yoko-%{version}.jar
127     for jar in *-%{version}*; do
128     ln -sf ${jar} ${jar/-%{version}/}
129     done
130     )
131    
132     mkdir -p %{buildroot}%{_mavenpomdir}
133     install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko.pom
134     %add_to_maven_depmap org.apache.yoko yoko %{version} JPP yoko
135     install -pm 0644 yoko-spec-corba/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-spec-corba.pom
136     %add_to_maven_depmap org.apache.yoko yoko-spec-corba %{version} JPP yoko-spec-corba
137     install -pm 0644 rmi-spec/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-rmi-spec.pom
138     %add_to_maven_depmap org.apache.yoko yoko-rmi-spec %{version} JPP yoko-rmi-spec
139     install -pm 0644 rmi-impl/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-rmi-impl.pom
140     %add_to_maven_depmap org.apache.yoko yoko-rmi-impl %{version} JPP yoko-rmi-impl
141     install -pm 0644 core/pom.xml %{buildroot}%{_mavenpomdir}/JPP-yoko-core.pom
142     %add_to_maven_depmap org.apache.yoko yoko-core %{version} JPP yoko-core
143    
144     mkdir -p %{buildroot}%{_javadocdir}/yoko
145     cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/yoko/
146    
147     %clean
148     [ %{buildroot} != / ] && rm -rf %{buildroot}
149    
150     %post
151     %update_maven_depmap
152    
153     %postun
154     %update_maven_depmap
155    
156     %files
157     %defattr(-,root,root)
158     %{_javadir}/yoko-core-%{version}.jar
159     %{_javadir}/yoko-core.jar
160     %{_javadir}/yoko-rmi-impl-%{version}.jar
161     %{_javadir}/yoko-rmi-impl.jar
162     %{_javadir}/yoko-rmi-spec-%{version}.jar
163     %{_javadir}/yoko-rmi-spec.jar
164     %{_javadir}/yoko-spec-corba-%{version}.jar
165     %{_javadir}/yoko-spec-corba.jar
166     #%{_javadir}/yoko-%{version}.jar
167     #%{_javadir}/yoko.jar
168     %{_mavenpomdir}/*
169     %{_mavendepmapfragdir}/*
170     %doc KEYS LICENSE NOTICE README.txt
171    
172     %files javadoc
173     %defattr(-,root,root)
174     %{_javadocdir}/yoko
175    

  ViewVC Help
Powered by ViewVC 1.1.28