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

  ViewVC Help
Powered by ViewVC 1.1.30