f90952
# Copyright (c) 2000-2005, JPackage Project
f90952
# All rights reserved.
f90952
#
f90952
# Redistribution and use in source and binary forms, with or without
f90952
# modification, are permitted provided that the following conditions
f90952
# are met:
f90952
#
f90952
# 1. Redistributions of source code must retain the above copyright
f90952
#    notice, this list of conditions and the following disclaimer.
f90952
# 2. Redistributions in binary form must reproduce the above copyright
f90952
#    notice, this list of conditions and the following disclaimer in the
f90952
#    documentation and/or other materials provided with the
f90952
#    distribution.
f90952
# 3. Neither the name of the JPackage Project nor the names of its
f90952
#    contributors may be used to endorse or promote products derived
f90952
#    from this software without specific prior written permission.
f90952
#
f90952
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
f90952
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
f90952
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
f90952
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
f90952
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
f90952
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
f90952
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
f90952
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
f90952
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
f90952
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
f90952
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
f90952
#
f90952
f90952
Name:           velocity
f90952
Version:        1.7
b99435
Release:        10%{?dist}
f90952
Epoch:          0
f90952
Summary:        Java-based template engine
f90952
License:        ASL 2.0
f90952
URL:            http://velocity.apache.org/
f90952
Source0:        http://www.apache.org/dist/%{name}/engine/%{version}/%{name}-%{version}.tar.gz
f90952
Source1:        http://repo1.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}.pom
f90952
Patch0:         0001-Remove-avalon-logkit.patch
f90952
Patch2:         0003-Use-system-jars.patch
f90952
Patch3:         0004-JDBC-41-compat.patch
f90952
Group:          Development/Libraries
f90952
Patch4:         0001-Don-t-use-Werken-XPath.patch
f90952
Requires:       apache-commons-collections
f90952
Requires:       apache-commons-logging
f90952
Requires:       apache-commons-lang
f90952
Requires:       servlet3
f90952
Requires:       jakarta-oro
f90952
Requires:       junit
f90952
Requires:       hsqldb
f90952
Requires:       jaxen
f90952
Requires:       jdom
f90952
Requires:       bcel
f90952
Requires:       log4j
f90952
f90952
BuildRequires:  ant
f90952
BuildRequires:  antlr
f90952
BuildRequires:  junit
f90952
BuildRequires:	ant-junit
f90952
BuildRequires:  hsqldb
f90952
BuildRequires:  apache-commons-collections
f90952
BuildRequires:  apache-commons-logging
f90952
BuildRequires:  apache-commons-lang
f90952
BuildRequires:  servlet3
f90952
BuildRequires:  jakarta-oro
f90952
BuildRequires:  jaxen
f90952
BuildRequires:  jdom
f90952
BuildRequires:  bcel
f90952
BuildRequires:  log4j
f90952
BuildRequires:  jpackage-utils
f90952
f90952
# It fails one of the arithmetic test cases with gcj
f90952
BuildRequires:	java-devel >= 1:1.6.0
f90952
BuildArch:      noarch
f90952
f90952
%description
f90952
Velocity is a Java-based template engine. It permits anyone to use the
f90952
simple yet powerful template language to reference objects defined in
f90952
Java code.
f90952
When Velocity is used for web development, Web designers can work in
f90952
parallel with Java programmers to develop web sites according to the
f90952
Model-View-Controller (MVC) model, meaning that web page designers can
f90952
focus solely on creating a site that looks good, and programmers can
f90952
focus solely on writing top-notch code. Velocity separates Java code
f90952
from the web pages, making the web site more maintainable over the long
f90952
run and providing a viable alternative to Java Server Pages (JSPs) or
f90952
PHP.
f90952
Velocity's capabilities reach well beyond the realm of web sites; for
f90952
example, it can generate SQL and PostScript and XML (see Anakia for more
f90952
information on XML transformations) from templates. It can be used
f90952
either as a standalone utility for generating source code and reports,
f90952
or as an integrated component of other systems. Velocity also provides
f90952
template services for the Turbine web application framework.
f90952
Velocity+Turbine provides a template service that will allow web
f90952
applications to be developed according to a true MVC model.
f90952
f90952
%package        manual
f90952
Summary:        Manual for %{name}
f90952
Group:          Documentation
f90952
f90952
%description    manual
f90952
Documentation for %{name}.
f90952
f90952
%package        javadoc
f90952
Summary:        Javadoc for %{name}
f90952
Group:          Documentation
f90952
Requires:       jpackage-utils
f90952
f90952
%description    javadoc
f90952
Javadoc for %{name}.
f90952
f90952
%package        demo
f90952
Summary:        Demo for %{name}
f90952
Group:          Development/Libraries
f90952
Requires:       %{name} = %{epoch}:%{version}-%{release}
f90952
f90952
%description    demo
f90952
Demonstrations and samples for %{name}.
f90952
f90952
# -----------------------------------------------------------------------------
f90952
f90952
%prep
f90952
%setup -q -n %{name}-%{version}
f90952
f90952
# remove bundled libs/classes (except those used for testing)
f90952
find . -name '*.jar' -o -name '*.class' -not -path '*test*' -print -delete
f90952
f90952
# Remove dependency on avalon-logkit
f90952
rm -f src/java/org/apache/velocity/runtime/log/AvalonLogChute.java
f90952
rm -f src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java
f90952
rm -f src/java/org/apache/velocity/runtime/log/VelocityFormatter.java
f90952
f90952
# need porting to new servlet API. We would just add a lot of empty functions
f90952
rm  src/test/org/apache/velocity/test/VelocityServletTestCase.java
f90952
f90952
cp %{SOURCE1} ./pom.xml
f90952
f90952
# remove rest of avalon logkit refences
f90952
%patch0 -p1
f90952
f90952
# Use system jar files instead of downloading from net
f90952
%patch2 -p1
f90952
f90952
%patch3 -p1
f90952
f90952
# Use jdom instead of werken-xpath
f90952
%patch4 -p1
f90952
%pom_remove_dep werken-xpath:
f90952
f90952
# -----------------------------------------------------------------------------
f90952
f90952
%build
f90952
export CLASSPATH=$(build-classpath \
f90952
antlr \
f90952
apache-commons-collections \
f90952
commons-lang \
f90952
commons-logging \
f90952
tomcat-servlet-api \
f90952
junit \
f90952
jakarta-oro \
f90952
log4j \
f90952
jaxen \
f90952
jdom \
f90952
bcel \
f90952
hsqldb \
f90952
junit)
f90952
ant \
f90952
  -buildfile build/build.xml \
f90952
  -Dbuild.sysclasspath=first \
f90952
  jar javadocs test
f90952
f90952
# fix line-endings in generated files
f90952
sed -i 's/\r//' docs/api/stylesheet.css docs/api/package-list
f90952
f90952
# -----------------------------------------------------------------------------
f90952
f90952
%install
f90952
f90952
# jars
f90952
install -d -m 755 %{buildroot}%{_javadir}
f90952
install -p -m 644 bin/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
f90952
f90952
# javadoc
f90952
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
f90952
cp -pr docs/api/* %{buildroot}%{_javadocdir}/%{name}
f90952
f90952
# data
f90952
install -d -m 755 %{buildroot}%{_datadir}/%{name}
f90952
cp -pr examples test %{buildroot}%{_datadir}/%{name}
f90952
f90952
# Maven metadata
f90952
install -pD -T -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
f90952
f90952
%add_maven_depmap -a "%{name}:%{name}"
f90952
f90952
f90952
%files
f90952
%doc LICENSE NOTICE README.txt
f90952
%{_javadir}/*.jar
f90952
%{_mavendepmapfragdir}/%{name}
f90952
%{_mavenpomdir}/JPP-%{name}.pom
f90952
f90952
%files manual
f90952
%doc LICENSE NOTICE
f90952
%doc docs/*
f90952
f90952
%files javadoc
f90952
%doc LICENSE NOTICE
f90952
%{_javadocdir}/%{name}
f90952
f90952
%files demo
f90952
%doc LICENSE NOTICE
f90952
%{_datadir}/%{name}
f90952
f90952
%changelog
b99435
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.7-10
b99435
- Mass rebuild 2013-12-27
b99435
f90952
* Fri Sep 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-9
f90952
- Port from werken-xpath to jdom
f90952
- Resolves: rhbz#875817
f90952
f90952
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-8
f90952
- Rebuild to regenerate API documentation
f90952
- Resolves: CVE-2013-1571
f90952
f90952
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-7
f90952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f90952
f90952
* Wed Nov 21 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-6
f90952
- Install NOTICE files
f90952
- Resolves: rhbz#879021
f90952
f90952
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-5
f90952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f90952
f90952
* Tue Jun 05 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.7-4
f90952
- Use new tomcat-servlet-api
f90952
- Update to latest guidelines
f90952
f90952
* Fri Feb 17 2012 Deepak Bhole <dbhole@redhat.com> - 0:1.7-3
f90952
- Resolved rhbz#791045
f90952
- Added patch from Omaid Majid <omajid@redhat.com> to fix build with Java 7
f90952
f90952
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-2
f90952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f90952
f90952
* Mon Feb 21 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.7-1
f90952
- Update to latest version
f90952
- Drop old patches
f90952
f90952
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.4-3
f90952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f90952
f90952
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.6.4-2
f90952
- Add compatibility depmap
f90952
f90952
* Wed Nov  3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.6.4-1
f90952
- Rebase to latest upstream
f90952
- Fix problems from bz#226525
f90952
f90952
* Thu Oct 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.6.3-5
f90952
- Use apache-commons-collections instead of jakarta name
f90952
- Use tomcat6 for dependency instead of tomcat5 (bz#640660)
f90952
f90952
* Mon Jun 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.6.3-4
f90952
- Fix BR/R for jakarta-commons-rename.
f90952
f90952
* Sat Feb 13 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.6.3-3
f90952
- Get (Build)Requires right
f90952
f90952
* Sat Feb 13 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.6.3-2
f90952
- Require all of the packages in the POM
f90952
- Add dist to version
f90952
f90952
* Fri Jan 15 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.6.3-1
f90952
- Update to 1.6.3
f90952
- Remove dependency on avalon-logkit
f90952
- Add maven metadata and pom
f90952
f90952
* Sun Jan 10 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-10.5
f90952
- Drop gcj_support.
f90952
- Fix groups and url.
f90952
- Use upstream tarball.
f90952
f90952
* Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 0:1.4-10.4
f90952
- Convert specfile to UTF-8.
f90952
f90952
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-9.4
f90952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f90952
f90952
* Fri Apr 24 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0:1.4-8.4
f90952
- Fix FTBFS: added velocity-enum.patch (enum is a reserved keyword in java >= 1.5)
f90952
f90952
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-8.3
f90952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f90952
f90952
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.4-7.3
f90952
- drop repotag
f90952
f90952
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.4-7jpp.2
f90952
- fix license tag
f90952
f90952
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.4-7jpp.1
f90952
- Autorebuild for GCC 4.3
f90952
f90952
* Tue Aug 08 2006 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.4-6jpp.1
f90952
- Resync with latest from JPP.
f90952
- Partially adopt new naming convention.
f90952
f90952
* Sat Jul 22 2006 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.4-5jpp_2fc
f90952
- Rebuilt
f90952
f90952
* Sat Jul 22 2006 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.4-5jpp_1fc
f90952
- Merge with latest from JPP.
f90952
- Remove fileversion and my_version macros.
f90952
- Remove notexentests patch and replace with a patch to disable
f90952
- failure on tests.
f90952
f90952
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.4-3jpp_8fc
f90952
- Rebuilt
f90952
f90952
* Tue Jul 18 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.4-3jpp_7fc
f90952
- Build on all archs.
f90952
f90952
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.4-3jpp_6fc
f90952
- rebuild
f90952
f90952
* Wed Mar  8 2006 Rafael Schloming <rafaels@redhat.com> - 0:1.4-3jpp_5fc
f90952
- excluded s390[x] and ppc64 due to eclipse
f90952
f90952
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.4-3jpp_4fc
f90952
- stop scriptlet spew
f90952
f90952
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> - 0:1.4-3jpp_3fc
f90952
- rebuilt again
f90952
f90952
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> - 0:1.4-3jpp_2fc
f90952
- rebuilt
f90952
f90952
* Tue Nov  8 2005 Vadim Nasardinov <vadimn@redhat.com> - 0:1.4-3jpp_1fc
f90952
- Converted from ISO-8859-1 to UTF-8
f90952
f90952
* Wed Jun 15 2005 Gary Benson <gbenson@redhat.com> 0:1.4-3jpp_1fc
f90952
- Build into Fedora.
f90952
f90952
* Thu Jun  9 2005 Gary Benson <gbenson@redhat.com>
f90952
- Remove jarfiles from the tarball.
f90952
f90952
* Mon Jun  6 2005 Gary Benson <gbenson@redhat.com>
f90952
- Build with servletapi5.
f90952
- Add NOTICE file as per Apache License version 2.0.
f90952
- Skip some failing tests.
f90952
f90952
* Mon Oct 18 2004 Fernando Nasser <fnasser@redhat.com> 0:1.4-3jpp_1rh
f90952
- First Red Hat build
f90952
f90952
* Thu Sep 23 2004 Ralph Apel <r.apel at r-apel.de> 0:1.4-3jpp
f90952
- Adapt to jdom-1.0-1 replacing org.jdom.input.DefaultJDOMFactory
f90952
  by org.jdom.DefaultJDOMFactory in AnakiaJDOMFactory.java
f90952
  as well as using org.jdom.output.Format in AnakiaTask.java
f90952
- Therefore require jdom >= 0:1.0-1
f90952
f90952
* Thu Sep 02 2004 Ralph Apel <r.apel at r-apel.de> 0:1.4-2jpp
f90952
- Build with ant-1.6.2
f90952
f90952
* Mon Jun 07 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.4-1jpp
f90952
- 1.4 final
f90952
- Patch #0 is unnecessary (upstream)
f90952
- We have to build velocity against servletapi3
f90952
f90952
* Wed Feb 18 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.4-0.rc1.2jpp
f90952
- Fix a few jpackage related .spec typos, oops.
f90952
f90952
* Wed Feb 18 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.4-0.rc1.1jpp
f90952
- Added Patch #0 (velocity-1.4-rc1-ServletTest.patch) from CVS which fixes
f90952
  build problems.
f90952
f90952
* Sun May 25 2003 Ville Skyttä <ville.skytta@iki.fi> - 0:1.3.1-2jpp
f90952
- Add Epochs to dependencies.
f90952
- Add explicit defattrs.
f90952
- Add non-versioned javadoc symlinks.
f90952
- Use sed instead of bash 2 extension when symlinking jars during build.
f90952
- Use full URL in Source.
f90952
- Fix -javadoc Group tag.
f90952
- Drop patch in favour of ant options.
f90952
- BuildRequire jpackage-utils and antlr (latter needed for Anakia tests).
f90952
f90952
* Sat May 24 2003 Richard Bullington-McGuire <rbulling@pkrinternet.com> 1.3.1-1jpp
f90952
- 1.3.1 stable release
f90952
f90952
* Fri May 23 2003 Richard Bullington-McGuire <rbulling@pkrinternet.com> 1.3-1jpp
f90952
- 1.3 stable release
f90952
- Updated for JPackage 1.5
f90952
- Run JUnit regression tests as part of the build process
f90952
- Added patch file to fix test case classpath for JUnit standard locations
f90952
f90952
* Mon May 06 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.3-0.rc1.1jpp
f90952
- 1.3.0rc1
f90952
- dropped patch
f90952
- versioned dir for javadoc
f90952
- no dependencies for manual and javadoc packages
f90952
- stricter dependency for demo package
f90952
f90952
* Wed Dec 12 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-1jpp
f90952
- 1.2
f90952
- regenerated patch and corrected manifest
f90952
- requires and buildrequires jdom >= 1.0-0.b7.1
f90952
f90952
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.1-4jpp
f90952
- javadoc into javadoc package
f90952
f90952
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.1-3jpp
f90952
- removed packager tag
f90952
- new jpp extension
f90952
f90952
* Thu Nov 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.1-2jpp
f90952
- first unified release
f90952
- s/jPackage/JPackage
f90952
f90952
* Fri Sep 14 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.1-1jpp
f90952
- first Mandrake release