1 |
gil |
160111 |
Name: android |
2 |
pterjan |
331097 |
Version: 4.1.1.4 |
3 |
umeabot |
345535 |
Release: %mkrel 2 |
4 |
gil |
160111 |
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 |
pterjan |
331097 |
BuildRequires: android-opengl-api |
23 |
gil |
160111 |
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 |
pterjan |
331097 |
BuildRequires: maven-plugin-annotations |
31 |
gil |
160111 |
|
32 |
|
|
Requires: apache-commons-logging |
33 |
|
|
Requires: httpcomponents-client |
34 |
|
|
Requires: json |
35 |
pterjan |
331097 |
Requires: android-opengl-api |
36 |
gil |
160111 |
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 |
gil |
189409 |
|
62 |
gil |
160111 |
( |
63 |
|
|
cd src/main/java |
64 |
|
|
%jar -xf %SOURCE0 |
65 |
|
|
rm -rf META-INF |
66 |
|
|
) |
67 |
|
|
|
68 |
|
|
cp -p %SOURCE1 pom.xml |
69 |
|
|
|
70 |
gil |
189409 |
# 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 |
gil |
160111 |
# 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 |
dmorgan |
160208 |
%{_javadocdir}/%{name} |