0896c4
# Copyright (c) 2000-2005, JPackage Project
0896c4
# All rights reserved.
0896c4
#
0896c4
# Redistribution and use in source and binary forms, with or without
0896c4
# modification, are permitted provided that the following conditions
0896c4
# are met:
0896c4
#
0896c4
# 1. Redistributions of source code must retain the above copyright
0896c4
#    notice, this list of conditions and the following disclaimer.
0896c4
# 2. Redistributions in binary form must reproduce the above copyright
0896c4
#    notice, this list of conditions and the following disclaimer in the
0896c4
#    documentation and/or other materials provided with the
0896c4
#    distribution.
0896c4
# 3. Neither the name of the JPackage Project nor the names of its
0896c4
#    contributors may be used to endorse or promote products derived
0896c4
#    from this software without specific prior written permission.
0896c4
#
0896c4
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0896c4
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0896c4
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0896c4
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0896c4
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0896c4
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0896c4
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0896c4
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0896c4
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0896c4
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0896c4
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0896c4
#
0896c4
0896c4
%define parent plexus
0896c4
%define subname velocity
0896c4
0896c4
Name:           plexus-velocity
0896c4
Version:        1.1.8
0896c4
Release:        15%{?dist}
0896c4
Epoch:          0
0896c4
Summary:        Plexus Velocity Component
0896c4
License:        ASL 2.0
0896c4
Group:          Development/Java
0896c4
URL:            http://plexus.codehaus.org/
0896c4
# svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-velocity-1.1.8/
0896c4
# tar czf plexus-velocity-1.1.8-src.tar.gz plexus-velocity-1.1.8/
0896c4
Source0:        plexus-velocity-%{version}-src.tar.gz
0896c4
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
0896c4
0896c4
BuildArch:      noarch
0896c4
BuildRequires:  jpackage-utils >= 0:1.7.2
0896c4
BuildRequires:  ant >= 0:1.6
0896c4
BuildRequires:  java-devel >= 1:1.6.0
0896c4
BuildRequires:  maven-local
0896c4
BuildRequires:  maven-compiler-plugin
0896c4
BuildRequires:  maven-install-plugin
0896c4
BuildRequires:  maven-jar-plugin
0896c4
BuildRequires:  maven-javadoc-plugin
0896c4
BuildRequires:  maven-resources-plugin
0896c4
BuildRequires:  maven-surefire-plugin
0896c4
BuildRequires:  maven-surefire-provider-junit
0896c4
BuildRequires:  maven-doxia-sitetools
0896c4
BuildRequires:  ant-contrib
0896c4
BuildRequires:  classworlds >= 0:1.1
0896c4
BuildRequires:  apache-commons-collections
0896c4
BuildRequires:  plexus-containers-container-default
0896c4
BuildRequires:  plexus-utils
0896c4
BuildRequires:  velocity
0896c4
Requires:  classworlds >= 0:1.1
0896c4
Requires:  apache-commons-collections
0896c4
Requires:  plexus-containers-container-default
0896c4
Requires:  plexus-utils
0896c4
Requires:  velocity
0896c4
0896c4
%description
0896c4
The Plexus project seeks to create end-to-end developer tools for
0896c4
writing applications. At the core is the container, which can be
0896c4
embedded or for a full scale application server. There are many
0896c4
reusable components for hibernate, form processing, jndi, i18n,
0896c4
velocity, etc. Plexus also includes an application server which
0896c4
is like a J2EE application server, without all the baggage.
0896c4
0896c4
%package javadoc
0896c4
Summary:        Javadoc for %{name}
0896c4
Group:          Documentation
0896c4
0896c4
%description javadoc
0896c4
Javadoc for %{name}.
0896c4
0896c4
%prep
0896c4
%setup -q -n plexus-velocity-%{version}
0896c4
cp -p %{SOURCE1} LICENSE
0896c4
for j in $(find . -name "*.jar"); do
0896c4
        mv $j $j.no
0896c4
done
0896c4
0896c4
%build
0896c4
    # Use normal pom for now
0896c4
    rm -f release-pom.xml
0896c4
    mvn-rpmbuild \
0896c4
        -e \
0896c4
        install javadoc:aggregate
0896c4
0896c4
%install
0896c4
# jars
0896c4
install -Dpm 644 target/%{name}-%{version}.jar \
0896c4
   %{buildroot}/%{_javadir}/%{parent}/%{subname}.jar
0896c4
0896c4
# poms
0896c4
install -Dpm 644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{name}.pom
0896c4
%add_maven_depmap JPP.%{name}.pom %{parent}/%{subname}.jar
0896c4
0896c4
# javadoc
0896c4
install -d -m 755 %{buildroot}/%{_javadocdir}/%{name}
0896c4
cp -pr target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
0896c4
0896c4
%files
0896c4
%doc LICENSE
0896c4
%{_javadir}/%{parent}/*
0896c4
%{_mavendepmapfragdir}/*
0896c4
%{_mavenpomdir}/*
0896c4
0896c4
%files javadoc
0896c4
%doc LICENSE
0896c4
%doc %{_javadocdir}/*
0896c4
0896c4
%changelog
0896c4
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.8-15
0896c4
- Rebuild to regenerate API documentation
0896c4
- Resolves: CVE-2013-1571
0896c4
0896c4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-14
0896c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0896c4
0896c4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0:1.1.8-13
0896c4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
0896c4
- Replace maven BuildRequires with maven-local
0896c4
0896c4
* Thu Nov 22 2012 Jaromir Capik <jcapik@redhat.com> - 0:1.1.8-12
0896c4
- Migration to plexus-containers-container-default
0896c4
0896c4
* Wed Nov 21 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.8-11
0896c4
- Install LICENSE file
0896c4
- Resolves: rhbz#878833
0896c4
0896c4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-10
0896c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0896c4
0896c4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-9
0896c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0896c4
0896c4
* Wed Sep 7 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-8
0896c4
- Drop ant build.
0896c4
- Further cleanups.
0896c4
0896c4
* Thu Jul 28 2011 Jaromir Capik <jcapik@redhat.com> - 0:1.1.8-7
0896c4
- Migration to maven3
0896c4
- Removal of plexus-maven-plugin (not needed)
0896c4
- Minor spec file changes according to the latest guidelines
0896c4
0896c4
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.8-6
0896c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0896c4
0896c4
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-5
0896c4
- BR java-devel 1.6.
0896c4
0896c4
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-4
0896c4
- BR maven-surefire-provider-junit.
0896c4
0896c4
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-3
0896c4
- BR maven-doxia-sitetools.
0896c4
0896c4
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-2
0896c4
- BR plexus-maven-plugin.
0896c4
0896c4
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.8-1
0896c4
- Update to upstream 1.1.8.
0896c4
0896c4
* Fri Aug 21 2009 Andrew Overholt <overholt@redhat.com> 1.1.7-3.3
0896c4
- Add ant-nodeps BR
0896c4
0896c4
* Fri Aug 21 2009 Andrew Overholt <overholt@redhat.com> 1.1.7-3.2
0896c4
- Add ant-contrib BR
0896c4
0896c4
* Fri Aug 21 2009 Andrew Overholt <overholt@redhat.com> 0:1.1.7-3.1
0896c4
- Import from Deepak Bhole's work (import from JPackage, update to 1.1.7)
0896c4
- Remove gcj support
0896c4
0896c4
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-5.2
0896c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0896c4
0896c4
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-4.2
0896c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0896c4
0896c4
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1.2-3.2
0896c4
- drop repotag
0896c4
0896c4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.1.2-3jpp.1
0896c4
- Autorebuild for GCC 4.3
0896c4
0896c4
* Sat Mar 24 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.1.2-3jpp
0896c4
- Build with maven2 by default
0896c4
- Add gcj_support options
0896c4
0896c4
* Fri Feb 16 2007 Tania Bento <tbento@redhat.com> - 0:1.1.2-2jpp.1
0896c4
- Fixed %%License.
0896c4
- Fixed %%BuildRoot.
0896c4
- Fixed %%Release.
0896c4
- Removed the %%post and %%postun for javadoc.
0896c4
- Removed %%Vendor.
0896c4
- Removed %%Distribution.
0896c4
- Removed "%%define section free".
0896c4
- Added the gcj support option.
0896c4
- Added BR for jakarta-commons-logging.
0896c4
0896c4
* Wed May 17 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1.2-2jpp
0896c4
- First JPP-1.7 release
0896c4
0896c4
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.1.2-1jpp
0896c4
- First JPackage build