commit d17aec363700d645629b23affad30e6a5f9f61e60eb89c64521d99799195cd93 Author: Fridrich Strba Date: Mon May 9 11:09:39 2022 +0000 Accepting request 974504 from home:urbic:java Submitting a new package OBS-URL: https://build.opensuse.org/request/show/974504 OBS-URL: https://build.opensuse.org/package/show/Java:packages/commonmark-java?expand=0&rev=1 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/commonmark-java.changes b/commonmark-java.changes new file mode 100644 index 0000000..15b1ee6 --- /dev/null +++ b/commonmark-java.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 23 09:10:07 UTC 2021 - Anton Shvetz + +- Initial packaging with v0.18.0 diff --git a/commonmark-java.spec b/commonmark-java.spec new file mode 100644 index 0000000..8661aa6 --- /dev/null +++ b/commonmark-java.spec @@ -0,0 +1,76 @@ +# +# spec file for package commonmark-java +# +# 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/ +# + + +%global project_name commonmark +Name: %{project_name}-java +Version: 0.18.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: 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 +%{mvn_file} ':{*}' %{project_name}/@1 + +%build +%{mvn_build} -f -- -D source=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 diff --git a/commonmark-parent-0.18.0.tar.gz b/commonmark-parent-0.18.0.tar.gz new file mode 100644 index 0000000..b75cb5e --- /dev/null +++ b/commonmark-parent-0.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4616539c5c05e52c60a93a472ac47df419b21083ba53eb5c51e8c8d4f6660948 +size 307926