Name: pegdown Version: 1.4.2 Release: 15%{?dist} Summary: Java library for Markdown processing License: ASL 2.0 URL: http://pegdown.org Source0: https://github.com/sirthias/pegdown/archive/%{version}.tar.gz # Newer release use sbt builder Source1: http://repo1.maven.org/maven2/org/pegdown/pegdown/%{version}/pegdown-%{version}.pom # Forwarded upstream: https://github.com/sirthias/pegdown/pull/130 Patch0: %{name}-rhbz1096735.patch BuildRequires: maven-local BuildRequires: mvn(net.sf.jtidy:jtidy) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.parboiled:parboiled-java) %if 0 # test deps BuildRequires: mvn(org.specs2:specs2_2.9.3) %endif BuildArch: noarch %description A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q find . -name "*.class" -delete find . -name "*.jar" -delete %patch0 -p1 cp -p %{SOURCE1} pom.xml %pom_xpath_inject "pom:project" " " %pom_xpath_inject "pom:build" " . \${project.build.outputDirectory}/META-INF LICENSE NOTICE " %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . " \${project.build.outputDirectory}/META-INF/MANIFEST.MF true true " %pom_add_plugin org.apache.felix:maven-bundle-plugin . " true \${user.name} org.pegdown pegdown pegdown.org \${project.version} bundle-manifest process-classes manifest " rm -r src/test/scala/* %pom_remove_dep org.specs2:specs2_2.9.3 %mvn_file :%{name} %{name} %build %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc CHANGELOG README.markdown %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Fri Jul 26 2019 Fedora Release Engineering - 1.4.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.4.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.4.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.4.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.4.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.4.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jun 15 2016 Mikolaj Izdebski - 1.4.2-9 - Add missing build-requires * Thu Feb 04 2016 Fedora Release Engineering - 1.4.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 25 2015 gil cattaneo 1.4.2-6 - drop ExcludeArch for ARM * Sat May 23 2015 gil cattaneo 1.4.2-5 - exclude on ARM (rhbz#1224472) * Wed Feb 11 2015 gil cattaneo 1.4.2-4 - introduce license macro * Sat Jun 07 2014 Fedora Release Engineering - 1.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 12 2014 Mikolaj Izdebski - 1.4.2-2 - Fix invalid HTML when serializing images - Resolves: rhbz#1096735 * Thu Mar 20 2014 gil cattaneo 1.4.2-1 - update to 1.4.2 * Tue Nov 26 2013 gil cattaneo 1.4.1-1 - update to 1.4.1 rhbz#1034825 * Sat Aug 03 2013 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jul 05 2013 gil cattaneo 1.1.0-5 - switch to XMvn - minor changes to adapt to current guideline * Thu Feb 14 2013 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 1.1.0-3 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Fri Jul 20 2012 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 12 2012 gil cattaneo 1.1.0-1 - initial rpm