2019-02-26 09:53:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package pegdown
|
|
|
|
#
|
2024-02-21 22:03:23 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-02-26 09:53:24 +01:00
|
|
|
#
|
|
|
|
# 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
|
2024-02-21 22:03:23 +01:00
|
|
|
URL: https://pegdown.org
|
2019-02-26 09:53:24 +01:00
|
|
|
Source0: https://github.com/sirthias/pegdown/archive/%{version}.tar.gz
|
|
|
|
# Newer release use sbt builder
|
2024-02-21 22:03:23 +01:00
|
|
|
Source1: https://repo1.maven.org/maven2/org/pegdown/pegdown/%{version}/pegdown-%{version}.pom
|
2019-02-26 09:53:24 +01:00
|
|
|
Source2: %{name}-build.xml
|
|
|
|
# Forwarded upstream: https://github.com/sirthias/pegdown/pull/130
|
|
|
|
Patch0: %{name}-rhbz1096735.patch
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
2024-02-21 22:03:23 +01:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2019-02-26 09:53:24 +01:00
|
|
|
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
|
2024-02-21 22:03:23 +01:00
|
|
|
%patch -P 0 -p1
|
2019-02-26 09:53:24 +01:00
|
|
|
|
|
|
|
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}
|
2024-02-21 22:04:02 +01:00
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
2019-02-26 09:53:24 +01:00
|
|
|
%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
|