291e00
# Copyright (c) 2000-2005, JPackage Project
291e00
# All rights reserved.
291e00
#
291e00
# Redistribution and use in source and binary forms, with or without
291e00
# modification, are permitted provided that the following conditions
291e00
# are met:
291e00
#
291e00
# 1. Redistributions of source code must retain the above copyright
291e00
#    notice, this list of conditions and the following disclaimer.
291e00
# 2. Redistributions in binary form must reproduce the above copyright
291e00
#    notice, this list of conditions and the following disclaimer in the
291e00
#    documentation and/or other materials provided with the
291e00
#    distribution.
291e00
# 3. Neither the name of the JPackage Project nor the names of its
291e00
#    contributors may be used to endorse or promote products derived
291e00
#    from this software without specific prior written permission.
291e00
#
291e00
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
291e00
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
291e00
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
291e00
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
291e00
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
291e00
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
291e00
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
291e00
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
291e00
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
291e00
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
291e00
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
291e00
#
291e00
291e00
Name:           jaxen
291e00
Version:        1.1.3
011d3a
Release:        11%{?dist}
291e00
Epoch:          0
291e00
Summary:        An XPath engine written in Java
291e00
License:        BSD
291e00
URL:            http://jaxen.codehaus.org/
291e00
Group:          Development/Libraries
291e00
Source0:        http://dist.codehaus.org/jaxen/distributions/jaxen-%{version}-src.tar.gz
291e00
Source1:        build.xml
291e00
Source2:        http://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
291e00
Requires:       dom4j >= 0:1.6.1
291e00
Requires:       jdom >= 0:1.0-0.rc1.1jpp
291e00
Requires:       xalan-j2
291e00
Requires:       xerces-j2
291e00
BuildRequires:  ant >= 0:1.6, jpackage-utils >= 0:1.6, junit, ant-junit
291e00
BuildRequires:  java-devel
291e00
BuildRequires:  dom4j >= 0:1.6.1
291e00
BuildRequires:  jdom >= 0:1.0-0.rc1.1jpp
291e00
BuildRequires:  xalan-j2
291e00
BuildRequires:  xerces-j2
291e00
Provides:       jaxen-bootstrap <= %{version}-%{release}
291e00
Obsoletes:      jaxen-bootstrap <= %{version}-%{release}
291e00
BuildArch:      noarch
291e00
291e00
%description
291e00
Jaxen is an XPath engine written in Java to work against a variety of XML
291e00
based object models such as DOM, dom4j and JDOM together with Java
291e00
Beans.
291e00
291e00
%package demo
291e00
Summary:        Samples for %{name}
291e00
Group:          Development/Documentation
291e00
Requires:       jaxen = 0:%{version}-%{release}
291e00
291e00
%description demo
291e00
%{summary}.
291e00
291e00
%package javadoc
291e00
Summary:        Javadoc for %{name}
291e00
Group:          Development/Documentation
291e00
291e00
%description javadoc
291e00
%{summary}.
291e00
291e00
%prep
291e00
%setup -q 
291e00
find . -name "*.jar" -exec rm -f {} \;
291e00
cp %{SOURCE1} .
291e00
cp %{SOURCE2} pom.xml
291e00
mkdir -p target/lib
291e00
pushd target/lib
291e00
build-jar-repository . dom4j-1.6.1.jar jdom-1.0.jar 
291e00
ln -s %{_javadir}/xerces-j2.jar xercesImpl-2.6.2.jar
291e00
popd
291e00
rm -rf src/java/main/org/jaxen/xom
291e00
rm src/java/test/org/jaxen/test/XOM*.java
291e00
%pom_remove_dep xom:xom
291e00
%pom_remove_dep :maven-cobertura-plugin
291e00
%pom_remove_dep :maven-findbugs-plugin
291e00
291e00
%build
291e00
mkdir .maven
291e00
export CLASSPATH=$(build-classpath xml-commons-apis)
291e00
ant -Dant.build.sysclasspath=first jar javadoc
291e00
291e00
%install
291e00
# jars
291e00
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
291e00
install -m 644 target/%{name}-%{version}.jar \
291e00
$RPM_BUILD_ROOT%{_javadir}/%{name}.jar
291e00
291e00
# javadoc
291e00
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
291e00
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
291e00
291e00
# demo
291e00
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/samples
291e00
cp -pr src/java/samples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/samples
291e00
291e00
# POM and depmap
291e00
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
291e00
install -p -m 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
291e00
%add_maven_depmap -a saxpath:saxpath
291e00
291e00
%files
291e00
%doc LICENSE.txt
291e00
%{_javadir}/*
291e00
%{_mavenpomdir}/JPP-%{name}.pom
291e00
%{_mavendepmapfragdir}/%{name}
291e00
291e00
%files javadoc
291e00
%doc %{_javadocdir}/*
291e00
291e00
%files demo
291e00
%{_datadir}/%{name}-%{version}
291e00
291e00
%changelog
011d3a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.1.3-11
011d3a
- Mass rebuild 2013-12-27
011d3a
291e00
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3-10
291e00
- Rebuild to regenerate API documentation
291e00
- Resolves: CVE-2013-1571
291e00
291e00
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3-9
291e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
291e00
291e00
* Wed Nov 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3-8
291e00
- Remove xom dependency from POM
291e00
- Resolves: rhbz#880970
291e00
291e00
* Tue Nov 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3-7
291e00
- Remove unneeded dependency from POM: maven-cobertura-plugin
291e00
- Remove unneeded dependency from POM: maven-findbugs-plugin
291e00
- Resolves: rhbz#880692
291e00
291e00
* Fri Nov  2 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3-6
291e00
- Add maven POM
291e00
291e00
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3-5
291e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
291e00
291e00
* Wed Feb 29 2012 Tomas Radej <tradej@redhat.com> - 0:1.1.3-4
291e00
- Removed xom dep from pom
291e00
291e00
* Mon Feb 27 2012 Tomas Radej <tradej@redhat.com> - 0:1.1.3-3
291e00
- Removed XOM support (bz #785007)
291e00
291e00
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3-2
291e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
291e00
291e00
* Tue Nov 29 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.3-1
291e00
- Update to latest upstream version.
291e00
- Adapt to current guidelines.
291e00
291e00
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-4.1
291e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
291e00
291e00
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-3.1
291e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
291e00
291e00
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-2.1
291e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
291e00
291e00
* Tue Nov 25 2008 Devrim GUNDUZ <devrim@gunduz.org> - 0:1.1.1-1
291e00
- Update to 1.1.1, to fix #465987 .
291e00
291e00
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1-1.3
291e00
- drop repotag
291e00
291e00
* Tue Feb 20 2007 Vivek Lakshmanan <vivekl@redhat.com> 0:1.1-1jpp.2.fc7
291e00
- Add build-requires on ant-junit
291e00
291e00
* Mon Feb 19 2007 Andrew Overholt <overholt@redhat.com> 0:1.1-1jpp.1
291e00
- Add explicit version-release on Provides and Obsoletes
291e00
- Untabify
291e00
- Remove %%ghost on versioned javadoc dir
291e00
- Just include %%{_javadocdir}/* for javadoc package
291e00
291e00
* Wed Feb 14 2007 Andrew Overholt <overholt@redhat.com> 0:1.1-1jpp.1
291e00
- Bump to 1.1 final
291e00
- Make release Xjpp.Y%{?dist}
291e00
- Remove Distribution, Vendor
291e00
- Fix Group
291e00
- Remove cleaning of buildroot from beginning of %%prep
291e00
- Add cleaning of buildroot to beginning of %%install
291e00
- Remove %%section free
291e00
- Use Fedora buildroot
291e00
291e00
* Sun Feb 26 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.1-0.b7.4jpp
291e00
- Rebuild for JPP 1.7
291e00
291e00
* Wed Feb 15 2006 Ralph Apel <r.apel@r-apel.de> 0:1.1-0.b7.3jpp
291e00
- Insert Copyright notice
291e00
291e00
* Mon Feb 13 2006 Ralph Apel <r.apel@r-apel.de> 0:1.1-0.b7.2jpp
291e00
- Adapt to maven-1.1
291e00
- Create option to build without maven
291e00
291e00
* Wed Aug 17 2005 Ralph Apel <r.apel@r-apel.de> 0:1.1-0.b7.1jpp
291e00
- Upgrade to 1.1-beta-7
291e00
- Now mavenized
291e00
- Requiring dom4j >= 1.6.1
291e00
- rpmbuild option to inhibit build of manual (needs newer maven)
291e00
291e00
* Thu Sep 09 2004 Ralph Apel <r.apel@r-apel.de> 0:1.1-0.b2.1jpp
291e00
- Upgrade to 1.1-beta-2
291e00
- Drop saxpath requirement as saxpath is now included in jaxen
291e00
291e00
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.0-4jpp
291e00
- Rebuild with ant-1.6.2
291e00
* Mon Jan 19 2004 Ralph Apel <r.apel@r-apel.de> 0:1.0-3jpp
291e00
- build against dom4j-1.4-1jpp
291e00
- introduce manual and demo subpackages
291e00
- patch org.jaxen.dom4j.DocumentNavigatorTest
291e00
- include LICENSE in main package
291e00
- run tests during build
291e00
291e00
* Thu Jan 15 2004 Ralph Apel <r.apel@r-apel.de> 0:1.0-2jpp
291e00
- activate support for dom4j by renaming lib/dom4j-core.jar to .zip
291e00
291e00
* Sun May 04 2003 David Walluck <david@anti-microsoft.org> 0:1.0-1jpp
291e00
- release