Permaine Cheung 2f7cab9
# Copyright (c) 2000-2007, JPackage Project
Permaine Cheung 54e2ebb
# All rights reserved.
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
# Redistribution and use in source and binary forms, with or without
Permaine Cheung 54e2ebb
# modification, are permitted provided that the following conditions
Permaine Cheung 54e2ebb
# are met:
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
# 1. Redistributions of source code must retain the above copyright
Permaine Cheung 54e2ebb
#    notice, this list of conditions and the following disclaimer.
Permaine Cheung 54e2ebb
# 2. Redistributions in binary form must reproduce the above copyright
Permaine Cheung 54e2ebb
#    notice, this list of conditions and the following disclaimer in the
Permaine Cheung 54e2ebb
#    documentation and/or other materials provided with the
Permaine Cheung 54e2ebb
#    distribution.
Permaine Cheung 54e2ebb
# 3. Neither the name of the JPackage Project nor the names of its
Permaine Cheung 54e2ebb
#    contributors may be used to endorse or promote products derived
Permaine Cheung 54e2ebb
#    from this software without specific prior written permission.
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Permaine Cheung 54e2ebb
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Permaine Cheung 54e2ebb
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Permaine Cheung 54e2ebb
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Permaine Cheung 54e2ebb
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Permaine Cheung 54e2ebb
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Permaine Cheung 54e2ebb
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Permaine Cheung 54e2ebb
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Permaine Cheung 54e2ebb
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Permaine Cheung 54e2ebb
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Permaine Cheung 54e2ebb
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
Name:           xmlunit
Dr. Tilmann Bubeck fe60075
Version:        1.5
b6adf38
Release:        3%{?dist}
Permaine Cheung 54e2ebb
Epoch:          0
Permaine Cheung 2f7cab9
Summary:        Provides classes to do asserts on xml
Permaine Cheung 2f7cab9
License:        BSD
Dr. Tilmann Bubeck fe60075
Source0:        http://downloads.sourceforge.net/xmlunit/xmlunit-1.5-src.zip
Permaine Cheung 2f7cab9
Source1:        http://repo1.maven.org/maven2/xmlunit/xmlunit/1.0/xmlunit-1.0.pom
Permaine Cheung 54e2ebb
URL:            http://xmlunit.sourceforge.net/
Stanislav Ochotnicky 0255ffa
BuildRequires:  jpackage-utils
625f0f2
BuildRequires:  java-devel >= 1:1.6.0
Stanislav Ochotnicky 0255ffa
BuildRequires:  ant
Permaine Cheung 2f7cab9
BuildRequires:  ant-junit
Stanislav Ochotnicky 0255ffa
BuildRequires:  junit
Permaine Cheung 54e2ebb
BuildRequires:  xalan-j2
Permaine Cheung 54e2ebb
BuildRequires:  xerces-j2
Permaine Cheung 54e2ebb
BuildRequires:  xml-commons-apis
Stanislav Ochotnicky 0255ffa
Stanislav Ochotnicky 0255ffa
Requires:       junit
Permaine Cheung 54e2ebb
Requires:       xalan-j2
Permaine Cheung 54e2ebb
Requires:       xml-commons-apis
ca13e1a
Requires:       jpackage-utils
Stanislav Ochotnicky 0255ffa
Permaine Cheung 54e2ebb
BuildArch:      noarch
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%description
Permaine Cheung 54e2ebb
XMLUnit extends JUnit to simplify unit testing of XML. It compares a control
Permaine Cheung 54e2ebb
XML document to a test document or the result of a transformation, validates
Permaine Cheung 54e2ebb
documents against a DTD, and (from v0.5) compares the results of XPath
Permaine Cheung 54e2ebb
expressions.
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%package        javadoc
Permaine Cheung 54e2ebb
Summary:        Javadoc for %{name}
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%description    javadoc
Permaine Cheung 54e2ebb
Javadoc for %{name}
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%prep
3f098e5
%setup -q 
b8fd3f2
sed -i /java.class.path/d build.xml
Permaine Cheung 54e2ebb
# remove all binary libs and javadocs
Permaine Cheung 54e2ebb
find . -name "*.jar" -exec rm -f {} \;
Permaine Cheung 54e2ebb
rm -rf doc
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
cat >build.properties <
Permaine Cheung 2f7cab9
junit.lib=$(build-classpath junit)
b8fd3f2
xmlxsl.lib=
Permaine Cheung 54e2ebb
test.report.dir=test
Permaine Cheung 54e2ebb
EOF
Permaine Cheung 54e2ebb
3f098e5
cat >docbook.properties <
3f098e5
db5.xsl=%{_datadir}/sgml/docbook/xsl-ns-stylesheets
3f098e5
EOF
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
#Fix wrong-file-end-of-line-encoding
3f098e5
sed -i 's/\r//g' README.txt LICENSE.txt
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%build
b8fd3f2
ant -Dbuild.compiler=modern -Dhaltonfailure=yes jar javadocs
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%install
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
mkdir -p $RPM_BUILD_ROOT%{_javadir}
3f098e5
install -m 0644 build/lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
Permaine Cheung 54e2ebb
Permaine Cheung 2f7cab9
# poms
Stanislav Ochotnicky 0255ffa
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
Permaine Cheung 2f7cab9
Permaine Cheung 2f7cab9
install -m 644 %{SOURCE1} \
Stanislav Ochotnicky 0255ffa
    $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
Permaine Cheung 2f7cab9
Stanislav Ochotnicky 0255ffa
%add_maven_depmap
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
# Javadoc
Stanislav Ochotnicky 0255ffa
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Stanislav Ochotnicky 0255ffa
cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Permaine Cheung 54e2ebb
b8fd3f2
%check
b8fd3f2
ant
b8fd3f2
Permaine Cheung 2f7cab9
Stanislav Ochotnicky 0255ffa
%files -f .mfiles
3203c51
%doc README.txt LICENSE.txt userguide/XMLUnit-Java.pdf 
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%files javadoc
Permaine Cheung 54e2ebb
%doc %{_javadocdir}/%{name}
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%changelog
b6adf38
* Wed Nov  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3
b6adf38
- Remove workaround for RPM bug #646523
b6adf38
6ede113
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-2
6ede113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6ede113
Dr. Tilmann Bubeck fe60075
* Fri Oct 11 2013 Dr. Tilmann Bubeck <tilmann@bubecks.de> - 0:1.5-1
Dr. Tilmann Bubeck fe60075
- update to upstream's xmlunit-1.5
Dr. Tilmann Bubeck fe60075
b8fd3f2
* Fri Sep 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4-4
b8fd3f2
- Enable test suite
b8fd3f2
- Resolves: rhbz#987412
b8fd3f2
fa24792
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-3
fa24792
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fa24792
Stanislav Ochotnicky 0255ffa
* Wed Jun 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.4-2
Stanislav Ochotnicky 0255ffa
- Update to latest packaging guidelines
Stanislav Ochotnicky 0255ffa
- Cleanup BuildRequires
Stanislav Ochotnicky 0255ffa
Dr. Tilmann Bubeck f6af6a4
* Fri Feb 15 2013 Dr. Tilmann Bubeck <t.bubeck@reinform.de> - 0:1.4-1
Dr. Tilmann Bubeck f6af6a4
- update to upstream's xmlunit-1.4
Dr. Tilmann Bubeck f6af6a4
03f2a38
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-7
03f2a38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
03f2a38
8ed8734
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-6
8ed8734
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ed8734
cdc173f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-5
cdc173f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cdc173f
a2cd7cc
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-4
a2cd7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a2cd7cc
3203c51
* Thu Dec 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-3
3203c51
- Build javadoc only.
3203c51
625f0f2
* Thu Dec 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-2
625f0f2
- BR java 1.6 to prevent gcj failure.
625f0f2
3f098e5
* Thu Dec 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-1
3f098e5
- Update to new upstream.
3f098e5
- Drop gcj.
3f098e5
- Rebuild docs.
3f098e5
ca13e1a
* Thu Mar 11 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:1.0-8.3
ca13e1a
- Added missing Requires jpackage-utils
ca13e1a
8b032fb
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-8.2
8b032fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8b032fb
31319b9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-7.2
31319b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
31319b9
cfbcb08
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.0-6.2
cfbcb08
- drop repotag
cfbcb08
c5eb55c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.0-6jpp.1
c5eb55c
- Autorebuild for GCC 4.3
c5eb55c
Permaine Cheung 2f7cab9
* Thu Jan 17 2008 Permaine Cheung <pcheung@redhat.com> - 0:1.0-5jpp.1
Permaine Cheung 2f7cab9
- Update to the same version as upstream
Permaine Cheung 2f7cab9
Permaine Cheung 2f7cab9
 Tue Dec 18 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.0-5jpp
Permaine Cheung 2f7cab9
- Add poms and depmap frags
Permaine Cheung 2f7cab9
- Make Vendor, Distribution based on macro
Permaine Cheung 2f7cab9
- Add gcj_support option
Permaine Cheung 2f7cab9
Permaine Cheung 54e2ebb
* Mon Mar 12 2007 Permaine Cheung <pcheung@redhat.com> - 0:1.0-4jpp.1
Permaine Cheung 54e2ebb
- Add missing BR, patch to build javadoc, and other rpmlint issues
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Mon May 08 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-4jpp
Permaine Cheung 54e2ebb
- First JPP-1.7 release
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-3jpp
Permaine Cheung 54e2ebb
- Build with ant-1.6.2
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Wed Dec 17 2003 Paul Nasrat <pauln at truemesh.com> - 0:1.0-2jpp
Permaine Cheung 54e2ebb
- Fix license and improved description
Permaine Cheung 54e2ebb
- Thanks to Ralph Apel who produced a spec - merged version info
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Wed Dec 17 2003 Paul Nasrat <pauln at truemesh.com> - 0:1.0-1jpp
Permaine Cheung 54e2ebb
- Initial Version