Blame SPECS/xmlunit.spec

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