5577e2
# Copyright (c) 2000-2012, JPackage Project
5577e2
# All rights reserved.
5577e2
#
5577e2
# Redistribution and use in source and binary forms, with or without
5577e2
# modification, are permitted provided that the following conditions
5577e2
# are met:
5577e2
#
5577e2
# 1. Redistributions of source code must retain the above copyright
5577e2
#    notice, this list of conditions and the following disclaimer.
5577e2
# 2. Redistributions in binary form must reproduce the above copyright
5577e2
#    notice, this list of conditions and the following disclaimer in the
5577e2
#    documentation and/or other materials provided with the
5577e2
#    distribution.
5577e2
# 3. Neither the name of the JPackage Project nor the names of its
5577e2
#    contributors may be used to endorse or promote products derived
5577e2
#    from this software without specific prior written permission.
5577e2
#
5577e2
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5577e2
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5577e2
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
5577e2
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
5577e2
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
5577e2
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
5577e2
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
5577e2
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5577e2
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5577e2
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5577e2
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5577e2
#
5577e2
5577e2
Name:           jdom
5577e2
Version:        1.1.3
c97bc9
Release:        6%{?dist}
5577e2
Epoch:          0
5577e2
Summary:        Java alternative to DOM and SAX
5577e2
License:        ASL 1.1
5577e2
URL:            http://www.jdom.org/
5577e2
Group:          Development/Libraries
5577e2
Source0:        http://jdom.org/dist/binary/archive/jdom-%{version}.tar.gz
5577e2
Source1:        http://repo1.maven.org/maven2/org/jdom/jdom/%{version}/jdom-%{version}.pom
5577e2
Patch0:         %{name}-crosslink.patch
5577e2
Patch1:         %{name}-1.1-OSGiManifest.patch
5577e2
5577e2
BuildRequires:  ant >= 0:1.6
5577e2
BuildRequires:  java-javadoc
5577e2
BuildRequires:  jaxen
5577e2
BuildRequires:  jpackage-utils >= 0:1.6
5577e2
BuildRequires:  xalan-j2 >= 0:2.2.0
5577e2
5577e2
Requires:       jaxen
5577e2
Requires:       jpackage-utils
5577e2
Requires:       xalan-j2 >= 0:2.2.0
5577e2
5577e2
BuildArch:      noarch
5577e2
5577e2
%description
5577e2
JDOM is, quite simply, a Java representation of an XML document. JDOM
5577e2
provides a way to represent that document for easy and efficient
5577e2
reading, manipulation, and writing. It has a straightforward API, is a
5577e2
lightweight and fast, and is optimized for the Java programmer. It's an
5577e2
alternative to DOM and SAX, although it integrates well with both DOM
5577e2
and SAX.
5577e2
5577e2
%package javadoc
5577e2
Summary:        Javadoc for %{name}
5577e2
Group:          Documentation
5577e2
Requires:       jpackage-utils
5577e2
5577e2
%description javadoc
5577e2
Javadoc for %{name}.
5577e2
5577e2
%package demo
5577e2
Summary:        Demos for %{name}
5577e2
Group:          Development/Libraries
5577e2
Requires:       %{name} = %{epoch}:%{version}-%{release}
5577e2
5577e2
%description demo
5577e2
Demonstrations and samples for %{name}.
5577e2
5577e2
5577e2
%prep
5577e2
%setup -q -n %{name}
5577e2
%patch0 -p0
5577e2
%patch1 -p0
5577e2
# remove all binary libs
5577e2
find . -name "*.jar" -exec rm -f {} \;
5577e2
find . -name "*.class" -exec rm -f {} \;
5577e2
5577e2
%build
5577e2
export CLASSPATH=$(build-classpath xalan-j2 jaxen)
5577e2
ant -Dj2se.apidoc=%{_javadocdir}/java package javadoc-link
5577e2
5577e2
%install
5577e2
# jars
5577e2
mkdir -p $RPM_BUILD_ROOT%{_javadir}
5577e2
cp -p build/%{name}-1.1.2-snap.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
5577e2
5577e2
# javadoc
5577e2
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
5577e2
cp -pr build/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
5577e2
5577e2
# demo
5577e2
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
5577e2
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}
5577e2
5577e2
# maven stuff
5577e2
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
5577e2
cp %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-jdom.pom
5577e2
%add_maven_depmap JPP-jdom.pom %{name}.jar -a "jdom:jdom"
5577e2
5577e2
%files
5577e2
%doc CHANGES.txt COMMITTERS.txt LICENSE.txt README.txt TODO.txt
5577e2
%{_javadir}/%{name}.jar
5577e2
%{_mavendepmapfragdir}/%{name}
5577e2
%{_mavenpomdir}/*.pom
5577e2
5577e2
%files javadoc
5577e2
%{_javadocdir}/%{name}
5577e2
%doc LICENSE.txt
5577e2
5577e2
%files demo
5577e2
%{_datadir}/%{name}
5577e2
%doc LICENSE.txt
5577e2
5577e2
%changelog
c97bc9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.1.3-6
c97bc9
- Mass rebuild 2013-12-27
c97bc9
5577e2
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3-5
5577e2
- Rebuild to regenerate API documentation
5577e2
- Resolves: CVE-2013-1571
5577e2
5577e2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3-4
5577e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5577e2
5577e2
* Fri Dec 14 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.1.3-3
5577e2
- Add jaxen on build classpath to compile full support
5577e2
5577e2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3-2
5577e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5577e2
5577e2
* Tue Apr 17 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.3-1
5577e2
- Update to upstream 1.1.3 release.
5577e2
5577e2
* Fri Apr 13 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:1.1.2-3
5577e2
- Update OSGI Manifest.
5577e2
5577e2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-2
5577e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5577e2
5577e2
* Wed Nov 2 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.2-1
5577e2
- New upstream version. 
5577e2
- Adapt to current guidelines.
5577e2
5577e2
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-5
5577e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5577e2
5577e2
* Wed Dec 15 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.1.1-4
5577e2
- Add compatibility depmap jdom:jdom
5577e2
- Versionless jars & javadocs
5577e2
5577e2
* Wed Nov 3 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.1-3
5577e2
- Really fix license tag.
5577e2
5577e2
* Mon Nov 1 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.1-2
5577e2
- Drop gcj support.
5577e2
- Fix license tag.
5577e2
- Fix requires and build requires.
5577e2
5577e2
* Fri Feb 5 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.1-1
5577e2
- Update to 1.1.1 bug#316380
5577e2
- Add maven dependency information
5577e2
- Make javadoc and demo subpackages noarch
5577e2
5577e2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-7.5
5577e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5577e2
5577e2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-6.5
5577e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5577e2
5577e2
* Mon Jul 21 2008 Andrew Overholt <overholt@redhat.com> 1.0-5.5
5577e2
- Add OSGi manifest information
5577e2
5577e2
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.0-5.4
5577e2
- drop repotag
5577e2
5577e2
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.0-5jpp.3
5577e2
- fix license tag
5577e2
5577e2
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.0-5jpp.2
5577e2
- Autorebuild for GCC 4.3
5577e2
5577e2
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 0:1.0-4jpp.2
5577e2
- Add %%{?dist} as per policy
5577e2
5577e2
* Fri Aug 04 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.0-4jpp.1
5577e2
- Added missing requirements.
5577e2
- Remove jaxen requirement, since we don't have it in fc yet.
5577e2
- Merge with fc spec.
5577e2
5577e2
* Tue Apr 11 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-3jpp
5577e2
- First JPP-1.7 release
5577e2
- Drop false xalan dependency
5577e2
5577e2
* Tue Oct 11 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0-2jpp
5577e2
- Add jaxen to Requires and classpath
5577e2
5577e2
* Sat Sep 18 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1jpp
5577e2
- Upgrade to 1.0 final
5577e2
5577e2
* Tue Sep 07 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.rc1.1jpp
5577e2
- Upgrade to 1.0-rc1
5577e2
5577e2
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.0-0.b9.4jpp
5577e2
- Rebuild with ant-1.6.2
5577e2
5577e2
* Mon Jul 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.0-0.b9.3jpp
5577e2
- Add non-versioned javadoc dir symlink.
5577e2
- Crosslink with local J2SE javadocs.
5577e2
5577e2
* Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 0:1.0-0.b9.2jpp
5577e2
- fix URL
5577e2
5577e2
* Wed Jan 21 2004 David Walluck <david@anti-microsoft.org> 0:1.0-0.b9.1jpp
5577e2
- b9
5577e2
- don't use classic compiler
5577e2
5577e2
* Thu Mar 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.0-0.b8.2jpp
5577e2
- Adapted to JPackage 1.5.
5577e2
- Use sed instead of bash 2 extension when symlinking jars during build.
5577e2
5577e2
* Wed May 08 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b8.1jpp
5577e2
- vendor, distribution, group tags
5577e2
5577e2
* Sat Jan 19 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b7.6jpp
5577e2
- versioned dir for javadoc
5577e2
- requires xalan-j2 >= 2.2.0
5577e2
- no dependencies for javadoc package
5577e2
- stricter dependency for demo package
5577e2
- section macro
5577e2
5577e2
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b7.5jpp
5577e2
- javadoc into javadoc package
5577e2
5577e2
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.0-0.b7.4jpp
5577e2
- removed packager tag
5577e2
- new jpp extension
5577e2
- added xalan 2.2.D13 support
5577e2
5577e2
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b7.3jpp
5577e2
- used original tarball
5577e2
5577e2
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b7.2jpp
5577e2
- first unified release
5577e2
- s/jPackage/JPackage
5577e2
5577e2
* Mon Sep 17 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b7.1mdk
5577e2
- Requires and BuildRequires xalan-j2
5577e2
- vendor tag
5577e2
- packager tag
5577e2
- s/Copyright/License/
5577e2
- truncated description to 72 columns in spec
5577e2
- spec cleanup
5577e2
- used versioned jar
5577e2
- added demo package
5577e2
5577e2
*  Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0b6-1mdk
5577e2
- first Mandrake release