From ce3b3ca116eeb85513e10f9e2a2bb41070140e43bbe20e319245947836bade44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:46:49 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main pegdown revision 53f5fbba30be621892c37493e8b0c45a --- .gitattributes | 23 +++++ 1.4.2.tar.gz | 3 + pegdown-1.4.2.pom | 52 +++++++++++ pegdown-build.xml | 182 ++++++++++++++++++++++++++++++++++++++ pegdown-rhbz1096735.patch | 13 +++ pegdown.changes | 10 +++ pegdown.spec | 90 +++++++++++++++++++ 7 files changed, 373 insertions(+) create mode 100644 .gitattributes create mode 100644 1.4.2.tar.gz create mode 100644 pegdown-1.4.2.pom create mode 100644 pegdown-build.xml create mode 100644 pegdown-rhbz1096735.patch create mode 100644 pegdown.changes create mode 100644 pegdown.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/1.4.2.tar.gz b/1.4.2.tar.gz new file mode 100644 index 0000000..6c14fde --- /dev/null +++ b/1.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41f7824a77475f596406c235b87b4eaa2290480b327ce88e6cff94353caed1d2 +size 105386 diff --git a/pegdown-1.4.2.pom b/pegdown-1.4.2.pom new file mode 100644 index 0000000..5468ebf --- /dev/null +++ b/pegdown-1.4.2.pom @@ -0,0 +1,52 @@ + + + 4.0.0 + org.pegdown + pegdown + jar + A Java 1.5+ library providing a clean and lightweight markdown processor + http://pegdown.org + 1.4.2 + + + Apache 2 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + pegdown + 2009 + + org.pegdown + http://pegdown.org + + + git@github.com:sirthias/pegdown.git + scm:git:git@github.com:sirthias/pegdown.git + + + + sirthias + Mathias Doenitz + + + + + org.parboiled + parboiled-java + 1.1.6 + + + net.sf.jtidy + jtidy + r938 + test + + + org.specs2 + specs2_2.9.3 + 1.12.4.1 + test + + + \ No newline at end of file diff --git a/pegdown-build.xml b/pegdown-build.xml new file mode 100644 index 0000000..ac48e5c --- /dev/null +++ b/pegdown-build.xml @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pegdown-rhbz1096735.patch b/pegdown-rhbz1096735.patch new file mode 100644 index 0000000..c187eea --- /dev/null +++ b/pegdown-rhbz1096735.patch @@ -0,0 +1,13 @@ +diff --git a/src/main/java/org/pegdown/ToHtmlSerializer.java b/src/main/java/org/pegdown/ToHtmlSerializer.java +index 26651da..519a7fc 100644 +--- a/src/main/java/org/pegdown/ToHtmlSerializer.java ++++ b/src/main/java/org/pegdown/ToHtmlSerializer.java +@@ -396,7 +396,7 @@ public class ToHtmlSerializer implements Visitor { + for (LinkRenderer.Attribute attr : rendering.attributes) { + printAttribute(attr.name, attr.value); + } +- printer.print("\"/>"); ++ printer.print("/>"); + } + + protected void printLink(LinkRenderer.Rendering rendering) { diff --git a/pegdown.changes b/pegdown.changes new file mode 100644 index 0000000..9aa4916 --- /dev/null +++ b/pegdown.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Sun Mar 20 16:19:57 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Wed Apr 3 09:11:04 UTC 2019 - Fridrich Strba + +- Initial packaging of pegdown 1.4.2 +- Generate and customize ant build.xml file diff --git a/pegdown.spec b/pegdown.spec new file mode 100644 index 0000000..1ed7cd6 --- /dev/null +++ b/pegdown.spec @@ -0,0 +1,90 @@ +# +# spec file for package pegdown +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: pegdown +Version: 1.4.2 +Release: 0 +Summary: Java library for Markdown processing +License: Apache-2.0 +Group: Development/Libraries/Java +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 +Source2: %{name}-build.xml +# Forwarded upstream: https://github.com/sirthias/pegdown/pull/130 +Patch0: %{name}-rhbz1096735.patch +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildRequires: parboiled +Requires: mvn(org.parboiled:parboiled-java) +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} +Group: Documentation/HTML + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q +find . -name "*.class" -delete +find . -name "*.jar" -delete +%patch0 -p1 + +cp %{SOURCE1} pom.xml +cp %{SOURCE2} build.xml + +rm -r src/test/scala/* +%pom_remove_dep org.specs2:specs2_2.9.3 + +%{mvn_file} :%{name} %{name} + +%build +mkdir -p lib +build-jar-repository -s lib parboiled/core parboiled/java +%{ant} jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir} +install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc CHANGELOG README.markdown +%license LICENSE NOTICE + +%files javadoc +%license LICENSE NOTICE +%{_javadocdir}/%{name} + +%changelog