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 f6af6a4
Version:        1.4
Dr. Tilmann Bubeck f6af6a4
Release:        1%{?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 f6af6a4
Source0:        http://downloads.sourceforge.net/project/xmlunit/xmlunit%20for%20Java/XMLUnit%20for%20Java%201.4/xmlunit-1.4-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/
Permaine Cheung 2f7cab9
BuildRequires:  jpackage-utils >= 0:1.7.3
625f0f2
BuildRequires:  java-devel >= 1:1.6.0
Permaine Cheung 2f7cab9
BuildRequires:  ant >= 0:1.6.5
Permaine Cheung 2f7cab9
BuildRequires:  ant-junit
Permaine Cheung 2f7cab9
BuildRequires:  ant-trax
Permaine Cheung 2f7cab9
BuildRequires:  junit >= 0:3.8.1
Permaine Cheung 54e2ebb
BuildRequires:  xalan-j2
Permaine Cheung 54e2ebb
BuildRequires:  xerces-j2
Permaine Cheung 54e2ebb
BuildRequires:  xml-commons-apis
3f098e5
BuildRequires:  dblatex
3f098e5
BuildRequires:  docbook5-style-xsl
Permaine Cheung 54e2ebb
Requires:       junit >= 0:3.8
Permaine Cheung 54e2ebb
Requires:       xalan-j2
Permaine Cheung 54e2ebb
Requires:       xml-commons-apis
ca13e1a
Requires:       jpackage-utils
3f098e5
Group:          Development/Tools
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}
3f098e5
Group:          Documentation
ca13e1a
Requires:       jpackage-utils
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%description    javadoc
Permaine Cheung 54e2ebb
Javadoc for %{name}
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%prep
3f098e5
%setup -q 
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)
3f098e5
xmlxsl.lib=$(build-classpath xalan-j2 xalan-j2-serializer xerces-j2)
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
3f098e5
export CLASSPATH=$(build-classpath xalan-j2-serializer)
3203c51
ant -Dbuild.compiler=modern -Dfailonerror=false jar javadocs
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%install
Permaine Cheung 54e2ebb
rm -rf $RPM_BUILD_ROOT
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 2f7cab9
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
Permaine Cheung 54e2ebb
Permaine Cheung 2f7cab9
# poms
Permaine Cheung 2f7cab9
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
Permaine Cheung 2f7cab9
Permaine Cheung 2f7cab9
install -m 644 %{SOURCE1} \
Permaine Cheung 2f7cab9
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
Permaine Cheung 2f7cab9
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
# Javadoc
Permaine Cheung 54e2ebb
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
3f098e5
cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
Permaine Cheung 54e2ebb
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Permaine Cheung 54e2ebb
Permaine Cheung 2f7cab9
%post
Permaine Cheung 2f7cab9
%update_maven_depmap
Permaine Cheung 2f7cab9
Permaine Cheung 2f7cab9
%postun
Permaine Cheung 2f7cab9
%update_maven_depmap
Permaine Cheung 2f7cab9
Permaine Cheung 54e2ebb
%files
3f098e5
%defattr(-,root,root,-)
Permaine Cheung 54e2ebb
%{_javadir}/*
3203c51
%doc README.txt LICENSE.txt userguide/XMLUnit-Java.pdf 
Permaine Cheung 2f7cab9
%{_datadir}/maven2/poms/*
ca13e1a
%{_mavendepmapfragdir}/*
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%files javadoc
3f098e5
%defattr(-,root,root,-)
Permaine Cheung 54e2ebb
%doc %{_javadocdir}/%{name}-%{version}
Permaine Cheung 54e2ebb
%doc %{_javadocdir}/%{name}
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%changelog
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