Blame SPECS/dom4j.spec

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