%global namedversion gl%{version}-android-2.1_r1 Name: android-opengl-api Version: 1.1 Release: 8%{?dist} Summary: Google Android Java ME Library (Khronos) License: ASL 2.0 # While the EULA for the Android SDK restricts distribution of those binaries, the source code # is licensed under Apache 2.0 which allows compiling binaries from source and then distributing # those versions. URL: http://developer.android.com/guide/topics/graphics/opengl.html Source0: http://repo1.maven.org/maven2/org/khronos/opengl-api/%{namedversion}/opengl-api-%{namedversion}-sources.jar Source1: http://repo1.maven.org/maven2/org/khronos/opengl-api/%{namedversion}/opengl-api-%{namedversion}.pom # android-opengl-api package don't include the license file Source2: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: java-devel BuildRequires: maven-local BuildArch: noarch %description The Android implementation of Khronos OpenGL Spec for the Google Android SDK. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -T -q -c mkdir -p src/main/java ( cd src/main/java jar -xf %{SOURCE0} rm -rf META-INF ) cp -p %{SOURCE1} pom.xml cp -p %{SOURCE2} . sed -i 's/\r//' LICENSE-2.0.txt %build %mvn_file :opengl-api opengl-api %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %doc LICENSE-2.0.txt %changelog * Sat Jun 07 2014 Fedora Release Engineering - 1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Jul 06 2013 gil cattaneo 1.1-6 - switch to XMvn - minor changes to adapt to current guideline * Wed Feb 13 2013 Fedora Release Engineering - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 1.1-4 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Mon Oct 22 2012 gil cattaneo 1.1-3 - fix build on x86_64 * Mon Oct 22 2012 gil cattaneo 1.1-2 - fix javadoc sub package * Tue Jul 03 2012 gil cattaneo 1.1-1 - initial rpm