# Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # %define real jaxen %define dom4jver 1.6.1 Name: %{real}-bootstrap Version: 1.1 Release: 7.2%{?dist} Epoch: 0 Summary: A convenience package for build of dom4j License: BSD Url: http://jaxen.codehaus.org/ Group: Development/Libraries Source0: http://dist.codehaus.org/jaxen/distributions/jaxen-1.1-src.tar.gz # dom4j is needed for bootstrapping; we build a subset of it below. Source1: http://prdownloads.sourceforge.net/dom4j/dom4j-%{dom4jver}.tar.gz # Don't build or run the tests. This limits dependencies. Patch0: %{name}-notest.patch Requires: jdom >= 0:1.0-0.rc1.1jpp Requires: xalan-j2 Requires: xerces-j2 Requires: xom BuildRequires: ant >= 0:1.6, jpackage-utils >= 0:1.6, junit BuildRequires: jdom >= 0:1.0-0.rc1.1jpp BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xom BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Dom4j depends on a jaxen build with dom4j support. This package must only be installed in the rare event of having to rebuild dom4j. %prep %setup -q -n %{real}-%{version} %patch0 gzip -dc %{SOURCE1} | tar -xf - find . -name "*.jar" -exec rm -f {} \; %build export CLASSPATH=$(build-classpath \ jdom \ xalan-j2 \ xerces-j2 \ xom \ ) pushd dom4j-%{dom4jver}/src/java javac -sourcepath ../../../src/java/main:. \ org/dom4j/Attribute.java \ org/dom4j/Branch.java \ org/dom4j/CDATA.java \ org/dom4j/Comment.java \ org/dom4j/Document.java \ org/dom4j/DocumentException.java \ org/dom4j/Element.java \ org/dom4j/Namespace.java \ org/dom4j/Node.java \ org/dom4j/ProcessingInstruction.java \ org/dom4j/Text.java \ org/dom4j/io/SAXReader.java jar cf ../../dom4j.jar $(find . -name "*.class") popd export CLASSPATH=$(build-classpath \ jdom \ xalan-j2 \ xerces-j2 \ xom \ ):`pwd`/dom4j-%{dom4jver}/dom4j.jar ant -Dnoget=true %install rm -rf $RPM_BUILD_ROOT # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 target/%{real}-%{version}.jar \ $RPM_BUILD_ROOT%{_javadir} (cd $RPM_BUILD_ROOT%{_javadir} && for jar in %{real}*; do \ ln -sf ${jar} ${jar/-%{version}/}; done) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644,root,root,0755) %doc LICENSE.txt %{_javadir}/* %changelog * Thu Feb 14 2013 Fedora Release Engineering - 0:1.1-7.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0:1.1-6.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0:1.1-5.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0:1.1-4.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 0:1.1-3.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0:1.1-2.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway - 0:1.1-1.2 - drop repotag * Wed Feb 14 2007 Andrew Overholt 0:1.1-1jpp.1 - Bump to 1.1 final - Make release Xjpp.Y%{?dist} - Remove Distribution, Vendor - Fix Group - Remove maven stuff - Add cleaning of buildroot to beginning of %%install - Remove cleaning of buildroot from beginning of %%prep - Remove Provides: jaxen-bootstrap as it is implied - Remove %%section free - Use Fedora buildroot - Glob on %%{name} and not on %%{version} for symlinking * Wed Feb 15 2006 Ralph Apel 0:1.1-0.b7.3jpp - Add copyright notice to spec file * Mon Feb 13 2006 Ralph Apel 0:1.1-0.b7.2jpp - Adapt to Maven-1.1 - Create option to build without maven * Wed Aug 17 2005 Ralph Apel 0:1.1-0.b7.1jpp - Upgrade to 1.1-beta-7 - Now mavenized - Derived jaxen-bootstrap from new jaxen * Thu Sep 09 2004 Ralph Apel 0:1.1-0.b2.1jpp - Upgrade to 1.1-beta-2 - Drop saxpath requirement as saxpath is now included in jaxen * Sun Aug 23 2004 Randy Watler - 0:1.0-4jpp - Rebuild with ant-1.6.2 * Mon Jan 19 2004 Ralph Apel 0:1.0-3jpp - build against dom4j-1.4-1jpp - introduce manual and demo subpackages - patch org.jaxen.dom4j.DocumentNavigatorTest - include LICENSE in main package - run tests during build * Thu Jan 15 2004 Ralph Apel 0:1.0-2jpp - activate support for dom4j by renaming lib/dom4j-core.jar to .zip * Sun May 04 2003 David Walluck 0:1.0-1jpp - release