Blame SPECS/dom4j.spec

37c724
# Copyright (c) 2000-2007, JPackage Project
37c724
# All rights reserved.
37c724
#
37c724
# Redistribution and use in source and binary forms, with or without
37c724
# modification, are permitted provided that the following conditions
37c724
# are met:
37c724
#
37c724
# 1. Redistributions of source code must retain the above copyright
37c724
#    notice, this list of conditions and the following disclaimer.
37c724
# 2. Redistributions in binary form must reproduce the above copyright
37c724
#    notice, this list of conditions and the following disclaimer in the
37c724
#    documentation and/or other materials provided with the
37c724
#    distribution.
37c724
# 3. Neither the name of the JPackage Project nor the names of its
37c724
#    contributors may be used to endorse or promote products derived
37c724
#    from this software without specific prior written permission.
37c724
#
37c724
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37c724
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37c724
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37c724
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37c724
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
37c724
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37c724
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37c724
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37c724
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37c724
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37c724
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37c724
#
37c724
37c724
Summary:        Open Source XML framework for Java
37c724
Name:           dom4j
37c724
Version:        1.6.1
37c724
Release:        19%{?dist}
37c724
Epoch:          0
37c724
License:        BSD
37c724
URL:            http://www.dom4j.org/
37c724
Group:          Development/Libraries
37c724
# ./create-tarball.sh %%{version}
37c724
Source0:        %{name}-%{version}-clean.tar.xz
37c724
Source1:        dom4j_rundemo.sh
37c724
Source2:        http://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
37c724
Source3:        create-tarball.sh
37c724
Patch0:         dom4j-1.6.1-build_xml.patch
37c724
# See https://bugzilla.redhat.com/show_bug.cgi?id=976180
37c724
Patch1:         dom4j-1.6.1-Remove-references-to-ConcurrentReaderHashMap.patch
37c724
BuildRequires:  jpackage-utils >= 0:1.6
37c724
BuildRequires:  ant >= 0:1.6
37c724
#BuildRequires:  junit
37c724
BuildRequires:  jtidy
37c724
#BuildRequires:  junitperf
37c724
BuildRequires:  isorelax
37c724
BuildRequires:  jaxen-bootstrap >= 0:1.1-0.b7
37c724
BuildRequires:  msv-msv
37c724
BuildRequires:  relaxngDatatype
37c724
BuildRequires:  bea-stax
37c724
BuildRequires:  bea-stax-api
37c724
BuildRequires:  ws-jaxme
37c724
BuildRequires:  xalan-j2
37c724
BuildRequires:  xerces-j2
37c724
BuildRequires:  jaxp = 1.2
37c724
BuildRequires:  xpp3
37c724
BuildRequires:  msv-xsdlib
37c724
Requires:  xpp3
37c724
Requires:  xerces-j2
37c724
Requires:  msv-msv
37c724
Requires:  msv-xsdlib
37c724
Requires:  relaxngDatatype
37c724
Requires:  isorelax
37c724
Requires:  jaxen-bootstrap >= 0:1.1-0.b7
37c724
Requires:  jpackage-utils >= 0:1.6
37c724
Requires:  bea-stax
37c724
Requires:  bea-stax-api
37c724
Requires:  ws-jaxme
37c724
Requires:  xalan-j2
37c724
BuildArch:      noarch
37c724
37c724
%description
37c724
dom4j is an Open Source XML framework for Java. dom4j allows you to read,
37c724
write, navigate, create and modify XML documents. dom4j integrates with 
37c724
DOM and SAX and is seamlessly integrated with full XPath support. 
37c724
37c724
%package demo
37c724
Summary:        Samples for %{name}
37c724
Group:          Documentation
37c724
Requires:       dom4j = 0:%{version}-%{release}
37c724
37c724
%description demo
37c724
Samples for %{name}.
37c724
37c724
%package manual
37c724
Summary:        Manual for %{name}
37c724
Group:          Documentation
37c724
37c724
%description manual
37c724
Documentation for %{name}.
37c724
37c724
%package javadoc
37c724
Summary:        Javadoc for %{name}
37c724
Group:          Documentation
37c724
37c724
%description javadoc
37c724
Javadoc for %{name}.
37c724
37c724
37c724
%prep
37c724
%setup -q 
37c724
# replace run.sh
37c724
cp -p %{SOURCE1} run.sh
37c724
# fix for deleted jars
37c724
mv build.xml build.xml.orig
37c724
sed -e '/unjar/d' -e 's|,cookbook/\*\*,|,|' build.xml.orig > build.xml
37c724
37c724
%patch0 -b .sav
37c724
%patch1 -p1
37c724
37c724
# XPP2 is no longer developed and is on maintenance mode.
37c724
# Packages (if any) using XPPReader should migrate to XPP3Reader.
37c724
rm -rf src/java/org/dom4j/{xpp,io/XPPReader.java}
37c724
sed -i s/XPPReader/XPP3Reader/g src/samples/org/dom4j/samples/{performance/PullParseTest,PullParserDemo}.java
37c724
37c724
%build
37c724
pushd lib
37c724
ln -sf $(build-classpath relaxngDatatype)
37c724
ln -sf $(build-classpath jaxme/jaxmeapi) 
37c724
ln -sf $(build-classpath msv-xsdlib) 
37c724
ln -sf $(build-classpath msv-msv) 
37c724
ln -sf $(build-classpath jaxen) 
37c724
ln -sf $(build-classpath bea-stax-api) 
37c724
#pushd test
37c724
#ln -sf $(build-classpath bea-stax-ri)
37c724
#ln -sf $(build-classpath junitperf)
37c724
#ln -sf $(build-classpath junit)
37c724
#popd
37c724
ln -sf $(build-classpath xpp3) 
37c724
pushd tools
37c724
ln -sf $(build-classpath jaxme/jaxmexs) 
37c724
ln -sf $(build-classpath xalan-j2) 
37c724
ln -sf $(build-classpath jaxme/jaxmejs) 
37c724
ln -sf $(build-classpath jtidy) 
37c724
ln -sf $(build-classpath isorelax) 
37c724
ln -sf $(build-classpath jaxme/jaxme2) 
37c724
ln -sf $(build-classpath xerces-j2) 
37c724
popd
37c724
popd
37c724
37c724
# FIXME: test needs to be fixed
37c724
ant all samples # test
37c724
37c724
%install
37c724
# jars
37c724
mkdir -p $RPM_BUILD_ROOT%{_javadir}
37c724
cp -p build/%{name}.jar \
37c724
  $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
37c724
37c724
# javadoc
37c724
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
37c724
pushd build/doc/javadoc
37c724
for f in `find -name \*.html -o -name \*.css`; do
37c724
  sed -i 's/\r//g' $f;
37c724
done
37c724
popd
37c724
cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
37c724
37c724
# manual
37c724
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
37c724
rm -rf docs/apidocs docs/clover
37c724
pushd docs
37c724
for f in `find -name \*.html -o -name \*.css -o -name \*.java`; do
37c724
  sed -i 's/\r//g' $f;
37c724
done
37c724
popd
37c724
cp -pr docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
37c724
tr -d \\r <LICENSE.txt >tmp.file; mv tmp.file LICENSE.txt
37c724
cp -p LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
37c724
37c724
# demo
37c724
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/classes/org/dom4j
37c724
cp -pr xml $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
37c724
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/src
37c724
cp -pr src/samples $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/src
37c724
cp -pr build/classes/org/dom4j/samples $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/classes/org/dom4j
37c724
install -m 755 run.sh $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
37c724
37c724
# POM and depmap
37c724
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
37c724
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
37c724
%add_maven_depmap
37c724
37c724
%files
37c724
%dir %{_docdir}/%{name}-%{version}
37c724
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
37c724
%{_javadir}/%{name}.jar
37c724
%{_mavenpomdir}/JPP-%{name}.pom
37c724
%{_mavendepmapfragdir}/%{name}
37c724
37c724
%files javadoc
37c724
%dir %{_docdir}/%{name}-%{version}
37c724
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
37c724
%{_javadocdir}/*
37c724
37c724
%files manual
37c724
%doc %{_docdir}/%{name}-%{version}
37c724
37c724
%files demo
37c724
%attr(0755,root,root) %{_datadir}/%{name}-%{version}/run.sh
37c724
%{_datadir}/%{name}-%{version}
37c724
37c724
%changelog
37c724
* Fri Aug 02 2013 Michal Srb <msrb@redhat.com> - 0:1.6.1-19
37c724
- Add create-tarball.sh script to SRPM
37c724
37c724
* Thu Jul 25 2013 Michal Srb <msrb@redhat.com> - 0:1.6.1-18
37c724
- Properly remove references to ConcurrentReaderHashMap
37c724
37c724
* Tue Jul 02 2013 Michal Srb <msrb@redhat.com> - 0:1.6.1-17
37c724
- Remove file with unclear licensing (Resolves: rhbz#976180)
37c724
37c724
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.6.1-16
37c724
- Rebuild to regenerate API documentation
37c724
- Resolves: CVE-2013-1571
37c724
37c724
* Wed Jun 19 2013 Michal Srb <msrb@redhat.com> - 0:1.6.1-15
37c724
- Install license file with javadoc subpackage
37c724
37c724
* Mon May  6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.6.1-14
37c724
- Remove XPP2 reader
37c724
37c724
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-13
37c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
37c724
37c724
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.6.1-12
37c724
- Add maven POM
37c724
37c724
* Mon Oct 29 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.6.1-11
37c724
- Cleanup source tarball from non-free content
37c724
- Resolves: rhbz#848875
37c724
37c724
* Fri Oct 12 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.6.1-10
37c724
- Disable test dependencies because tests are skipped
37c724
37c724
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-9
37c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
37c724
37c724
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.6.1-8
37c724
- Simplify packaging and remove old things.
37c724
37c724
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-7
37c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
37c724
37c724
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-6
37c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
37c724
37c724
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-5
37c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
37c724
37c724
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-4
37c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
37c724
37c724
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.1-3
37c724
- drop repotag
37c724
37c724
* Wed Oct 17 2007 Deepak Bhole <dbhole@redhat.com> 1.6.1-2jpp.3
37c724
- Resaolve bz#302321: Add copyright header that was accidentally removed.
37c724
37c724
* Mon Mar 26 2007 Nuno Santos <nsantos@redhat.com> - 0:1.6.1-2jpp.2
37c724
- fix unowned directory
37c724
37c724
* Wed Feb 14 2007 Jeff Johnston <jjohnstn@redhat.com> - 0:1.6.1-2jpp.1
37c724
- Resolves: #227049
37c724
- Updated per Fedora package review process
37c724
- Modified dom4j-1.6.1-build_xml.patch to include jaxp 1.2 apis on
37c724
  boot classpath
37c724
- Added new patch for javadocs
37c724
- Add buildrequires for jaxp = 1.2
37c724
37c724
* Mon Jan 30 2006 Ralph Apel <r.apel@r-apel.de> - 0:1.6.1-2jpp
37c724
- Change STAX dependency to free bea-stax and bea-stax-api
37c724
37c724
* Wed Aug 17 2005 Ralph Apel <r.apel@r-apel.de> - 0:1.6.1-1jpp
37c724
- Upgrade to 1.6.1
37c724
- Now requires xpp3 additionally to xpp2
37c724
37c724
* Thu Sep 09 2004 Ralph Apel <r.apel@r-apel.de> - 0:1.5-1jpp
37c724
- Upgrade to 1.5
37c724
- Drop saxpath requirement as this is now included in jaxen
37c724
37c724
* Fri Aug 20 2004 Ralph Apel <r.apel@r-apel.de> - 0:1.4-3jpp
37c724
- Upgrade to Ant 1.6.X
37c724
- Build with ant-1.6.2
37c724
37c724
* Tue Jul 06 2004 Ralph Apel <r.apel@r-apel.de> - 0:1.4-2jpp
37c724
- Replace non-free msv with free relaxngDatatype xsdlib isorelax msv-strict
37c724
- Relax some versioned dependencies
37c724
37c724
* Mon Jan 19 2004 Ralph Apel <r.apel@r-apel.de> - 0:1.4-1jpp
37c724
- First JPackage release