Package init
This commit is contained in:
parent
05da738706
commit
43610adc2b
BIN
1.4.2.tar.gz
Normal file
BIN
1.4.2.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -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/)
|
||||
39
README.md
39
README.md
@ -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/)
|
||||
52
pegdown-1.4.2.pom
Normal file
52
pegdown-1.4.2.pom
Normal file
@ -0,0 +1,52 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.pegdown</groupId>
|
||||
<artifactId>pegdown</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<description>A Java 1.5+ library providing a clean and lightweight markdown processor</description>
|
||||
<url>http://pegdown.org</url>
|
||||
<version>1.4.2</version>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<name>pegdown</name>
|
||||
<inceptionYear>2009</inceptionYear>
|
||||
<organization>
|
||||
<name>org.pegdown</name>
|
||||
<url>http://pegdown.org</url>
|
||||
</organization>
|
||||
<scm>
|
||||
<url>git@github.com:sirthias/pegdown.git</url>
|
||||
<connection>scm:git:git@github.com:sirthias/pegdown.git</connection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>sirthias</id>
|
||||
<name>Mathias Doenitz</name>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-java</artifactId>
|
||||
<version>1.1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.jtidy</groupId>
|
||||
<artifactId>jtidy</artifactId>
|
||||
<version>r938</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.specs2</groupId>
|
||||
<artifactId>specs2_2.9.3</artifactId>
|
||||
<version>1.12.4.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
13
pegdown-rhbz1096735.patch
Normal file
13
pegdown-rhbz1096735.patch
Normal file
@ -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) {
|
||||
130
pegdown.spec
Normal file
130
pegdown.spec
Normal file
@ -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" \
|
||||
"<build>
|
||||
<plugins>
|
||||
|
||||
</plugins>
|
||||
</build>"
|
||||
|
||||
%pom_xpath_inject "pom:build" \
|
||||
"<resources>
|
||||
<resource>
|
||||
<directory>.</directory>
|
||||
<targetPath>
|
||||
\${project.build.outputDirectory}/META-INF
|
||||
</targetPath>
|
||||
<includes>
|
||||
<include>
|
||||
LICENSE
|
||||
</include>
|
||||
<include>
|
||||
NOTICE
|
||||
</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>"
|
||||
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . \
|
||||
"<configuration>
|
||||
<archive>
|
||||
<manifestFile>
|
||||
\${project.build.outputDirectory}/META-INF/MANIFEST.MF
|
||||
</manifestFile>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>
|
||||
true
|
||||
</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>
|
||||
true
|
||||
</addDefaultSpecificationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>"
|
||||
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin . \
|
||||
"<extensions>
|
||||
true
|
||||
</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Built-By>
|
||||
\${user.name}
|
||||
</Built-By>
|
||||
<Bundle-SymbolicName>
|
||||
org.pegdown
|
||||
</Bundle-SymbolicName>
|
||||
<Bundle-Name>
|
||||
pegdown
|
||||
</Bundle-Name>
|
||||
<Bundle-Vendor>
|
||||
pegdown.org
|
||||
</Bundle-Vendor>
|
||||
<Bundle-Version>
|
||||
\${project.version}
|
||||
</Bundle-Version>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>
|
||||
bundle-manifest
|
||||
</id>
|
||||
<phase>
|
||||
process-classes
|
||||
</phase>
|
||||
<goals>
|
||||
<goal>
|
||||
manifest
|
||||
</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>"
|
||||
|
||||
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 <buildteam@openeuler.org> - 1.4.2-14
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user