Sync from SUSE:SLFO:Main pegdown revision ed6cf3c67e37ba3c1a3fff99a60dc076

This commit is contained in:
Adrian Schröter 2024-05-31 14:54:28 +02:00
parent ce3b3ca116
commit f0d52344b7
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 21 21:02:55 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Sun Mar 20 16:19:57 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package pegdown
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -22,16 +22,16 @@ Release: 0
Summary: Java library for Markdown processing
License: Apache-2.0
Group: Development/Libraries/Java
URL: http://pegdown.org
URL: https://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
Source1: https://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: javapackages-local >= 6
BuildRequires: parboiled
Requires: mvn(org.parboiled:parboiled-java)
BuildArch: noarch
@ -51,7 +51,7 @@ This package contains javadoc for %{name}.
%setup -q
find . -name "*.class" -delete
find . -name "*.jar" -delete
%patch0 -p1
%patch -P 0 -p1
cp %{SOURCE1} pom.xml
cp %{SOURCE2} build.xml
@ -72,7 +72,7 @@ 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
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}