Blame SPECS/dom4j.spec

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