# Copyright (c) 2000-2008, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Name: kxml Version: 2.3.0 Release: %mkrel 2 Summary: Small XML pull parser License: BSD URL: http://kxml.sourceforge.net/ Group: Development/Java Source0: http://sourceforge.net/projects/kxml/files/kxml2/%{version}/kxml2-src-%{version}.zip Source1: http://repo1.maven.org/maven2/net/sf/kxml/kxml2/%{version}/kxml2-%{version}.pom BuildRequires: jpackage-utils >= 1.7.4 BuildRequires: java-rpmbuild BuildRequires: java-devel >= 1.5.0 BuildRequires: ant BuildRequires: xpp3 BuildRequires: unzip Requires: xpp3 Requires: jpackage-utils Requires(post): jpackage-utils Requires(postun): jpackage-utils Requires: java >= 1.5.0 BuildArch: noarch %description kXML is a small XML pull parser, specially designed for constrained environments such as Applets, Personal Java or MIDP devices. %package javadoc Summary: Javadoc for %{name} Group: Development/Java %description javadoc API documentation for %{name}. %prep %setup -q -c for j in $(find . -name "*.jar"); do rm -rf $j done rm -rf bin/* ln -sf $(build-classpath xpp3) lib/xmlpull_1_1_3_1.jar rm -rf www/* %build ant %install install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} %add_to_maven_depmap net.sf.kxml %{name}2 %{version} JPP %{name} install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/%{name}2-%{version}.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}.jar install -m 644 dist/%{name}2-min-%{version}.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-min.jar # javadoc install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr www/kxml2/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %post %update_maven_depmap %postun %update_maven_depmap %files %{_javadir}/*.jar %{_mavenpomdir}/* %config %{_mavendepmapfragdir}/%{name} %doc license.txt %files javadoc %{_javadocdir}/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 2.3.0-2.mga3 + Revision: 356629 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Nov 11 2011 gil <gil> 2.3.0-1.mga2 + Revision: 166379 - update to 2.3.0 * Tue Feb 01 2011 dmorgan <dmorgan> 2.2.2-3.mga1 + Revision: 45865 - Adapt for mageia - imported package kxml