/[packages]/cauldron/android/current/SPECS/android.spec
ViewVC logotype

Contents of /cauldron/android/current/SPECS/android.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 160208 - (show annotations) (download)
Sun Oct 30 22:13:14 2011 UTC (12 years, 5 months ago) by dmorgan
File size: 2797 byte(s)
SILENT: Bump release
1 Name: android
2 Version: 2.3.3
3 Release: %mkrel 1
4 Summary: Google Android Library
5 Group: Development/Java
6 License: ASL 2.0
7 # While the EULA for the Android SDK restricts distribution of those binaries, the source code
8 # is licensed under Apache 2.0 which allows compiling binaries from source and then distributing
9 # those versions.
10 Url: http://source.android.com/
11 # https://github.com/android/
12 Source0: http://repo2.maven.org/maven2/com/google/android/android/%{version}/android-%{version}-sources.jar
13 Source1: http://repo2.maven.org/maven2/com/google/android/android/%{version}/android-%{version}.pom
14
15 BuildRequires: java-devel
16 BuildRequires: jpackage-utils
17 BuildRequires: sonatype-oss-parent
18
19 BuildRequires: apache-commons-logging
20 BuildRequires: httpcomponents-client
21 BuildRequires: json
22 BuildRequires: opengl-api
23 BuildRequires: xerces-j2
24 BuildRequires: xpp3
25
26 BuildRequires: maven-compiler-plugin
27 BuildRequires: maven-install-plugin
28 BuildRequires: maven-jar-plugin
29 BuildRequires: maven-javadoc-plugin
30
31 Requires: apache-commons-logging
32 Requires: httpcomponents-client
33 Requires: json
34 Requires: opengl-api
35 Requires: xerces-j2
36 Requires: xpp3
37
38 Requires: java
39 Requires: jpackage-utils
40 Requires(post): jpackage-utils
41 Requires(postun): jpackage-utils
42 BuildArch: noarch
43
44 %description
45 A library jar that provides APIs for Applications written for the Google Android Platform.
46
47 %package javadoc
48 Group: Development/Java
49 Summary: Javadoc for %{name}
50 Requires: jpackage-utils
51
52 %description javadoc
53 This package contains javadoc for %{name}.
54
55 %prep
56 %setup -T -q -c
57
58 mkdir -p src/main/java
59 mkdir -p target/classes
60 (
61 cd src/main/java
62 %jar -xf %SOURCE0
63 rm -rf META-INF
64 mv assets ../../../target/classes/
65 mv res ../../../target/classes/
66 mv *.xml ../../../target/classes/
67 mv *.arsc ../../../target/classes/
68 )
69
70 cp -p %SOURCE1 pom.xml
71
72 # TODO
73 # sonatype-oss-parent
74 sed -i "s|<version>7</version>|<version>6</version>|" pom.xml
75 # xpp3
76 sed -i "s|<version>1.1.4c</version>|<version>1.1.3.8</version>|" pom.xml
77
78 %build
79
80 mvn-rpmbuild -e \
81 install javadoc:aggregate
82
83 %install
84 # jars
85 install -d -m 755 %{buildroot}%{_javadir}
86 install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
87
88 # pom
89 install -d -m 755 %{buildroot}%{_mavenpomdir}
90 install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
91 # depmap
92 %add_maven_depmap JPP-%{name}.pom %{name}.jar
93
94 # javadoc
95 install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
96 cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
97
98 %post
99 %update_maven_depmap
100
101 %postun
102 %update_maven_depmap
103
104 %files
105 %{_javadir}/%{name}.jar
106 %{_mavenpomdir}/*
107 %{_mavendepmapfragdir}/*
108
109 %files javadoc
110 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30