|
Matt Wringe |
352ed05 |
# Copyright (c) 2000-2005, JPackage Project
|
|
Matt Wringe |
352ed05 |
# All rights reserved.
|
|
Matt Wringe |
352ed05 |
#
|
|
Matt Wringe |
352ed05 |
# Redistribution and use in source and binary forms, with or without
|
|
Matt Wringe |
352ed05 |
# modification, are permitted provided that the following conditions
|
|
Matt Wringe |
352ed05 |
# are met:
|
|
Matt Wringe |
352ed05 |
#
|
|
Matt Wringe |
352ed05 |
# 1. Redistributions of source code must retain the above copyright
|
|
Matt Wringe |
352ed05 |
# notice, this list of conditions and the following disclaimer.
|
|
Matt Wringe |
352ed05 |
# 2. Redistributions in binary form must reproduce the above copyright
|
|
Matt Wringe |
352ed05 |
# notice, this list of conditions and the following disclaimer in the
|
|
Matt Wringe |
352ed05 |
# documentation and/or other materials provided with the
|
|
Matt Wringe |
352ed05 |
# distribution.
|
|
Matt Wringe |
352ed05 |
# 3. Neither the name of the JPackage Project nor the names of its
|
|
Matt Wringe |
352ed05 |
# contributors may be used to endorse or promote products derived
|
|
Matt Wringe |
352ed05 |
# from this software without specific prior written permission.
|
|
Matt Wringe |
352ed05 |
#
|
|
Matt Wringe |
352ed05 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
Matt Wringe |
352ed05 |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
Matt Wringe |
352ed05 |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
Matt Wringe |
352ed05 |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
Matt Wringe |
352ed05 |
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
Matt Wringe |
352ed05 |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
Matt Wringe |
352ed05 |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
Matt Wringe |
352ed05 |
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
Matt Wringe |
352ed05 |
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
Matt Wringe |
352ed05 |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
Matt Wringe |
352ed05 |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Matt Wringe |
352ed05 |
#
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%define _with_gcj_support 1
|
|
Matt Wringe |
352ed05 |
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
# If you don't want to build with maven, and use straight ant instead,
|
|
Matt Wringe |
352ed05 |
# give rpmbuild option '--without maven'
|
|
Matt Wringe |
352ed05 |
%define _without_maven 1
|
|
Matt Wringe |
352ed05 |
%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
|
|
Matt Wringe |
352ed05 |
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%define section free
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
Name: plexus-velocity
|
|
Matt Wringe |
352ed05 |
Version: 1.1.2
|
|
|
50d9748 |
Release: 4.2%{?dist}
|
|
Matt Wringe |
352ed05 |
Epoch: 0
|
|
Matt Wringe |
352ed05 |
Summary: Plexus Velocity Component
|
|
Matt Wringe |
352ed05 |
License: MIT
|
|
Matt Wringe |
352ed05 |
Group: Development/Java
|
|
Matt Wringe |
352ed05 |
URL: http://plexus.codehaus.org/
|
|
Matt Wringe |
352ed05 |
Source0: plexus-velocity-1.1.2-src.tar.gz
|
|
Matt Wringe |
352ed05 |
# svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-velocity-1.1.2/
|
|
Matt Wringe |
352ed05 |
# tar czf plexus-velocity-1.1.2-src.tar.gz plexus-velocity-1.1.2/
|
|
Matt Wringe |
352ed05 |
Source1: plexus-velocity-1.1.2-build.xml
|
|
Matt Wringe |
352ed05 |
Source2: plexus-velocity-1.1.2-project.xml
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%if ! %{gcj_support}
|
|
Matt Wringe |
352ed05 |
BuildArch: noarch
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
BuildRequires: ant >= 0:1.6
|
|
Matt Wringe |
352ed05 |
BuildRequires: jpackage-utils >= 0:1.6
|
|
Matt Wringe |
352ed05 |
%if %{with_maven}
|
|
Matt Wringe |
352ed05 |
BuildRequires: maven >= 0:1.1
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
BuildRequires: ant-nodeps
|
|
Matt Wringe |
352ed05 |
BuildRequires: classworlds >= 0:1.1
|
|
Matt Wringe |
352ed05 |
BuildRequires: jakarta-commons-collections
|
|
Matt Wringe |
352ed05 |
BuildRequires: jakarta-commons-logging
|
|
Matt Wringe |
352ed05 |
BuildRequires: plexus-container-default
|
|
Matt Wringe |
352ed05 |
BuildRequires: plexus-utils
|
|
Matt Wringe |
352ed05 |
BuildRequires: velocity
|
|
Matt Wringe |
352ed05 |
Requires: classworlds >= 0:1.1
|
|
Matt Wringe |
352ed05 |
Requires: jakarta-commons-collections
|
|
Matt Wringe |
352ed05 |
Requires: plexus-container-default
|
|
Matt Wringe |
352ed05 |
Requires: plexus-utils
|
|
Matt Wringe |
352ed05 |
Requires: velocity
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%if %{gcj_support}
|
|
Matt Wringe |
352ed05 |
BuildRequires: java-gcj-compat-devel
|
|
Matt Wringe |
352ed05 |
Requires(post): java-gcj-compat
|
|
Matt Wringe |
352ed05 |
Requires(postun): java-gcj-compat
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%description
|
|
Matt Wringe |
352ed05 |
The Plexus project seeks to create end-to-end developer tools for
|
|
Matt Wringe |
352ed05 |
writing applications. At the core is the container, which can be
|
|
Matt Wringe |
352ed05 |
embedded or for a full scale application server. There are many
|
|
Matt Wringe |
352ed05 |
reusable components for hibernate, form processing, jndi, i18n,
|
|
Matt Wringe |
352ed05 |
velocity, etc. Plexus also includes an application server which
|
|
Matt Wringe |
352ed05 |
is like a J2EE application server, without all the baggage.
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%package javadoc
|
|
Matt Wringe |
352ed05 |
Summary: Javadoc for %{name}
|
|
Matt Wringe |
352ed05 |
Group: Development/Documentation
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%description javadoc
|
|
Matt Wringe |
352ed05 |
Javadoc for %{name}.
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%prep
|
|
Matt Wringe |
352ed05 |
%setup -q -n plexus-velocity-1.1.2
|
|
Matt Wringe |
352ed05 |
for j in $(find . -name "*.jar"); do
|
|
Matt Wringe |
352ed05 |
mv $j $j.no
|
|
Matt Wringe |
352ed05 |
done
|
|
Matt Wringe |
352ed05 |
cp %{SOURCE1} build.xml
|
|
Matt Wringe |
352ed05 |
cp %{SOURCE2} project.xml
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%build
|
|
Matt Wringe |
352ed05 |
%if %{with_maven}
|
|
Matt Wringe |
352ed05 |
#mkdir -p .maven/repository/maven/jars
|
|
Matt Wringe |
352ed05 |
#build-jar-repository .maven/repository/maven/jars \
|
|
Matt Wringe |
352ed05 |
#maven-jelly-tags
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
#mkdir -p .maven/repository/JPP/jars
|
|
Matt Wringe |
352ed05 |
#build-jar-repository -s -p .maven/repository/JPP/jars \
|
|
Matt Wringe |
352ed05 |
#classworlds \
|
|
Matt Wringe |
352ed05 |
#commons-collections \
|
|
Matt Wringe |
352ed05 |
#commons-logging-api \
|
|
Matt Wringe |
352ed05 |
#plexus/container-default \
|
|
Matt Wringe |
352ed05 |
#plexus/utils \
|
|
Matt Wringe |
352ed05 |
#velocity \
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
export MAVEN_HOME_LOCAL=$(pwd)/.maven
|
|
Matt Wringe |
352ed05 |
maven \
|
|
Matt Wringe |
352ed05 |
-Dmaven.repo.remote=file:/usr/share/maven/repository \
|
|
Matt Wringe |
352ed05 |
-Dmaven.home.local=$MAVEN_HOME_LOCAL \
|
|
Matt Wringe |
352ed05 |
jar:install javadoc
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%else
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
mkdir -p target/lib
|
|
Matt Wringe |
352ed05 |
build-jar-repository -s -p target/lib \
|
|
Matt Wringe |
352ed05 |
classworlds \
|
|
Matt Wringe |
352ed05 |
commons-collections \
|
|
Matt Wringe |
352ed05 |
commons-logging-api \
|
|
Matt Wringe |
352ed05 |
plexus/container-default \
|
|
Matt Wringe |
352ed05 |
plexus/utils \
|
|
Matt Wringe |
352ed05 |
velocity \
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
ant jar javadoc
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%install
|
|
Matt Wringe |
352ed05 |
rm -rf $RPM_BUILD_ROOT
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
# jars
|
|
Matt Wringe |
352ed05 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus
|
|
Matt Wringe |
352ed05 |
install -pm 644 target/%{name}-%{version}.jar \
|
|
Matt Wringe |
352ed05 |
$RPM_BUILD_ROOT%{_javadir}/plexus/velocity-%{version}.jar
|
|
Matt Wringe |
352ed05 |
(cd $RPM_BUILD_ROOT%{_javadir}/plexus && for jar in *-%{version}*; \
|
|
Matt Wringe |
352ed05 |
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
# javadoc
|
|
Matt Wringe |
352ed05 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Matt Wringe |
352ed05 |
cp -pr target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Matt Wringe |
352ed05 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%if %{gcj_support}
|
|
Matt Wringe |
352ed05 |
%{_bindir}/aot-compile-rpm
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%clean
|
|
Matt Wringe |
352ed05 |
rm -rf $RPM_BUILD_ROOT
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%if %{gcj_support}
|
|
Matt Wringe |
352ed05 |
%post
|
|
Matt Wringe |
352ed05 |
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
Matt Wringe |
352ed05 |
then
|
|
Matt Wringe |
352ed05 |
%{_bindir}/rebuild-gcj-db
|
|
Matt Wringe |
352ed05 |
fi
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%if %{gcj_support}
|
|
Matt Wringe |
352ed05 |
%postun
|
|
Matt Wringe |
352ed05 |
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
Matt Wringe |
352ed05 |
then
|
|
Matt Wringe |
352ed05 |
%{_bindir}/rebuild-gcj-db
|
|
Matt Wringe |
352ed05 |
fi
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%files
|
|
Matt Wringe |
352ed05 |
%defattr(-,root,root,-)
|
|
Matt Wringe |
352ed05 |
%{_javadir}/*
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%if %{gcj_support}
|
|
Matt Wringe |
352ed05 |
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
|
|
Matt Wringe |
352ed05 |
%attr(-,root,root) %{_libdir}/gcj/%{name}/velocity-1.1.2.jar.*
|
|
Matt Wringe |
352ed05 |
%endif
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%files javadoc
|
|
Matt Wringe |
352ed05 |
%defattr(-,root,root,-)
|
|
Matt Wringe |
352ed05 |
%doc %{_javadocdir}/*
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
%changelog
|
|
|
50d9748 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-4.2
|
|
|
50d9748 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
50d9748 |
|
|
|
57edb44 |
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1.2-3.2
|
|
|
57edb44 |
- drop repotag
|
|
|
57edb44 |
|
|
|
bb7cf90 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.1.2-3jpp.1
|
|
|
bb7cf90 |
- Autorebuild for GCC 4.3
|
|
|
bb7cf90 |
|
|
Matt Wringe |
352ed05 |
* Fri Feb 16 2007 Tania Bento <tbento@redhat.com> - 0:1.1.2-2jpp.1
|
|
Matt Wringe |
352ed05 |
- Fixed %%License.
|
|
Matt Wringe |
352ed05 |
- Fixed %%BuildRoot.
|
|
Matt Wringe |
352ed05 |
- Fixed %%Release.
|
|
Matt Wringe |
352ed05 |
- Removed the %%post and %%postun for javadoc.
|
|
Matt Wringe |
352ed05 |
- Removed %%Vendor.
|
|
Matt Wringe |
352ed05 |
- Removed %%Distribution.
|
|
Matt Wringe |
352ed05 |
- Removed "%%define section free".
|
|
Matt Wringe |
352ed05 |
- Added the gcj support option.
|
|
Matt Wringe |
352ed05 |
- Added BR for jakarta-commons-logging.
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
* Wed May 17 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1.2-2jpp
|
|
Matt Wringe |
352ed05 |
- First JPP-1.7 release
|
|
Matt Wringe |
352ed05 |
|
|
Matt Wringe |
352ed05 |
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.1.2-1jpp
|
|
Matt Wringe |
352ed05 |
- First JPackage build
|
|
Matt Wringe |
352ed05 |
|