Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37898760
en ru br
Репозитории ALT
5.1: 2.7-alt1_1jpp5
4.1: 1.0-alt1_2jpp1.7
4.0: 1.0-alt1_2jpp1.7
www.altlinux.org/Changes

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

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

Packager: Igor Vlasenko <viy at altlinux.ru>
BuildRequires: /proc
BuildRequires: jpackage-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.
#


Summary: JAMon Java Application Monitor
URL: http://jamonapi.sourceforge.net/
Source0:        jamonapi-2.7-src.tar.gz
# cvs -d:pserver:anonymous at jamonapi.cvs.sourceforge.net:/cvsroot/jamonapi login
# cvs -z3 -d:pserver:anonymous at jamonapi.cvs.sourceforge.net:/cvsroot/jamonapi export -r v2_70 jamonapi
Source1:        jamonapi-catalina_tomcat4.jar

Name: jamonapi
Version: 2.7
Release: alt1_1jpp5
Epoch: 0
License: BSD-style License
Group: Development/Java
#Vendor: JPackage Project
#Distribution: JPackage
BuildArch: noarch
BuildRequires: jpackage-utils >= 0:1.7.5
BuildRequires: ant >= 0:1.6.5
BuildRequires: hsqldb
BuildRequires: interceptor_3_0_api
BuildRequires: jakarta-oro
BuildRequires: jetty6-core
BuildRequires: log4j
BuildRequires: servlet_2_4_api
BuildRequires: tomcat5-server-lib

Requires: jpackage-utils >= 0:1.7.5
Requires: hsqldb
Requires: interceptor_3_0_api
Requires: jakarta-oro
Requires: log4j
Requires: servlet_2_4_api

%description
The Java Application Monitor (JAMon) is a free, simple,
high performance, thread safe, Java API that allows
developers to easily monitor production applications.
JAMon can be used to determine application performance
bottlenecks, user/application interactions, and application
scalability. JAMon gathers summary statistics such as hits,
execution times (total, average, minimum, maximum, standard
deviation), and simultaneous application requests. JAMon
statistics are displayed in the clickable JAMon Report.

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

%description javadoc
%{summary}.

%package manual
Summary:        Documents for %{name}
Group:          Development/Documentation

%description manual
%{summary}.

%prep
%setup -q -n %{name}
for j in $(find . -name "*.jar"); do
   mv $j $j.no
done
ln -sf $(build-classpath ant) lib
ln -sf $(build-classpath tomcat5/catalina) lib
cp %{SOURCE1} lib/catalina_tomcat4.jar
ln -sf $(build-classpath tomcat5/catalina-optional) lib
#fdsapi-1.2.jar.no
ln -sf $(build-classpath hsqldb) lib
ln -sf $(build-classpath oro) lib
ln -sf $(build-classpath interceptor_3_0_api) lib/javaee.jar
ln -sf $(build-classpath jetty6/jetty6) lib
ln -sf $(build-classpath jetty6/jetty6-util) lib
ln -sf $(build-classpath log4j) lib
ln -sf $(build-classpath servlet_2_4_api) lib



%build
export CLASSPATH=

ant -f src/ant/build.xml dist javadoc

%install

# jar

install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
install -m 0644 dist/jamon-%{version}.jar \
                  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 0644 dist/jamontomcat-%{version}.jar \
                  $RPM_BUILD_ROOT%{_javadir}/%{name}-tomcat-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ln -s %{name}-tomcat-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tomcat.jar

# war

install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 0644 dist/jamon.war \
                  $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.war

# javadoc

install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr src/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# manual

install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr src/JAMonUsersGuide $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -p src/JAMonUsersGuide/JAMonLicense.html $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}


%files
%{_javadir}/*
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/JAMonLicense.html
%{_datadir}/%{name}

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

%files manual
%{_docdir}/%{name}-%{version}/JAMonUsersGuide

%changelog

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

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