Group :: Development/Java
RPM: saxpath
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Packager: Igor Vlasenko <viy at altlinux.ru>
BuildRequires: /proc
BuildRequires: jpackage-1.5-compat
# Copyright (c) 2000-2008, 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.
#
Name: saxpath
Version: 1.0
Release: alt1_3jpp5
Epoch: 0
Summary: Java XPath engine for use on a variety of XML object models
License: Open Source
URL: http://sourceforge.net/projects/saxpath/
Group: Development/Java
Source0: http://downloads.sourceforge.net/saxpath/saxpath-%{version}.tar.gz
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.pom
Requires: xalan-j2
Requires: xerces-j2
BuildRequires: ant
BuildRequires: ant-trax
BuildRequires: jpackage-utils
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildArch: noarch
%description
SAXPath is a Java XPath engine for use on a variety of XML object models
including dom4j, DOM and JavaBeans.
%package manual
Summary: Manual for %{name}
Group: Development/Java
%description manual
Documentation for %{name}.
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Documentation
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{name}-%{version}-FCS
mkdir -p src/conf
cat >> src/conf/MANIFEST.MF << EOF
Manifest-Version: 1.0
Extension-Name: org.saxpath
Specification-Title: saxpth
Specification-Version: 1.0 FCS
Specification-Vendor: werken digital.
Created-By: Ant 1.4.1
Implementation-Vendor: werken digital.
Implementation-Version: 1.0
Implementation-Title: saxpath
EOF
find . -name "*.jar" | xargs rm
%build
export CLASSPATH=$(build-classpath xalan-j2 xerces-j2)
export OPT_JAR_LIST="jaxp_transform_impl ant/ant-trax xalan-j2-serializer"
%{ant} all
%install
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 build/%{name}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap saxpath %{name} %{version} JPP %{name}
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%doc build/doc/{*.css,*.html,images,style}
%{_javadir}/*
%{_datadir}/maven2/*
%{_mavendepmapfragdir}/*
%files javadoc
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%changelog
…
Full changelog you can see here
BuildRequires: /proc
BuildRequires: jpackage-1.5-compat
# Copyright (c) 2000-2008, 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.
#
Name: saxpath
Version: 1.0
Release: alt1_3jpp5
Epoch: 0
Summary: Java XPath engine for use on a variety of XML object models
License: Open Source
URL: http://sourceforge.net/projects/saxpath/
Group: Development/Java
Source0: http://downloads.sourceforge.net/saxpath/saxpath-%{version}.tar.gz
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.pom
Requires: xalan-j2
Requires: xerces-j2
BuildRequires: ant
BuildRequires: ant-trax
BuildRequires: jpackage-utils
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildArch: noarch
%description
SAXPath is a Java XPath engine for use on a variety of XML object models
including dom4j, DOM and JavaBeans.
%package manual
Summary: Manual for %{name}
Group: Development/Java
%description manual
Documentation for %{name}.
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Documentation
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{name}-%{version}-FCS
mkdir -p src/conf
cat >> src/conf/MANIFEST.MF << EOF
Manifest-Version: 1.0
Extension-Name: org.saxpath
Specification-Title: saxpth
Specification-Version: 1.0 FCS
Specification-Vendor: werken digital.
Created-By: Ant 1.4.1
Implementation-Vendor: werken digital.
Implementation-Version: 1.0
Implementation-Title: saxpath
EOF
find . -name "*.jar" | xargs rm
%build
export CLASSPATH=$(build-classpath xalan-j2 xerces-j2)
export OPT_JAR_LIST="jaxp_transform_impl ant/ant-trax xalan-j2-serializer"
%{ant} all
%install
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 build/%{name}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap saxpath %{name} %{version} JPP %{name}
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%doc build/doc/{*.css,*.html,images,style}
%{_javadir}/*
%{_datadir}/maven2/*
%{_mavendepmapfragdir}/*
%files javadoc
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%changelog
…
Full changelog you can see here