Blame SPECS/velocity.spec

d19125
%{?scl:%scl_package velocity}
d19125
%{!?scl:%global pkg_name %{name}}
d19125
d19125
%bcond_without  hsqldb
d19125
d19125
Name:           %{?scl_prefix}velocity
d19125
Version:        1.7
d19125
Release:        20.2%{?dist}
d19125
Epoch:          0
d19125
Summary:        Java-based template engine
d19125
License:        ASL 2.0
d19125
URL:            http://velocity.apache.org/
d19125
BuildArch:      noarch
d19125
d19125
Source0:        http://www.apache.org/dist/%{pkg_name}/engine/%{version}/%{pkg_name}-%{version}.tar.gz
d19125
Source1:        http://repo1.maven.org/maven2/org/apache/%{pkg_name}/%{pkg_name}/%{version}/%{pkg_name}-%{version}.pom
d19125
d19125
Patch0:         0001-Remove-avalon-logkit.patch
d19125
Patch1:         0004-Use-log4j-1.2.17.patch
d19125
Patch2:         0003-Use-system-jars.patch
d19125
Patch3:         0004-JDBC-41-compat.patch
d19125
Patch4:         0001-Don-t-use-Werken-XPath.patch
d19125
Patch5:         0006-Skip-Java-8-incompatible-test.patch
d19125
Patch6:         velocity-1.7-doclint.patch
d19125
Patch7:         velocity-1.7-osgi.patch
d19125
d19125
BuildRequires:  %{?scl_prefix}javapackages-local
d19125
BuildRequires:  %{?scl_prefix}ant
d19125
BuildRequires:  %{?scl_prefix}antlr
d19125
BuildRequires:  %{?scl_prefix}junit
d19125
BuildRequires:  %{?scl_prefix}ant-junit
d19125
%if %{with hsqldb}
d19125
BuildRequires:  hsqldb-lib
d19125
%endif
d19125
BuildRequires:  %{?scl_prefix}apache-commons-collections
d19125
BuildRequires:  %{?scl_prefix}apache-commons-logging
d19125
BuildRequires:  %{?scl_prefix}apache-commons-lang
d19125
BuildRequires:  %{?scl_prefix}glassfish-servlet-api
d19125
BuildRequires:  %{?scl_prefix}jakarta-oro
d19125
BuildRequires:  %{?scl_prefix}jaxen
d19125
BuildRequires:  %{?scl_prefix}jdom
d19125
BuildRequires:  %{?scl_prefix}bcel
d19125
BuildRequires:  %{?scl_prefix}log4j12
d19125
BuildRequires:  %{?scl_prefix}apache-parent
d19125
d19125
# It fails one of the arithmetic test cases with gcj
d19125
BuildRequires:  java-devel >= 1:1.6.0
d19125
d19125
%description
d19125
Velocity is a Java-based template engine. It permits anyone to use the
d19125
simple yet powerful template language to reference objects defined in
d19125
Java code.
d19125
When Velocity is used for web development, Web designers can work in
d19125
parallel with Java programmers to develop web sites according to the
d19125
Model-View-Controller (MVC) model, meaning that web page designers can
d19125
focus solely on creating a site that looks good, and programmers can
d19125
focus solely on writing top-notch code. Velocity separates Java code
d19125
from the web pages, making the web site more maintainable over the long
d19125
run and providing a viable alternative to Java Server Pages (JSPs) or
d19125
PHP.
d19125
Velocity's capabilities reach well beyond the realm of web sites; for
d19125
example, it can generate SQL and PostScript and XML (see Anakia for more
d19125
information on XML transformations) from templates. It can be used
d19125
either as a standalone utility for generating source code and reports,
d19125
or as an integrated component of other systems. Velocity also provides
d19125
template services for the Turbine web application framework.
d19125
Velocity+Turbine provides a template service that will allow web
d19125
applications to be developed according to a true MVC model.
d19125
d19125
%package        manual
d19125
Summary:        Manual for %{pkg_name}
d19125
d19125
%description    manual
d19125
Documentation for %{pkg_name}.
d19125
d19125
%package        javadoc
d19125
Summary:        Javadoc for %{pkg_name}
d19125
d19125
%description    javadoc
d19125
Javadoc for %{pkg_name}.
d19125
d19125
%package        demo
d19125
Summary:        Demo for %{pkg_name}
d19125
Requires:       %{name} = %{epoch}:%{version}-%{release}
d19125
d19125
%description    demo
d19125
Demonstrations and samples for %{pkg_name}.
d19125
d19125
# -----------------------------------------------------------------------------
d19125
d19125
%prep
d19125
%setup -n %{pkg_name}-%{version} -q
d19125
d19125
# remove bundled libs/classes (except those used for testing)
d19125
find . -name '*.jar' ! -name 'test*.jar' -print -delete
d19125
find . -name '*.class' ! -name 'Foo.class' -print -delete
d19125
d19125
# Remove dependency on avalon-logkit
d19125
rm -f src/java/org/apache/velocity/runtime/log/AvalonLogChute.java
d19125
rm -f src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java
d19125
rm -f src/java/org/apache/velocity/runtime/log/VelocityFormatter.java
d19125
d19125
# need porting to new servlet API. We would just add a lot of empty functions
d19125
rm  src/test/org/apache/velocity/test/VelocityServletTestCase.java
d19125
d19125
# This test doesn't work with new hsqldb
d19125
rm src/test/org/apache/velocity/test/sql/DataSourceResourceLoaderTestCase.java
d19125
d19125
cp %{SOURCE1} ./pom.xml
d19125
d19125
# remove rest of avalon logkit refences
d19125
%patch0 -p1
d19125
d19125
# Use log4j 1.2.17
d19125
%patch1 -p1
d19125
d19125
# Use system jar files instead of downloading from net
d19125
%patch2 -p1
d19125
d19125
%patch3 -p1
d19125
d19125
# Use jdom instead of werken-xpath
d19125
%patch4 -p1
d19125
%pom_remove_dep werken-xpath:
d19125
d19125
# Skip Java 8 incompatible test
d19125
%patch5 -p1
d19125
d19125
# Disable Java8 doclint
d19125
%patch6 -p1
d19125
d19125
# Remove werken-xpath Import/Export refences in OSGi manifest file
d19125
%patch7 -p1
d19125
d19125
%if %{without hsqldb}
d19125
rm -r src/test/org/apache/velocity/test/sql
d19125
%endif
d19125
d19125
# -----------------------------------------------------------------------------
d19125
d19125
%build
d19125
d19125
export CLASSPATH=$(build-classpath \
d19125
antlr \
d19125
apache-commons-collections \
d19125
commons-lang \
d19125
commons-logging \
d19125
glassfish-servlet-api \
d19125
junit \
d19125
jakarta-oro \
d19125
log4j:log4j:1.2.17 \
d19125
jaxen \
d19125
jdom \
d19125
bcel \
d19125
hsqldb \
d19125
junit)
d19125
ant \
d19125
  -buildfile build/build.xml \
d19125
  -Dbuild.sysclasspath=first \
d19125
  -Djavac.target=1.6 \
d19125
  -Djavac.source=1.6 \
d19125
  jar javadocs test
d19125
d19125
# fix line-endings in generated files
d19125
sed -i 's/\r//' docs/api/stylesheet.css docs/api/package-list
d19125
d19125
# -----------------------------------------------------------------------------
d19125
d19125
%install
d19125
%mvn_file : %{pkg_name}
d19125
%mvn_alias : %{pkg_name}:%{pkg_name}
d19125
%mvn_artifact pom.xml bin/%{pkg_name}-%{version}.jar
d19125
%mvn_install -J docs/api
d19125
d19125
# zero-length file
d19125
rm -r test/issues/velocity-537/compare/velocity537.vm.cmp
d19125
# data
d19125
install -d -m 755 %{buildroot}%{_datadir}/%{pkg_name}
d19125
cp -pr examples test %{buildroot}%{_datadir}/%{pkg_name}
d19125
d19125
%files -f .mfiles
d19125
%doc README.txt
d19125
%license LICENSE NOTICE
d19125
d19125
%files manual
d19125
%license LICENSE NOTICE
d19125
%doc docs/*
d19125
d19125
%files javadoc -f .mfiles-javadoc
d19125
%license LICENSE NOTICE
d19125
d19125
%files demo
d19125
%license LICENSE NOTICE
d19125
%{_datadir}/%{pkg_name}
d19125
d19125
%changelog
d19125
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 0:1.7-20.2
d19125
- Mass rebuild 2017-06-22
d19125
d19125
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 0:1.7-20.1
d19125
- Automated package import and SCL-ization
d19125
d19125
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 0:1.7-20
d19125
- Add hsqldb conditional
d19125
- Switch to glassfish-servlet-api
d19125
d19125
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.7-19
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d19125
d19125
* Wed Jul 22 2015 gil cattaneo <puntogil@libero.it> 0:1.7-18
d19125
- fix FTBFS rhbz#1240035
d19125
- fix BR list, change log4j with log4j12
d19125
- set javac source/target to 1.6
d19125
- disable Java8doc doclint
d19125
- remove werken-xpath Import/Export refences in manifest file
d19125
- resolve some rpmlint problems
d19125
- remove zero-length file
d19125
- introduce license macro
d19125
d19125
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-17
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d19125
d19125
* Fri Nov 28 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-16
d19125
- Update to current packaging guidelines
d19125
d19125
* Thu Sep  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-15
d19125
- Require hsqldb-lib instead of hsqldb
d19125
d19125
* Wed Jun 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-14
d19125
- Apply patch for log4j 1.2.17
d19125
d19125
* Wed Jun 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-13
d19125
- Use log4j 1.2 compat package
d19125
- Skip Java 8 incompatible test
d19125
d19125
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-12
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d19125
d19125
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-11
d19125
- Use .mfiles generated during build
d19125
d19125
* Sat Sep 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-10
d19125
- Port from werken-xpath to jdom
d19125
- Resolves: rhbz#875817
d19125
d19125
* Mon Aug 05 2013 Michal Srb <msrb@redhat.com> - 0:1.7-9
d19125
- Fix FTBFS (Resolves: #992852)
d19125
d19125
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-8
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d19125
d19125
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-7
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d19125
d19125
* Wed Nov 21 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7-6
d19125
- Install NOTICE files
d19125
- Resolves: rhbz#879021
d19125
d19125
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-5
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d19125
d19125
* Tue Jun 05 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.7-4
d19125
- Use new tomcat-servlet-api
d19125
- Update to latest guidelines
d19125
d19125
* Fri Feb 17 2012 Deepak Bhole <dbhole@redhat.com> - 0:1.7-3
d19125
- Resolved rhbz#791045
d19125
- Added patch from Omaid Majid <omajid@redhat.com> to fix build with Java 7
d19125
d19125
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-2
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d19125
d19125
* Mon Feb 21 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.7-1
d19125
- Update to latest version
d19125
- Drop old patches
d19125
d19125
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.4-3
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d19125
d19125
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.6.4-2
d19125
- Add compatibility depmap
d19125
d19125
* Wed Nov  3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.6.4-1
d19125
- Rebase to latest upstream
d19125
- Fix problems from bz#226525
d19125
d19125
* Thu Oct 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.6.3-5
d19125
- Use apache-commons-collections instead of jakarta name
d19125
- Use tomcat6 for dependency instead of tomcat5 (bz#640660)
d19125
d19125
* Mon Jun 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.6.3-4
d19125
- Fix BR/R for jakarta-commons-rename.
d19125
d19125
* Sat Feb 13 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.6.3-3
d19125
- Get (Build)Requires right
d19125
d19125
* Sat Feb 13 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.6.3-2
d19125
- Require all of the packages in the POM
d19125
- Add dist to version
d19125
d19125
* Fri Jan 15 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.6.3-1
d19125
- Update to 1.6.3
d19125
- Remove dependency on avalon-logkit
d19125
- Add maven metadata and pom
d19125
d19125
* Sun Jan 10 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-10.5
d19125
- Drop gcj_support.
d19125
- Fix groups and url.
d19125
- Use upstream tarball.
d19125
d19125
* Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 0:1.4-10.4
d19125
- Convert specfile to UTF-8.
d19125
d19125
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-9.4
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d19125
d19125
* Fri Apr 24 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0:1.4-8.4
d19125
- Fix FTBFS: added velocity-enum.patch (enum is a reserved keyword in java >= 1.5)
d19125
d19125
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-8.3
d19125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d19125
d19125
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.4-7.3
d19125
- drop repotag
d19125
d19125
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.4-7jpp.2
d19125
- fix license tag
d19125
d19125
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.4-7jpp.1
d19125
- Autorebuild for GCC 4.3
d19125
d19125
* Tue Aug 08 2006 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.4-6jpp.1
d19125
- Resync with latest from JPP.
d19125
- Partially adopt new naming convention.
d19125
d19125
* Sat Jul 22 2006 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.4-5jpp_2fc
d19125
- Rebuilt
d19125
d19125
* Sat Jul 22 2006 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.4-5jpp_1fc
d19125
- Merge with latest from JPP.
d19125
- Remove fileversion and my_version macros.
d19125
- Remove notexentests patch and replace with a patch to disable
d19125
- failure on tests.
d19125
d19125
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.4-3jpp_8fc
d19125
- Rebuilt
d19125
d19125
* Tue Jul 18 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.4-3jpp_7fc
d19125
- Build on all archs.
d19125
d19125
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.4-3jpp_6fc
d19125
- rebuild
d19125
d19125
* Wed Mar  8 2006 Rafael Schloming <rafaels@redhat.com> - 0:1.4-3jpp_5fc
d19125
- excluded s390[x] and ppc64 due to eclipse
d19125
d19125
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.4-3jpp_4fc
d19125
- stop scriptlet spew
d19125
d19125
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> - 0:1.4-3jpp_3fc
d19125
- rebuilt again
d19125
d19125
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> - 0:1.4-3jpp_2fc
d19125
- rebuilt
d19125
d19125
* Tue Nov  8 2005 Vadim Nasardinov <vadimn@redhat.com> - 0:1.4-3jpp_1fc
d19125
- Converted from ISO-8859-1 to UTF-8
d19125
d19125
* Wed Jun 15 2005 Gary Benson <gbenson@redhat.com> 0:1.4-3jpp_1fc
d19125
- Build into Fedora.
d19125
d19125
* Thu Jun  9 2005 Gary Benson <gbenson@redhat.com>
d19125
- Remove jarfiles from the tarball.
d19125
d19125
* Mon Jun  6 2005 Gary Benson <gbenson@redhat.com>
d19125
- Build with servletapi5.
d19125
- Add NOTICE file as per Apache License version 2.0.
d19125
- Skip some failing tests.
d19125
d19125
* Mon Oct 18 2004 Fernando Nasser <fnasser@redhat.com> 0:1.4-3jpp_1rh
d19125
- First Red Hat build
d19125
d19125
* Thu Sep 23 2004 Ralph Apel <r.apel at r-apel.de> 0:1.4-3jpp
d19125
- Adapt to jdom-1.0-1 replacing org.jdom.input.DefaultJDOMFactory
d19125
  by org.jdom.DefaultJDOMFactory in AnakiaJDOMFactory.java
d19125
  as well as using org.jdom.output.Format in AnakiaTask.java
d19125
- Therefore require jdom >= 0:1.0-1
d19125
d19125
* Thu Sep 02 2004 Ralph Apel <r.apel at r-apel.de> 0:1.4-2jpp
d19125
- Build with ant-1.6.2
d19125
d19125
* Mon Jun 07 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.4-1jpp
d19125
- 1.4 final
d19125
- Patch #0 is unnecessary (upstream)
d19125
- We have to build velocity against servletapi3
d19125
d19125
* Wed Feb 18 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.4-0.rc1.2jpp
d19125
- Fix a few jpackage related .spec typos, oops.
d19125
d19125
* Wed Feb 18 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.4-0.rc1.1jpp
d19125
- Added Patch #0 (velocity-1.4-rc1-ServletTest.patch) from CVS which fixes
d19125
  build problems.
d19125
d19125
* Sun May 25 2003 Ville Skyttä <ville.skytta@iki.fi> - 0:1.3.1-2jpp
d19125
- Add Epochs to dependencies.
d19125
- Add explicit defattrs.
d19125
- Add non-versioned javadoc symlinks.
d19125
- Use sed instead of bash 2 extension when symlinking jars during build.
d19125
- Use full URL in Source.
d19125
- Fix -javadoc Group tag.
d19125
- Drop patch in favour of ant options.
d19125
- BuildRequire jpackage-utils and antlr (latter needed for Anakia tests).
d19125
d19125
* Sat May 24 2003 Richard Bullington-McGuire <rbulling@pkrinternet.com> 1.3.1-1jpp
d19125
- 1.3.1 stable release
d19125
d19125
* Fri May 23 2003 Richard Bullington-McGuire <rbulling@pkrinternet.com> 1.3-1jpp
d19125
- 1.3 stable release
d19125
- Updated for JPackage 1.5
d19125
- Run JUnit regression tests as part of the build process
d19125
- Added patch file to fix test case classpath for JUnit standard locations
d19125
d19125
* Mon May 06 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.3-0.rc1.1jpp
d19125
- 1.3.0rc1
d19125
- dropped patch
d19125
- versioned dir for javadoc
d19125
- no dependencies for manual and javadoc packages
d19125
- stricter dependency for demo package
d19125
d19125
* Wed Dec 12 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-1jpp
d19125
- 1.2
d19125
- regenerated patch and corrected manifest
d19125
- requires and buildrequires jdom >= 1.0-0.b7.1
d19125
d19125
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.1-4jpp
d19125
- javadoc into javadoc package
d19125
d19125
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.1-3jpp
d19125
- removed packager tag
d19125
- new jpp extension
d19125
d19125
* Thu Nov 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.1-2jpp
d19125
- first unified release
d19125
- s/jPackage/JPackage
d19125
d19125
* Fri Sep 14 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.1-1jpp
d19125
- first Mandrake release