%global bundle com.springsource.net.sf.xslthl Name: xslthl Version: 2.1.3 Release: 1%{?dist} Summary: XSLT syntax highlighting License: zlib Url: http://sourceforge.net/p/xslthl/wiki/Home/ # svn export svn://svn.code.sf.net/p/xslthl/code/trunk/xslthl/ xslthl-2.1.3 # find xslthl-2.1.3/ -name '*.bat' -print -delete # find xslthl-2.1.3/ -name '*.class' -print -delete # find xslthl-2.1.3/ -name '*.jar' -print -delete # tar cJf xslthl-2.1.3.tar.xz xslthl-2.1.3 Source0: %{name}-%{version}.tar.xz Patch0: xslthl-2.1.3-disable-failing-tests.patch BuildRequires: dos2unix BuildRequires: maven-local BuildRequires: mvn(net.sf.saxon:saxon) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(xalan:xalan) BuildRequires: mvn(xalan:serializer) BuildRequires: mvn(junit:junit) BuildArch: noarch %description This is an implementation of syntax highlighting as an extension module for XSLT processors, so if you have e.g. article about programming written in DocBook, code examples can be automatically syntax highlighted during the XSLT processing phase. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q %patch0 -p1 %pom_remove_plugin :findbugs-maven-plugin %pom_remove_plugin :maven-assembly-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin %pom_xpath_remove pom:build/pom:extensions %pom_remove_dep saxon:saxon # require saxon = 6.5.3 rm src/main/java/net/sf/xslthl/ConnectorSaxon6.java # require 9.0.0.8 <= saxon >= 8.5.1 rm src/main/java/net/sf/xslthl/ConnectorSaxonB.java # add OSGi support %pom_add_plugin org.apache.felix:maven-bundle-plugin . ' true com.springsource.net.sf.xslthl XSLT for Syntax Highlighting SpringSource ${project.version} bundle-manifest process-classes manifest ' %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . ' ${project.build.outputDirectory}/META-INF/MANIFEST.MF . com.springsource.net.sf.xslthl SpringSource ${project.version} XSLT for Syntax Highlighting SpringSource ${project.version} ' dos2unix LICENSE.txt dos2unix CHANGES.txt %mvn_file :%{name} %{name} %mvn_alias :%{name} net.sourceforge.xslthl:%{bundle} %build %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install mkdir -p %{buildroot}%{_datadir}/%{name} cp -pr highlighters/*.xml %{buildroot}%{_datadir}/%{name}/ %files -f .mfiles %{_datadir}/%{name} %doc CHANGES.txt %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Thu Feb 12 2015 gil cattaneo 2.1.3-1 - update to 2.1.3 * Mon Apr 16 2012 gil cattaneo 2.0.2-1 - initial rpm