ALT Linux repos
S: | 1.0-alt2_0.28.b3_xalan2.svn313293jpp8 |
5.0: | 1.0-alt1_0.b3_xalan2.3jpp5 |
4.1: | 1.0-alt1_0.b3_xalan2.2jpp1.7 |
4.0: | 1.0-alt1_0.b3_xalan2.2jpp1.7 |
Group :: Development/Java
RPM: xml-stylebook
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
BuildRequires: /proc
BuildRequires: jpackage-1.4-compat
# 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 section devel
Summary: Apache XML Stylebook
Name: xml-stylebook
Version: 1.0
Release: alt1_0.b3_xalan2.2jpp1.7
Epoch: 0
License: Apache Software License
URL: http://xml.apache.org
Group: Development/Java
Source0: xml-stylebook-1.0-b2-src.tar.gz
# cvs -d :pserver:anoncvs at cvs.apache.org:/home/cvspublic login
# cvs -d :pserver:anoncvs at cvs.apache.org:/home/cvspublic export -r HEAD xml-stylebook
#Patch0: xpp2-build_xml.patch
BuildRequires: ant >= 0:1.6 ant-junit >= 0:1.6 jpackage-utils >= 0:1.5
BuildRequires: xml-commons-apis
Requires: xml-commons-apis
Requires: xalan-j2
BuildArch: noarch
Provides: stylebook = %{name}-%{version}
Obsoletes: stylebook < 1.0-alt1
%description
XML Apache Stylebook.
%prep
%setup -q -n %{name}
# remove all binary libs
for j in $(find . -name "*.jar"); do
mv $j $j.no
done
#%patch0 -b .sav
%build
#export OPT_JAR_LIST="ant/ant-junit junit"
#export CLASSPATH=$(build-classpath xml-commons-apis)
ant
%install
# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p bin/stylebook-1.0-b3_xalan-2.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
ln -s xml-stylebook.jar $RPM_BUILD_ROOT/%{_javadir}/stylebook.jar
%files
%{_javadir}/stylebook.jar
%doc LICENSE.txt
%{_javadir}/*.jar
%changelog
…
Full changelog you can see here
BuildRequires: jpackage-1.4-compat
# 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 section devel
Summary: Apache XML Stylebook
Name: xml-stylebook
Version: 1.0
Release: alt1_0.b3_xalan2.2jpp1.7
Epoch: 0
License: Apache Software License
URL: http://xml.apache.org
Group: Development/Java
Source0: xml-stylebook-1.0-b2-src.tar.gz
# cvs -d :pserver:anoncvs at cvs.apache.org:/home/cvspublic login
# cvs -d :pserver:anoncvs at cvs.apache.org:/home/cvspublic export -r HEAD xml-stylebook
#Patch0: xpp2-build_xml.patch
BuildRequires: ant >= 0:1.6 ant-junit >= 0:1.6 jpackage-utils >= 0:1.5
BuildRequires: xml-commons-apis
Requires: xml-commons-apis
Requires: xalan-j2
BuildArch: noarch
Provides: stylebook = %{name}-%{version}
Obsoletes: stylebook < 1.0-alt1
%description
XML Apache Stylebook.
%prep
%setup -q -n %{name}
# remove all binary libs
for j in $(find . -name "*.jar"); do
mv $j $j.no
done
#%patch0 -b .sav
%build
#export OPT_JAR_LIST="ant/ant-junit junit"
#export CLASSPATH=$(build-classpath xml-commons-apis)
ant
%install
# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p bin/stylebook-1.0-b3_xalan-2.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
ln -s xml-stylebook.jar $RPM_BUILD_ROOT/%{_javadir}/stylebook.jar
%files
%{_javadir}/stylebook.jar
%doc LICENSE.txt
%{_javadir}/*.jar
%changelog
…
Full changelog you can see here