Репозитории ALT
S: | 1.2.0-alt4_20jpp11 |
5.1: | 1.2.0-alt2_0.rc1.3jpp5 |
4.1: | 1.2.0-alt1_0.rc1.2jpp1.7 |
4.0: | 1.2.0-alt1_0.rc1.2jpp1.7 |
Группа :: Разработка/Java
Пакет: bea-stax
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define version 1.2.0
# 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.
#
%global apiver 1.0.1
Summary: Streaming API for XML
URL: http://stax.codehaus.org/Home
Source0: http://dist.codehaus.org/stax/distributions/stax-src-%{version}.zip
Source1: http://dist.codehaus.org/stax/jars/stax-%{version}.pom
Source2: http://dist.codehaus.org/stax/jars/stax-api-%{apiver}.pom
Name: bea-stax
Version: 1.2.0
Release: alt4_20jpp11
License: ASL 1.1 and ASL 2.0
BuildArch: noarch
BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: xerces-j2
BuildRequires: xalan-j2
Source44: import.info
Obsoletes: stax-bea <= 1.0-alt1
%description
The Streaming API for XML (StAX) is a groundbreaking
new Java API for parsing and writing XML easily and
efficiently.
%package api
Group: Development/Documentation
Summary: The StAX API
%description api
%{summary}
%package javadoc
Group: Development/Documentation
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
%{summary}
%prep
%setup -q -c -n %{name}-%{version}
# Convert CR+LF to LF
sed -i 's/\r//' ASF2.0.txt
cp -p %{SOURCE1} pom.xml
# Incorrectly scoped
%pom_remove_dep :junit
sed -i 's,source="1.2" target="1.2",source="1.6" target="1.6" encoding="iso8859-1",' build.xml
%build
#export LANG=C.ISO8859-1
ant all
%install
%mvn_file ':{*}' bea- at 1
%mvn_package :stax-api api
%mvn_alias :stax-api javax.xml.stream:stax-api
%mvn_artifact pom.xml build/stax-%{version}-dev.jar
%mvn_artifact %{SOURCE2} build/stax-api-%{apiver}.jar
%mvn_install
#-J build/javadoc
%files -f .mfiles
%doc --no-dereference ASF2.0.txt
%files api -f .mfiles-api
%doc --no-dereference ASF2.0.txt
#%files javadoc -f .mfiles-javadoc
#%doc --no-dereference ASF2.0.txt
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define version 1.2.0
# 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.
#
%global apiver 1.0.1
Summary: Streaming API for XML
URL: http://stax.codehaus.org/Home
Source0: http://dist.codehaus.org/stax/distributions/stax-src-%{version}.zip
Source1: http://dist.codehaus.org/stax/jars/stax-%{version}.pom
Source2: http://dist.codehaus.org/stax/jars/stax-api-%{apiver}.pom
Name: bea-stax
Version: 1.2.0
Release: alt4_20jpp11
License: ASL 1.1 and ASL 2.0
BuildArch: noarch
BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: xerces-j2
BuildRequires: xalan-j2
Source44: import.info
Obsoletes: stax-bea <= 1.0-alt1
%description
The Streaming API for XML (StAX) is a groundbreaking
new Java API for parsing and writing XML easily and
efficiently.
%package api
Group: Development/Documentation
Summary: The StAX API
%description api
%{summary}
%package javadoc
Group: Development/Documentation
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
%{summary}
%prep
%setup -q -c -n %{name}-%{version}
# Convert CR+LF to LF
sed -i 's/\r//' ASF2.0.txt
cp -p %{SOURCE1} pom.xml
# Incorrectly scoped
%pom_remove_dep :junit
sed -i 's,source="1.2" target="1.2",source="1.6" target="1.6" encoding="iso8859-1",' build.xml
%build
#export LANG=C.ISO8859-1
ant all
%install
%mvn_file ':{*}' bea- at 1
%mvn_package :stax-api api
%mvn_alias :stax-api javax.xml.stream:stax-api
%mvn_artifact pom.xml build/stax-%{version}-dev.jar
%mvn_artifact %{SOURCE2} build/stax-api-%{apiver}.jar
%mvn_install
#-J build/javadoc
%files -f .mfiles
%doc --no-dereference ASF2.0.txt
%files api -f .mfiles-api
%doc --no-dereference ASF2.0.txt
#%files javadoc -f .mfiles-javadoc
#%doc --no-dereference ASF2.0.txt
%changelog
…
Полный changelog можно просмотреть здесь