Files
commonmark-java/commonmark-java.spec
Fridrich Strba 3d9adcc9c3 Accepting request 1138414 from home:urbic:branches:Java:packages
- Update to v0.21.0
  * Added
    + GitHub strikethrough: With the previous version we adjusted
      the extension to also accept the single tilde syntax. But if
      you use another extension that uses the single tilde syntax,
      you will get a conflict. To avoid that,
      StrikethroughExtension can now be configured to require two
      tildes like before, see Javadoc. (#271)
- Update to v0.20.0
  * Fixed
    + GitHub tables: A single pipe (optional whitespace) now ends a
      table instead of crashing or being treated as an empty row,
      for consistency with GitHub (#255).
    + GitHub strikethrough: A single tilde now also works, and more
      than two tildes are not accepted anymore. This brings us in
      line with what GitHub actually does, which is a bit
      underspecified (#267)
    + The autolink extension now handles source spans correctly
      (#209)
- Update to v0.19.0
  * Added
    + YAML front matter extension: Limited support for single and
      double quoted string values (#260)
  * Changed
    + Check argument of enabledBlockTypes when building parser
      instead of NPEing later
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp

OBS-URL: https://build.opensuse.org/request/show/1138414
OBS-URL: https://build.opensuse.org/package/show/Java:packages/commonmark-java?expand=0&rev=4
2024-01-15 12:18:37 +00:00

82 lines
2.9 KiB
RPMSpec

#
# spec file
#
# 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
# 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/
#
%global project_name commonmark
Name: %{project_name}-java
Version: 0.21.0
Release: 0
Summary: Java library for parsing and rendering CommonMark (Markdown)
License: BSD-2-Clause
Group: Development/Libraries/Java
URL: https://github.com/%{project_name}/%{name}
Source: %{url}/archive/refs/tags/%{project_name}-parent-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(org.nibor.autolink:autolink)
BuildArch: noarch
%description
Java library for parsing and rendering Markdown text according to the
CommonMark specification (and some extensions).
Provides classes for parsing input to an abstract syntax tree of nodes (AST),
visiting and manipulating nodes, and rendering to HTML. It started out as a
port of commonmark.js, but has since evolved into a full library with a nice
API and the following features:
Small (core has no dependencies, extensions in separate artifacts)
Fast (10—20 times faster than pegdown, see benchmarks in repo)
Flexible (manipulate the AST after parsing, customize HTML rendering)
Extensible (tables, strikethrough, autolinking and more, see below)
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{name}-%{project_name}-parent-%{version}
%pom_remove_plugin -r org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_xpath_set -r 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:source' 8
%pom_xpath_set -r 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:target' 8
%{mvn_file} ':{*}' %{project_name}/@1
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install
%mvn_install
mv %{buildroot}%{_javadocdir}/%{name} %{buildroot}%{_javadocdir}/%{project_name}
%fdupes %{buildroot}%{_javadocdir}/%{project_name}
%files -f .mfiles
%license LICENSE.txt
%doc {README,CHANGELOG,CONTRIBUTING}.md
%files javadoc
%license LICENSE.txt
%{_javadocdir}
%changelog