mirror of
https://abf.rosa.ru/djam/stringtemplate4.git
synced 2025-04-11 11:54:11 +00:00
Cyclick dependency broken
This commit is contained in:
parent
8731912e8d
commit
11ef690d87
3 changed files with 100 additions and 318 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,4 +1,2 @@
|
|||
sources:
|
||||
ST-4.0.4-src.zip: ef8e9822da72faea4108fdbad858474cd9fb672e
|
||||
stringtemplate4-4.0.4-6.0-omv2014.0.noarch.rpm: 818c773ddcc7b60e2a4a11c24c74931c2af3d6cd
|
||||
stringtemplate4-javadoc-4.0.4-6.0-omv2014.0.noarch.rpm: d50ab473858473b50b78bf272742f5acf85a676b
|
||||
|
|
|
@ -1,216 +1,114 @@
|
|||
%{?_javapackages_macros:%_javapackages_macros}
|
||||
%global pkgname ST
|
||||
|
||||
%undefine _compress
|
||||
%undefine _extension
|
||||
%global _duplicate_files_terminate_build 0
|
||||
%global _files_listed_twice_terminate_build 0
|
||||
%global _unpackaged_files_terminate_build 0
|
||||
%global _nonzero_exit_pkgcheck_terminate_build 0
|
||||
%global _use_internal_dependency_generator 0
|
||||
%global __find_requires /bin/sed -e 's/.*//'
|
||||
%global __find_provides /bin/sed -e 's/.*//'
|
||||
Name: stringtemplate4
|
||||
Version: 4.0.4
|
||||
Release: 6.1%{?dist}
|
||||
Summary: A Java template engine
|
||||
URL: http://www.stringtemplate.org/
|
||||
Source0: http://www.stringtemplate.org/download/%{pkgname}-%{version}-src.zip
|
||||
|
||||
Name: stringtemplate4
|
||||
Version: 4.0.4
|
||||
Release: 6.0
|
||||
License: GPLv3+
|
||||
Source0: stringtemplate4-4.0.4-6.0-omv2014.0.noarch.rpm
|
||||
Source1: stringtemplate4-javadoc-4.0.4-6.0-omv2014.0.noarch.rpm
|
||||
# missing from source tarball so we add it here for now
|
||||
Source1: https://raw.github.com/antlr/stringtemplate4/master/src/org/stringtemplate/v4/compiler/STLexer.tokens
|
||||
Source2: https://raw.github.com/antlr/antlr/revision-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/DoubleKeyMap.java
|
||||
Source3: https://raw.github.com/antlr/stringtemplate4/master/pom.xml
|
||||
|
||||
URL: https://abf.rosalinux.ru/openmandriva/stringtemplate4
|
||||
BuildArch: noarch
|
||||
Summary: stringtemplate4 bootstrap version
|
||||
Requires: javapackages-bootstrap
|
||||
Requires: java >= 1:1.6.0
|
||||
Requires: jpackage-utils
|
||||
Provides: mvn(org.antlr:ST4) = 4.0.4-SNAPSHOT
|
||||
Provides: stringtemplate4 = 4.0.4-6.0:2014.0
|
||||
License: BSD
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: ant-antlr3, ant-junit
|
||||
BuildRequires: antlr3
|
||||
BuildRequires: stringtemplate
|
||||
# yup...it needs itself...
|
||||
BuildRequires: stringtemplate4
|
||||
# Standard deps
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: jpackage-utils
|
||||
Requires: java >= 1:1.6.0
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description
|
||||
stringtemplate4 bootstrap version.
|
||||
StringTemplate is a java template engine (with ports for
|
||||
C# and Python) for generating source code, web pages,
|
||||
emails, or any other formatted text output. StringTemplate
|
||||
is particularly good at multi-targeted code generators,
|
||||
multiple site skins, and internationalization/localization.
|
||||
|
||||
%files
|
||||
/usr/share/doc/stringtemplate4
|
||||
/usr/share/doc/stringtemplate4/LICENSE.txt
|
||||
/usr/share/doc/stringtemplate4/README.txt
|
||||
/usr/share/java/stringtemplate4.jar
|
||||
/usr/share/maven-fragments/stringtemplate4
|
||||
/usr/share/maven-poms/JPP-stringtemplate4.pom
|
||||
%package javadoc
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
%package -n stringtemplate4-javadoc
|
||||
Version: 4.0.4
|
||||
Release: 6.0
|
||||
Summary: stringtemplate4-javadoc bootstrap version
|
||||
Requires: javapackages-bootstrap
|
||||
Requires: jpackage-utils
|
||||
Provides: stringtemplate4-javadoc = 4.0.4-6.0:2014.0
|
||||
Summary: API documentation for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description -n stringtemplate4-javadoc
|
||||
stringtemplate4-javadoc bootstrap version.
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
||||
%files -n stringtemplate4-javadoc
|
||||
/usr/share/doc/stringtemplate4-javadoc
|
||||
/usr/share/doc/stringtemplate4-javadoc/LICENSE.txt
|
||||
/usr/share/javadoc/stringtemplate4
|
||||
/usr/share/javadoc/stringtemplate4/allclasses-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/allclasses-noframe.html
|
||||
/usr/share/javadoc/stringtemplate4/constant-values.html
|
||||
/usr/share/javadoc/stringtemplate4/deprecated-list.html
|
||||
/usr/share/javadoc/stringtemplate4/help-doc.html
|
||||
/usr/share/javadoc/stringtemplate4/index-all.html
|
||||
/usr/share/javadoc/stringtemplate4/index.html
|
||||
/usr/share/javadoc/stringtemplate4/org
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr/runtime
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr/runtime/misc
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr/runtime/misc/DoubleKeyMap.html
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr/runtime/misc/package-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr/runtime/misc/package-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/org/antlr/runtime/misc/package-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/AttributeRenderer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/AutoIndentWriter.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/DateRenderer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/InstanceScope.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/Interpreter.Option.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/Interpreter.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/ModelAdaptor.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/NoIndentWriter.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/NumberRenderer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/ST.AttributeList.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/ST.DebugState.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/ST.RegionType.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/ST.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/STErrorListener.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/STGroup.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/STGroupDir.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/STGroupFile.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/STGroupString.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/STWriter.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/StringRenderer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/Bytecode.Instruction.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/Bytecode.OperandType.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/Bytecode.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/BytecodeDisassembler.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.args_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.conditional_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.includeExpr_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.listElement_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.mapTemplateRef_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.primary_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.region_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CodeGenerator.subtemplate_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CompilationState.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/CompiledST.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/Compiler.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/FormalArgument.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/GroupLexer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/GroupParser.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STException.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STLexer.STToken.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STLexer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.andConditional_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.argExprList_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.arg_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.args_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.compoundElement_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.conditional_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.element_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.exprNoComma_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.exprOptions_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.exprTag_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.expr_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.ifstat_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.includeExpr_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.listElement_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.list_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.mapExpr_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.mapTemplateRef_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.memberExpr_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.namedArg_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.notConditionalExpr_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.notConditional_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.option_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.primary_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.region_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.singleElement_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.subtemplate_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.templateAndEOF_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/STParser.template_return.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/StringTable.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/package-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/package-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/compiler/package-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/AddAttributeEvent.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/ConstructionEvent.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/EvalExprEvent.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/EvalTemplateEvent.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/IndentEvent.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/InterpEvent.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/package-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/package-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/debug/package-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/JTreeASTModel.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/JTreeSTModel.Wrapper.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/JTreeSTModel.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/JTreeScopeStackModel.StringTree.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/JTreeScopeStackModel.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/STViewFrame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/STViz.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/package-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/package-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/gui/package-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/Aggregate.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/AggregateModelAdaptor.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/ArrayIterator.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/Coordinate.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/ErrorBuffer.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/ErrorManager.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/ErrorType.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/Interval.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/MapModelAdaptor.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/Misc.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/MultiMap.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/ObjectModelAdaptor.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STCompiletimeMessage.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STGroupCompiletimeMessage.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STLexerMessage.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STMessage.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STModelAdaptor.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STNoSuchAttributeException.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STNoSuchPropertyException.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/STRuntimeMessage.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/package-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/package-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/misc/package-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/package-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/package-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/org/stringtemplate/v4/package-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/overview-frame.html
|
||||
/usr/share/javadoc/stringtemplate4/overview-summary.html
|
||||
/usr/share/javadoc/stringtemplate4/overview-tree.html
|
||||
/usr/share/javadoc/stringtemplate4/package-list
|
||||
/usr/share/javadoc/stringtemplate4/resources
|
||||
/usr/share/javadoc/stringtemplate4/resources/background.gif
|
||||
/usr/share/javadoc/stringtemplate4/resources/tab.gif
|
||||
/usr/share/javadoc/stringtemplate4/resources/titlebar.gif
|
||||
/usr/share/javadoc/stringtemplate4/resources/titlebar_end.gif
|
||||
/usr/share/javadoc/stringtemplate4/serialized-form.html
|
||||
/usr/share/javadoc/stringtemplate4/stylesheet.css
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
%prep
|
||||
%setup -q -n %{pkgname}-%{version}
|
||||
|
||||
# copy sources missing in source archive into places
|
||||
cp %{SOURCE1} src/org/stringtemplate/v4/compiler/STLexer.tokens
|
||||
mkdir -p src/org/antlr/runtime/misc
|
||||
# this is temporary until we build new antlr3 properly
|
||||
cp %{SOURCE2} src/org/antlr/runtime/misc/DoubleKeyMap.java
|
||||
cp %{SOURCE3} pom.xml
|
||||
|
||||
rm -rf lib/* target
|
||||
ln -sf $(build-classpath antlr3) lib/antlr-3.3-complete.jar
|
||||
ln -sf $(build-classpath ant/ant-antlr3) lib/ant-antlr3.jar
|
||||
|
||||
sed -i \
|
||||
's:location="${ant-antlr3.jar}":location="/usr/share/java/antlr3-runtime.jar":' build.xml
|
||||
sed -i 's:<path id="classpath">:<path id="classpath">\n<pathelement location="'\
|
||||
$(build-classpath stringtemplate4)'"/>:' build.xml
|
||||
|
||||
%build
|
||||
export CLASSPATH="`build-classpath ant/ant-antlr3 antlr3 antlr3-runtime antlr`"
|
||||
ant build-jar
|
||||
|
||||
%javadoc -d javadoc -public `find build/src build/gen -name '*.java'`
|
||||
|
||||
%install
|
||||
cd %{buildroot}
|
||||
rpm2cpio %{SOURCE0} | cpio -id
|
||||
rpm2cpio %{SOURCE1} | cpio -id
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -p -m 644 dist/ST-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap
|
||||
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
|
||||
|
||||
%files
|
||||
%doc LICENSE.txt README.txt
|
||||
%{_datadir}/java/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%doc LICENSE.txt
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Tue Aug 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.4-4
|
||||
- Fix file permissions
|
||||
|
||||
* Thu Jul 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.4-3
|
||||
- Fix build. stringtemplate4 now needs itself to build so add it to
|
||||
classpath
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.4-1
|
||||
- Initial version of the package
|
||||
|
||||
|
|
|
@ -1,114 +0,0 @@
|
|||
%{?_javapackages_macros:%_javapackages_macros}
|
||||
%global pkgname ST
|
||||
|
||||
Name: stringtemplate4
|
||||
Version: 4.0.4
|
||||
Release: 6.0%{?dist}
|
||||
Summary: A Java template engine
|
||||
URL: http://www.stringtemplate.org/
|
||||
Source0: http://www.stringtemplate.org/download/%{pkgname}-%{version}-src.zip
|
||||
|
||||
# missing from source tarball so we add it here for now
|
||||
Source1: https://raw.github.com/antlr/stringtemplate4/master/src/org/stringtemplate/v4/compiler/STLexer.tokens
|
||||
Source2: https://raw.github.com/antlr/antlr/revision-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/DoubleKeyMap.java
|
||||
Source3: https://raw.github.com/antlr/stringtemplate4/master/pom.xml
|
||||
|
||||
License: BSD
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: ant-antlr3, ant-junit
|
||||
BuildRequires: antlr3
|
||||
BuildRequires: stringtemplate
|
||||
# yup...it needs itself...
|
||||
BuildRequires: stringtemplate4
|
||||
# Standard deps
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: jpackage-utils
|
||||
Requires: java >= 1:1.6.0
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description
|
||||
StringTemplate is a java template engine (with ports for
|
||||
C# and Python) for generating source code, web pages,
|
||||
emails, or any other formatted text output. StringTemplate
|
||||
is particularly good at multi-targeted code generators,
|
||||
multiple site skins, and internationalization/localization.
|
||||
|
||||
%package javadoc
|
||||
|
||||
Summary: API documentation for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkgname}-%{version}
|
||||
|
||||
# copy sources missing in source archive into places
|
||||
cp %{SOURCE1} src/org/stringtemplate/v4/compiler/STLexer.tokens
|
||||
mkdir -p src/org/antlr/runtime/misc
|
||||
# this is temporary until we build new antlr3 properly
|
||||
cp %{SOURCE2} src/org/antlr/runtime/misc/DoubleKeyMap.java
|
||||
cp %{SOURCE3} pom.xml
|
||||
|
||||
rm -rf lib/* target
|
||||
ln -sf $(build-classpath antlr3) lib/antlr-3.3-complete.jar
|
||||
ln -sf $(build-classpath ant/ant-antlr3) lib/ant-antlr3.jar
|
||||
|
||||
sed -i \
|
||||
's:location="${ant-antlr3.jar}":location="/usr/share/java/antlr3-runtime.jar":' build.xml
|
||||
sed -i 's:<path id="classpath">:<path id="classpath">\n<pathelement location="'\
|
||||
$(build-classpath stringtemplate4)'"/>:' build.xml
|
||||
|
||||
%build
|
||||
export CLASSPATH="`build-classpath ant/ant-antlr3 antlr3 antlr3-runtime antlr`"
|
||||
ant build-jar
|
||||
|
||||
%javadoc -d javadoc -public `find build/src build/gen -name '*.java'`
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -p -m 644 dist/ST-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap
|
||||
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
|
||||
|
||||
%files
|
||||
%doc LICENSE.txt README.txt
|
||||
%{_datadir}/java/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%doc LICENSE.txt
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Tue Aug 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.4-4
|
||||
- Fix file permissions
|
||||
|
||||
* Thu Jul 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.4-3
|
||||
- Fix build. stringtemplate4 now needs itself to build so add it to
|
||||
classpath
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.4-1
|
||||
- Initial version of the package
|
||||
|
Loading…
Add table
Reference in a new issue