diff --git a/velocity.spec b/velocity.spec index e6a70d3..9b13aa9 100644 --- a/velocity.spec +++ b/velocity.spec @@ -11,7 +11,6 @@ Source0: http://central.maven.org/maven2/org/apache/velocity/velocity-eng Patch0: 0001-Remove-parent-velocity-master.patch Patch1: 0002-Fix-javacc-template-keyword.patch -BuildRequires: javapackages-local BuildRequires: maven-local BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin) @@ -36,28 +35,14 @@ template services for the Turbine web application framework. Velocity+Turbine provides a template service that will allow web applications to be developed according to a true MVC model. -%package manual -Summary: Manual for %{name} - -%description manual -Documentation for %{name}. - %package javadoc Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. -%package demo -Summary: Demo for %{name} -Requires: %{name} = %{version}-%{release} - -%description demo -Demonstrations and samples for %{name}. - %prep %setup -q -n velocity-engine-parent-%{version} - %patch0 -p1 %patch1 -p1 @@ -70,33 +55,15 @@ Demonstrations and samples for %{name}. %mvn_build -f %install -%mvn_file : %{name} -%mvn_alias : %{name}:%{name} -%mvn_artifact pom.xml bin/%{name}-%{version}.jar -%mvn_install -J docs/api - -# zero-length file -rm -r test/issues/velocity-537/compare/velocity537.vm.cmp -# data -install -d -m 755 %{buildroot}%{_datadir}/%{name} -cp -pr examples test %{buildroot}%{_datadir}/%{name} - +%mvn_install %files -f .mfiles %doc README.txt %license LICENSE NOTICE -%files manual -%license LICENSE NOTICE -%doc docs/* - %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE -%files demo -%license LICENSE NOTICE -%{_datadir}/%{name} - %changelog * Thu Jun 06 2019 Marian Koncek - 2.1-1 - Update to upstream version 2.1