Репозиторий Sisyphus
Последнее обновление: 22 сентября 2018 | Пакетов: 18657 | Посещений: 12252362
en ru br
Репозитории ALT
S:0.1.0-alt1_17jpp8
5.1: 0.1.1-alt1_8jpp5
4.1: 0.1.1-alt1_2jpp1.7
4.0: 0.1.1-alt1_2jpp1.7
www.altlinux.org/Changes

Группа :: Разработка/Java
Пакет: annogen

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

BuildRequires: /proc
BuildRequires: jpackage-1.5-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.
#


# To make the tarball:

# svn export svn://svn.annogen.codehaus.org/annogen/scm/annogen/tags/release-0_1_0/ annogen

Name: annogen
Summary: Framework to help work with JSR175 Annotations
Version: 0.1.1
Release: alt1_2jpp1.7
Epoch: 0
URL: http://www.mathcs.emory.edu/dcl/util/backport-util-concurrent/
License: Creative Commons Public Domain
Group: Development/Java
Source: %{name}-%{version}.tar.gz

Patch0: annogen-no1.5.patch
Patch1: annogen-stax-jarnamefix.patch

BuildRequires: jpackage-utils ant junit
BuildRequires: antlr >= 0:2.7.4
BuildRequires: findbugs >= 0:0.9.1
BuildRequires: bcel >= 0:5.1
BuildRequires: bea-stax-api >= 0:1.2.0
BuildRequires: bea-stax >= 0:1.2.0
BuildRequires: dom4j >= 0:1.6.1
BuildRequires: qdox >= 0:1.4
BuildRequires: xerces-j2 >= 0:2.7.1
Requires: antlr >= 0:2.7.4
Requires: bcel >= 0:5.1
Requires: bea-stax-api >= 0:1.2.0
Requires: bea-stax >= 0:1.2.0
Requires: dom4j >= 0:1.6.1
Requires: findbugs >= 0:0.9.1
Requires: qdox >= 0:1.4
Requires: xerces-j2 >= 0:2.7.1

BuildArch: noarch

%description
Annogen is a framework which helps you work with JSR175 Annotations.
In a nutshell, Annogen generates a proxy layer in front of your Annotations.

%package javadoc
Group:          Development/Documentation
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}

find . -name '*.?ar' | xargs rm -f

build-jar-repository -s -p external/lib \
antlr \
bcel \
bea-stax-api \
bea-stax-ri \
dom4j \
qdox \
   junit \
xerces-j2

build-jar-repository -s -p external/findbugs \
findbugs/lib/findbugs.jar \
findbugs/lib/findbugs-ant.jar \
findbugs/lib/findbugsGUI \
findbugs/plugin/coreplugin.jar

%patch0
%patch1

%build
unset CLASSPATH
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 distribution

%install

# jars

install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 build/distribution/%{name}-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# javadoc

install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/distribution/docs/* \
   $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
   rm -f %{_javadocdir}/%{name}
fi

%files
%{_javadir}

%files javadoc
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin