Blame SPECS/jdom.spec

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