Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
xmlunit
xmlunit.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xmlunit.spec of Package xmlunit
# # spec file for package xmlunit # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ %define section free Name: xmlunit Version: 1.3 Release: 1 Epoch: 0 Summary: Provides classes to do asserts on xml License: BSD Style Software License Source0: http://download.sourceforge.net/xmlunit/%{name}-%{version}-src.zip # Remove # Patch0: %%{name}-build.xml.diff # Patch1: %{name}-docbook.xml.diff URL: http://xmlunit.sourceforge.net/ BuildRequires: jpackage-utils >= 0:1.6 BuildRequires: ant >= 0:1.6 BuildRequires: junit >= 0:3.8 BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xml-commons-apis xml-commons-resolver BuildRequires: docbook5-xsl-stylesheets # Creates an error, if we try to build PDF, so disalbled for now: # BuildRequires: dblatex %if %defined suse_version BuildRequires: unzip java-devel ant-junit ant-trax %endif Requires: junit >= 0:3.8 Requires: xalan-j2 Requires: xml-commons-apis Requires: jaxp_parser_impl Group: Development/Libraries/Java BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Vendor: JPackage Project Distribution: JPackage %description XMLUnit extends JUnit to simplify unit testing of XML. It compares a control XML document to a test document or the result of a transformation, validates documents against a DTD, and (from v0.5) compares the results of XPath expressions. %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation %description javadoc Javadoc for %{name} %prep %setup -q -n %{name}-%{version} # %%patch0 -p1 %patch1 -p1 # remove all binary libs and javadocs find . -name "*.jar" -exec rm -f {} \; rm -rf doc cat >build.properties <<EOF junit.lib=$(build-classpath junit) xmlxsl.lib=$(build-classpath xalan-j2 xerces-j2) test.report.dir=test EOF %build export CLASSPATH=$CLASSPATH:$(build-classpath xalan-j2-serializer) # Creates an error, if we try to build PDF or HTML ant -Dbuild.compiler=modern javadocs jar %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p build/lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ # Jar versioning (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # Javadoc mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr build/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} THIS=$PWD pushd $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} # Find all directories: find -type d | sed 's#^\./#%doc %dir %{_javadocdir}/%{name}-%{version}/#g' > $THIS/javadoc-filelist.txt # Create the filelist: find -type f | sed 's#^\./#%doc %{_javadocdir}/%{name}-%{version}/#g' >> $THIS/javadoc-filelist.txt # Remove first line which contains only a "." sed -i '1d' $THIS/javadoc-filelist.txt popd %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %files %defattr(0644,root,root,0755) %{_javadir}/* %doc README.txt LICENSE.txt # %%doc userguide/XMLUnit.pdf userguide/html/ %files javadoc -f javadoc-filelist.txt %defattr(0644,root,root,0755) %doc %{_javadocdir}/%{name} %doc %dir %{_javadocdir}/%{name}-%{version} %changelog * Mon May 08 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-4jpp - First JPP-1.7 release * Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-3jpp - Build with ant-1.6.2 * Wed Dec 17 2003 Paul Nasrat <pauln at truemesh.com> - 0:1.0-2jpp - Fix license and improved description - Thanks to Ralph Apel who produced a spec - merged version info * Wed Dec 17 2003 Paul Nasrat <pauln at truemesh.com> - 0:1.0-1jpp - Initial Version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor