|
 |
2e6da1 |
%{?scl:%scl_package stringtemplate}
|
|
 |
2e6da1 |
%{!?scl:%global pkg_name %{name}}
|
|
 |
2e6da1 |
%{?java_common_find_provides_and_requires}
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
Summary: A Java template engine
|
|
 |
2e6da1 |
Name: %{?scl_prefix}stringtemplate
|
|
 |
2e6da1 |
Version: 3.2.1
|
|
 |
2e6da1 |
Release: 11.1%{?dist}
|
|
 |
2e6da1 |
URL: http://www.stringtemplate.org/
|
|
 |
2e6da1 |
Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
|
|
 |
2e6da1 |
# Build jUnit tests + make the antlr2 generated code before preparing sources
|
|
 |
2e6da1 |
Patch0: stringtemplate-3.1-build-junit.patch
|
|
 |
2e6da1 |
License: BSD
|
|
 |
2e6da1 |
Group: Development/Libraries
|
|
 |
2e6da1 |
BuildArch: noarch
|
|
 |
2e6da1 |
BuildRequires: %{?scl_prefix_java_common}ant-antlr, %{?scl_prefix_java_common}ant-junit
|
|
 |
2e6da1 |
BuildRequires: %{?scl_prefix_java_common}antlr-tool
|
|
 |
2e6da1 |
# Standard deps
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
BuildRequires: %{?scl_prefix_java_common}jpackage-utils
|
|
 |
2e6da1 |
Requires: %{?scl_prefix_java_common}antlr-tool
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%description
|
|
 |
2e6da1 |
StringTemplate is a java template engine (with ports for
|
|
 |
2e6da1 |
C# and Python) for generating source code, web pages,
|
|
 |
2e6da1 |
emails, or any other formatted text output. StringTemplate
|
|
 |
2e6da1 |
is particularly good at multi-targeted code generators,
|
|
 |
2e6da1 |
multiple site skins, and internationalization/localization.
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%package javadoc
|
|
 |
2e6da1 |
Summary: API documentation for %{pkg_name}
|
|
 |
2e6da1 |
Group: Documentation
|
|
 |
2e6da1 |
Requires: java-javadoc
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%description javadoc
|
|
 |
2e6da1 |
API documentation for %{pkg_name}.
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%prep
|
|
 |
2e6da1 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
2e6da1 |
%setup -n %{pkg_name}-%{version} -q
|
|
 |
2e6da1 |
%patch0
|
|
 |
2e6da1 |
%{?scl:EOF}
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%build
|
|
 |
2e6da1 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
2e6da1 |
rm -rf lib target
|
|
 |
2e6da1 |
ant jar
|
|
 |
2e6da1 |
ant javadocs -Dpackages= -Djavadocs.additionalparam=
|
|
 |
2e6da1 |
%{?scl:EOF}
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%install
|
|
 |
2e6da1 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
2e6da1 |
install -D build/stringtemplate.jar $RPM_BUILD_ROOT%{_datadir}/java/stringtemplate.jar
|
|
 |
2e6da1 |
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{pkg_name}
|
|
 |
2e6da1 |
cp -pR docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{pkg_name}
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
install -Dpm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{pkg_name}.pom
|
|
 |
2e6da1 |
%add_maven_depmap JPP-%{pkg_name}.pom stringtemplate.jar
|
|
 |
2e6da1 |
%{?scl:EOF}
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%files -f .mfiles
|
|
 |
2e6da1 |
%doc LICENSE.txt README.txt
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%files javadoc
|
|
 |
2e6da1 |
%doc LICENSE.txt
|
|
 |
2e6da1 |
%{_javadocdir}/%{pkg_name}
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
%changelog
|
|
 |
2e6da1 |
* Tue Jul 07 2015 Mat Booth <mat.booth@redhat.com> - 3.2.1-11.1
|
|
 |
2e6da1 |
- Import latest from Fedora
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-11
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Fri Sep 05 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.2.1-10
|
|
 |
2e6da1 |
- Fix for F21 XMvn changes (#1107380)
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 3.2.1-8
|
|
 |
2e6da1 |
- Use Requires: java-headless rebuild (#1067528)
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Wed Aug 14 2013 Mat Booth <fedora@matbooth.co.uk> - 3.2.1-7
|
|
 |
2e6da1 |
- Fix FTBFS #993386
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-6
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Fri Feb 1 2013 Conrad Meyer <konrad@tylerc.org> - 3.2.1-5
|
|
 |
2e6da1 |
- Add missing dep on antlr-tool (#904979)
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-4
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-3
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Fri Jan 29 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.2.1-1
|
|
 |
2e6da1 |
- Update to 3.2.1
|
|
 |
2e6da1 |
- Supply maven POM files
|
|
 |
2e6da1 |
- Drop stringtemplate-3.1-disable-broken-test.patch (merged upstream)
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-3
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
|
|
 |
2e6da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
 |
2e6da1 |
|
|
 |
2e6da1 |
* Sat Apr 05 2008 Colin Walters <walters@redhat.com> - 3.1-1
|
|
 |
2e6da1 |
- First version
|