diff --git a/1.4.2.tar.gz b/1.4.2.tar.gz new file mode 100644 index 0000000..e3c0a4f Binary files /dev/null and b/1.4.2.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 6e444c9..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# pegdown - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 7ff4c6e..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# pegdown - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/pegdown-1.4.2.pom b/pegdown-1.4.2.pom new file mode 100644 index 0000000..a1a5d7c --- /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-rhbz1096735.patch b/pegdown-rhbz1096735.patch new file mode 100644 index 0000000..87d26d6 --- /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.spec b/pegdown.spec new file mode 100644 index 0000000..d45519e --- /dev/null +++ b/pegdown.spec @@ -0,0 +1,130 @@ +Name: pegdown +Version: 1.4.2 +Release: 14 +Summary: A pure Java library for clean and lightweight Markdown processing +License: ASL 2.0 +URL: http://pegdown.org +Source0: https://github.com/sirthias/pegdown/archive/%{version}.tar.gz +Source1: http://repo1.maven.org/maven2/org/pegdown/pegdown/%{version}/pegdown-%{version}.pom +Patch0: pegdown-rhbz1096735.patch +BuildArch: noarch + +BuildRequires: maven-local, mvn(net.sf.jtidy:jtidy), mvn(org.apache.felix:maven-bundle-plugin), mvn(org.parboiled:parboiled-java) +Provides: %{name}-javadoc%{?_isa} %{name}-javadoc +Obsoletes: %{name}-javadoc + +%description +pegdown is a pure Java library for clean and lightweight Markdown processing +based on a parboiled PEG parser. +pegdown is nearly 100% compatible with the original Markdown specification and +fully passes the original Markdown test suite. On top of the standard Markdown +feature set pegdown implements a number of extensions similar to what other +popular Markdown processors offer. + +%prep +%autosetup -p1 + +cp -p %{SOURCE1} pom.xml +find . -name "*.jar" -delete +find . -name "*.class" -delete + +%pom_xpath_inject "pom:project" \ +" + + + +" + +%pom_xpath_inject "pom:build" \ +" + + . + + \${project.build.outputDirectory}/META-INF + + + + LICENSE + + + NOTICE + + + +" + +%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . \ +" + + + \${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + true + + + true + + + +" + +%pom_add_plugin org.apache.felix:maven-bundle-plugin . \ +" + true + + + + + \${user.name} + + + org.pegdown + + + pegdown + + + pegdown.org + + + \${project.version} + + + + + + + bundle-manifest + + + process-classes + + + + manifest + + + +" + +rm -rf src/test/scala/* +%pom_remove_dep org.specs2:specs2_2.9.3 + +%mvn_file :%{name} %{name} + +%build +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%doc README.markdown +%license LICENSE NOTICE +%{_javadocdir}/%{name}/* + +%changelog +* Sat Dec 7 2019 openEuler Buildteam - 1.4.2-14 +- Package init