[RPM (6.0)] [DIST generic] piccolo-1.0.4-4.jpp6

Ralph Apel <[email protected]> Sat, 22 Sep 2012 20:25:25 +0200
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : piccolo                      Relocations: (not relocatable)
Version     : 1.0.4                             Vendor: JPackage Project
Release     : 4.jpp6                        Build Date: Sat 22 Sep 2012 08:22:59 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Text Processing/Markup/XML    Source RPM: (none)
Size        : 257038                           License: LGPL
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://piccolo.sourceforge.net/
Summary     : Small fast XML parser
Description :
Piccolo is a small, extremely fast XML parser for
Java. It implements the SAX 1, SAX 2.0.1, and
JAXP 1.1 (SAX parsing only) interfaces as a
non-validating parser and attempts to detect
all XML well-formedness errors.

---------------
Ralph Apel <[email protected]> - 0:1.0.4-4
- First JPP-6 release
---------------
piccolo.src: W: no-signature
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

---------------
Index: piccolo.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/piccolo/piccolo.spec,v
retrieving revision 1.2
diff -u -r1.2 piccolo.spec
--- piccolo.spec	15 Dec 2004 14:15:57 -0000	1.2
+++ piccolo.spec	22 Sep 2012 18:25:24 -0000
@@ -1,20 +1,59 @@
+# Copyright (c) 2000-2012, 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.
+#
+
 %define section free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Summary:        Small fast XML parser
 Name:           piccolo
-Version:        1.03
-Release:        1jpp
+Version:        1.0.4
+Release:        4%{?dist}
 Epoch:          0
 License:        LGPL
 URL:            http://piccolo.sourceforge.net/
 Group:          Text Processing/Markup/XML
-Vendor:         JPackage Project
-Distribution:   JPackage
-Source0:        piccolo-1.03-src.zip
-BuildRequires:  jpackage-utils >= 0:1.5.32
-BuildRequires:  ant >= 0:1.5.4, ant-optional >= 0:1.5.4
+Source0:        piccolo-1.04-src.zip
+Source1:        piccolo-1.0.4.pom
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
+BuildRequires:  ant-junit
+BuildRequires:  junit
+Requires:  java >= 0:1.6.0
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+Requires(post):    jpackage-utils >= 0:1.7.5
+Requires(postun):  jpackage-utils >= 0:1.7.5
 
 %description
 Piccolo is a small, extremely fast XML parser for 
@@ -31,14 +70,11 @@
 %{summary}.
 
 %prep
-%setup -T -c -n %{name}-%{version}
-cd ..
-unzip -q %{SOURCE0}
-cd %{name}-%{version}
+%setup -q -n %{name}-1.04
 
 %build
-export CLASSPATH=$(build-classpath \
-junit)
+export OPT_JAR_LIST="ant/ant-junit junit"
+export CLASSPATH=
 ant -Dbuild.sysclasspath=first build javadoc
 
 %install
@@ -50,6 +86,13 @@
   $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
 (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
 
+%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
+
+# poms
+install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+install -m 644 %{SOURCE1} \
+    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+
 # javadoc
 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -pr doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@@ -59,28 +102,41 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post javadoc
-rm -f %{_javadocdir}/%{name}
-ln -s %{name}-%{version} %{_javadocdir}/%{name}
-
-%postun javadoc
-if [ "$1" = "0" ]; then
-  rm -f %{_javadocdir}/%{name}
-fi
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
 
 %files
 %defattr(0644,root,root,0755)
 %doc LICENSE.txt
 %{_javadir}/%{name}.jar
 %{_javadir}/%{name}-%{version}.jar
+%{_mavendepmapfragdir}/*
+%{_datadir}/maven2/poms/*
 
 %files javadoc
 %defattr(0644,root,root,0755)
-%doc %{_javadocdir}
-
-# -----------------------------------------------------------------------------
+%doc %{_javadocdir}/%{name}-%{version}
+%doc %{_javadocdir}/%{name}
 
 %changelog
+* Sat Sep 22 2012 Ralph Apel <[email protected]> - 0:1.0.4-4
+- First JPP-6 release
+
+* Fri Apr 24 2009 Ralph Apel <[email protected]> - 0:1.0.4-3.jpp5
+- First JPP-5 release as 1.0.4
+
+* Thu Jan 05 2006 Fernando Nasser <[email protected]> - 0:1.04-2jpp
+- First JPP 1.7 build
+
+* Wed Aug 25 2004 Fernando Nasser <[email protected]> - 0:1.04-1jpp
+- Update ro 1.04
+- Rebuilt with Ant 1.6.2
+
+* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:1.03-2jpp
+- Upgrade to Ant 1.6.X
 
 * Tue Feb 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.03-1jpp
 - First JPackage release