/[packages]/cauldron/google-collections/current/SPECS/google-collections.spec
ViewVC logotype

Contents of /cauldron/google-collections/current/SPECS/google-collections.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 162588 - (show annotations) (download)
Thu Nov 3 23:47:56 2011 UTC (9 years, 10 months ago) by dmorgan
File size: 2232 byte(s)
SILENT: Bump release
1 Name: google-collections
2 Version: 1.0
3 Release: %mkrel 1
4 Summary: Google Collections Library
5 Group: Development/Java
6 License: ASL 2.0
7 Url: http://code.google.com/p/google-collections/
8 # svn checkout http://google-collections.googlecode.com/svn/trunk/ google-collections-1.0
9 # tar czf google-collections-1.0-src-svn.tar.gz google-collections-1.0
10 Source0: google-collections-1.0-src-svn.tar.gz
11 Source1: google-collections-1.0.pom
12
13 BuildRequires: java-devel
14 BuildRequires: jpackage-utils
15 BuildRequires: maven
16 BuildRequires: maven-compiler-plugin
17 BuildRequires: jsr-305
18 Requires: jsr-305
19 Requires: jpackage-utils
20 Requires(post): jpackage-utils
21 Requires(postun): jpackage-utils
22 Requires: java
23 BuildArch: noarch
24
25 %description
26 Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0.
27
28 %package javadoc
29 Summary: Javadocs for %{name}
30 Group: Development/Java
31 Requires: jpackage-utils
32
33 %description javadoc
34 This package contains javadoc for %{name}.
35
36 %prep
37 %setup -q -n google-collections-%{version}
38 for j in $(find . -name "*.jar"); do
39 mv $j ${j}.no
40 done
41 pushd lib
42 ln -sf $(build-classpath jsr-305) jsr305.jar
43 popd
44 cp -pr %{SOURCE1} pom.xml
45 %build
46
47 #export CLASSPATH=$(build-classpath jsr-305)
48 #ant -Dversion=%{version} dist
49 mvn-rpmbuild -Dmaven.test.skip=true install javadoc:javadoc
50
51 %install
52 mkdir -p %{buildroot}%{_javadir}
53
54 #pushd build/dist/google-collect-%{version}
55
56 install -pm 644 target/%{name}-%{version}.jar \
57 %{buildroot}%{_javadir}/%{name}-%{version}.jar
58
59 (
60 cd %{buildroot}%{_javadir}
61 for jar in *-%{version}*; do
62 ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
63 done
64 )
65
66 mkdir -p %{buildroot}%{_javadocdir}/%{name}
67 ## cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}
68 cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
69 #popd
70
71 #install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
72 #install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
73 ##add_maven_depmap JPP-%{name}.pom %{name}.jar
74
75 %files
76 %{_javadir}/*.jar
77 #%{_mavenpomdir}/*
78 #%{_mavendepmapfragdir}/*
79 %doc COPYING
80
81 %files javadoc
82 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.28