/[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 345535 - (show annotations) (download)
Fri Jan 11 09:25:36 2013 UTC (7 years, 8 months ago) by umeabot
File size: 3080 byte(s)
Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
1 Name: android
2 Version: 4.1.1.4
3 Release: %mkrel 2
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: android-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 BuildRequires: maven-plugin-annotations
31
32 Requires: apache-commons-logging
33 Requires: httpcomponents-client
34 Requires: json
35 Requires: android-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 (
63 cd src/main/java
64 %jar -xf %SOURCE0
65 rm -rf META-INF
66 )
67
68 cp -p %SOURCE1 pom.xml
69
70 # clone source directory structure
71 find src/ -type d | while read dirname ; do
72 newdirname=`echo $dirname | sed "s:src/main/java:target/classes:g"`
73 mkdir -p $newdirname
74 done
75
76 # copy everything except *.java sources
77 find src/ -type f | grep -v "\.java" | while read cpfrom ; do
78 cpto=`echo $cpfrom | sed "s:src/main/java:target/classes:g"`
79 cp $cpfrom $cpto
80 done
81
82 # TODO
83 # sonatype-oss-parent
84 sed -i "s|<version>7</version>|<version>6</version>|" pom.xml
85 # xpp3
86 sed -i "s|<version>1.1.4c</version>|<version>1.1.3.8</version>|" pom.xml
87
88 %build
89
90 mvn-rpmbuild -e \
91 install javadoc:aggregate
92
93 %install
94 # jars
95 install -d -m 755 %{buildroot}%{_javadir}
96 install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
97
98 # pom
99 install -d -m 755 %{buildroot}%{_mavenpomdir}
100 install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
101 # depmap
102 %add_maven_depmap JPP-%{name}.pom %{name}.jar
103
104 # javadoc
105 install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
106 cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
107
108 %post
109 %update_maven_depmap
110
111 %postun
112 %update_maven_depmap
113
114 %files
115 %{_javadir}/%{name}.jar
116 %{_mavenpomdir}/*
117 %{_mavendepmapfragdir}/*
118
119 %files javadoc
120 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.28