%global namedreltag .RELEASE %global namedversion %{version}%{?namedreltag} %global githash abf7e96312fb44c5028661d36f02e53e94d17f3f Name: thymeleaf-extras-conditionalcomments Version: 2.1.2 Release: 0.1.SNAPSHOT%{?dist} Summary: Thymeleaf "extras" dialect for correctly processing IE conditional comments License: ASL 2.0 URL: http://www.thymeleaf.org/ Source0: https://github.com/thymeleaf/thymeleaf-extras-conditionalcomments/archive/%{githash}/%{name}-%{githash}.tar.gz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(log4j:log4j) BuildRequires: mvn(org.attoparser:attoparser) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-log4j12) BuildArch: noarch %description Thymeleaf "extras" dialect for correctly processing IE conditional comments. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{githash} find -name "*.class" -delete find -name "*.jar" -print -delete %pom_remove_plugin :maven-gpg-plugin %pom_remove_plugin :maven-source-plugin %pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-resources-plugin']/pom:configuration/pom:encoding" UTF-8 %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:properties/pom:log4j.version" 1.2.17 chmod 644 LICENSE.txt NOTICE.txt README.markdown %mvn_file : %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc CONTRIBUTING.markdown README.markdown %license LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt NOTICE.txt %changelog * Fri Mar 20 2015 gil cattaneo 2.1.2-0.1.SNAPSHOT - initial rpm