Blame SPECS/xmlunit.spec

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