%global namedreltag .RELEASE %global namedversion %{version}%{?namedreltag} Name: thymeleaf-spring3 Version: 2.1.4 Release: 1%{?dist} Summary: Thymeleaf integration module for Spring Framework 3.x License: ASL 2.0 URL: http://www.thymeleaf.org/ Source0: https://github.com/thymeleaf/thymeleaf-spring/archive/%{name}-%{namedversion}.tar.gz BuildRequires: maven-local BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.springframework:spring-beans) BuildRequires: mvn(org.springframework:spring-expression) BuildRequires: mvn(org.springframework:spring-web) BuildRequires: mvn(org.springframework:spring-webmvc) BuildRequires: mvn(org.springframework.webflow:spring-js) BuildRequires: mvn(org.springframework.webflow:spring-webflow) BuildRequires: mvn(org.thymeleaf:thymeleaf) BuildArch: noarch %description Thymeleaf integration module for Spring 3.x. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n thymeleaf-spring-%{name}-%{namedversion} find -name "*.class" -delete find -name "*.jar" -print -delete cd %{name} %pom_remove_plugin :maven-gpg-plugin %pom_remove_plugin :maven-source-plugin %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions" %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration/pom:reportOutputDirectory" %pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-resources-plugin']/pom:configuration/pom:encoding" UTF-8 %pom_xpath_set "pom:properties/pom:maven.compile.source" 1.6 %pom_xpath_set "pom:properties/pom:maven.compile.target" 1.6 %pom_xpath_set "pom:properties/pom:project.build.sourceEncoding" UTF-8 %pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'javax.servlet']/pom:version" 3.1.0 %pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'javax.servlet']/pom:artifactId" javax.servlet-api %mvn_file : %{name} chmod 644 ChangeLog.txt NOTICE.txt cp -p ChangeLog.txt ../. cp -p LICENSE.txt ../. cp -p NOTICE.txt ../. cp -p USAGE.txt ../. %build cd %{name} %mvn_build %install cd %{name} %mvn_install %files -f %{name}/.mfiles %doc CONTRIBUTING.markdown ChangeLog.txt USAGE.txt %license LICENSE.txt NOTICE.txt %files javadoc -f %{name}/.mfiles-javadoc %license LICENSE.txt NOTICE.txt %changelog * Thu Mar 19 2015 gil cattaneo 2.1.4-1 - initial rpm