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
Andrew Overholt e7250ff
%define parent plexus
Andrew Overholt e7250ff
%define subname velocity
Matt Wringe 352ed05
Matt Wringe 352ed05
Name:           plexus-velocity
5d3fcd2
Version:        1.1.8
9c17829
Release:        10%{?dist}
Matt Wringe 352ed05
Epoch:          0
Matt Wringe 352ed05
Summary:        Plexus Velocity Component
Andrew Overholt e7250ff
License:        ASL 2.0
Matt Wringe 352ed05
Group:          Development/Java
Matt Wringe 352ed05
URL:            http://plexus.codehaus.org/
5d3fcd2
# svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-velocity-1.1.8/
5d3fcd2
# tar czf plexus-velocity-1.1.8-src.tar.gz plexus-velocity-1.1.8/
Andrew Overholt e7250ff
Source0:        plexus-velocity-%{version}-src.tar.gz
Matt Wringe 352ed05
Matt Wringe 352ed05
BuildArch:      noarch
Andrew Overholt e7250ff
BuildRequires:  jpackage-utils >= 0:1.7.2
Matt Wringe 352ed05
BuildRequires:  ant >= 0:1.6
3fcd896
BuildRequires:  java-devel >= 1:1.6.0
Jaromir Capik 5d08722
BuildRequires:  maven
Jaromir Capik 5d08722
BuildRequires:  maven-compiler-plugin
Jaromir Capik 5d08722
BuildRequires:  maven-install-plugin
Jaromir Capik 5d08722
BuildRequires:  maven-jar-plugin
Jaromir Capik 5d08722
BuildRequires:  maven-javadoc-plugin
Jaromir Capik 5d08722
BuildRequires:  maven-resources-plugin
3fcd896
BuildRequires:  maven-surefire-plugin
b005082
BuildRequires:  maven-surefire-provider-junit
543911b
BuildRequires:  maven-doxia-sitetools
Andrew Overholt d2a6028
BuildRequires:  ant-contrib
Matt Wringe 352ed05
BuildRequires:  classworlds >= 0:1.1
3fcd896
BuildRequires:  apache-commons-collections
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
3fcd896
Requires:  apache-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
%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}
3fcd896
Group:          Documentation
Matt Wringe 352ed05
Matt Wringe 352ed05
%description javadoc
Matt Wringe 352ed05
Javadoc for %{name}.
Matt Wringe 352ed05
Matt Wringe 352ed05
%prep
Andrew Overholt e7250ff
%setup -q -n plexus-velocity-%{version}
Matt Wringe 352ed05
for j in $(find . -name "*.jar"); do
Matt Wringe 352ed05
        mv $j $j.no
Matt Wringe 352ed05
done
Matt Wringe 352ed05
Matt Wringe 352ed05
%build
Andrew Overholt e7250ff
    # Use normal pom for now
Andrew Overholt e7250ff
    rm -f release-pom.xml
Jaromir Capik 5d08722
    mvn-rpmbuild \
Andrew Overholt e7250ff
        -e \
Jaromir Capik 5d08722
        install javadoc:aggregate
Matt Wringe 352ed05
Matt Wringe 352ed05
%install
Matt Wringe 352ed05
# jars
Jaromir Capik 5d08722
install -Dpm 644 target/%{name}-%{version}.jar \
Jaromir Capik 5d08722
   %{buildroot}/%{_javadir}/%{parent}/%{subname}.jar
Matt Wringe 352ed05
Andrew Overholt e7250ff
# poms
Jaromir Capik 5d08722
install -Dpm 644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{name}.pom
Jaromir Capik 5d08722
%add_maven_depmap JPP.%{name}.pom %{parent}/%{subname}.jar
Andrew Overholt e7250ff
Matt Wringe 352ed05
# javadoc
Jaromir Capik 5d08722
install -d -m 755 %{buildroot}/%{_javadocdir}/%{name}
Jaromir Capik 5d08722
cp -pr target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
Matt Wringe 352ed05
Matt Wringe 352ed05
%files
3fcd896
%{_javadir}/%{parent}/*
3fcd896
%{_mavendepmapfragdir}/*
Jaromir Capik 5d08722
%{_mavenpomdir}/*
Matt Wringe 352ed05
Matt Wringe 352ed05
%files javadoc
Matt Wringe 352ed05
%doc %{_javadocdir}/*
Matt Wringe 352ed05
Matt Wringe 352ed05
%changelog
9c17829
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-10
9c17829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9c17829
40a7a3e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-9
40a7a3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
40a7a3e
3fcd896
* Wed Sep 7 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-8
3fcd896
- Drop ant build.
3fcd896
- Further cleanups.
3fcd896
Jaromir Capik 5d08722
* Thu Jul 28 2011 Jaromir Capik <jcapik@redhat.com> - 0:1.1.8-7
Jaromir Capik 5d08722
- Migration to maven3
Jaromir Capik 5d08722
- Removal of plexus-maven-plugin (not needed)
Jaromir Capik 5d08722
- Minor spec file changes according to the latest guidelines
Jaromir Capik 5d08722
3ea5a84
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-6
3ea5a84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3ea5a84
89bb483
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-5
89bb483
- BR java-devel 1.6.
89bb483
b005082
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-4
b005082
- BR maven-surefire-provider-junit.
b005082
543911b
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-3
543911b
- BR maven-doxia-sitetools.
543911b
c945c45
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-2
c945c45
- BR plexus-maven-plugin.
c945c45
5d3fcd2
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-1
5d3fcd2
- Update to upstream 1.1.8.
5d3fcd2
Andrew Overholt e4b98fe
* Fri Aug 21 2009 Andrew Overholt <overholt@redhat.com> 1.1.7-3.3
Andrew Overholt e4b98fe
- Add ant-nodeps BR
Andrew Overholt e4b98fe
Andrew Overholt d2a6028
* Fri Aug 21 2009 Andrew Overholt <overholt@redhat.com> 1.1.7-3.2
Andrew Overholt d2a6028
- Add ant-contrib BR
Andrew Overholt d2a6028
Andrew Overholt e7250ff
* Fri Aug 21 2009 Andrew Overholt <overholt@redhat.com> 0:1.1.7-3.1
Andrew Overholt e7250ff
- Import from Deepak Bhole's work (import from JPackage, update to 1.1.7)
Andrew Overholt e7250ff
- Remove gcj support
Andrew Overholt e7250ff
12a0265
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-5.2
12a0265
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
12a0265
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
Andrew Overholt e7250ff
* Sat Mar 24 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.1.2-3jpp
Andrew Overholt e7250ff
- Build with maven2 by default
Andrew Overholt e7250ff
- Add gcj_support options
Andrew Overholt e7250ff
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