diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 0a162e4..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# discount - -#### Description -A command-line utility for onverting Markdown files into HTML - -#### 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 164d6c5..0000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# discount - -#### 介绍 -A command-line utility for onverting Markdown files into HTML - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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/discount-2.2.4.tar.bz2 b/discount-2.2.4.tar.bz2 new file mode 100644 index 0000000..1648d16 Binary files /dev/null and b/discount-2.2.4.tar.bz2 differ diff --git a/discount-dont-run-ldconfig.patch b/discount-dont-run-ldconfig.patch new file mode 100644 index 0000000..ab897fa --- /dev/null +++ b/discount-dont-run-ldconfig.patch @@ -0,0 +1,14 @@ +diff --git a/configure.inc b/configure.inc +index cdd67e2..b06b0c5 100755 +--- a/configure.inc ++++ b/configure.inc +@@ -1433,9 +1433,6 @@ files) echo "\$FULLNAME" "\$LIBNAME" "\$LIBNAME.\$MAJOR" + install)$PROG_INSTALL -c \$FULLNAME "\$1" + $PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME.\$MAJOR + $PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME +-EOF +- test "$LDCONFIG" && echo ' '$LDCONFIG '"$1"' >> librarian.sh +- cat >> librarian.sh << EOF + ;; + esac + EOF diff --git a/discount.spec b/discount.spec new file mode 100644 index 0000000..e893c8e --- /dev/null +++ b/discount.spec @@ -0,0 +1,84 @@ +Name: discount +Version: 2.2.4 +Release: 2 +Summary: Tools for converting Markdown files into HTML +License: BSD +URL: http://www.pell.portland.or.us/~orc/Code/discount +Source0: http://www.pell.portland.or.us/~orc/Code/discount/discount-%{version}.tar.bz2 +# Fixed discount dont run ldconfig +Patch0000: discount-dont-run-ldconfig.patch +Requires: libmarkdown = %{version}-%{release} + +%description +Tools for converting Markdown files into HTML. The package is an implementation of John Gruber's +Markdown language in C. It includes all of the original Markdown features, along with a few +extensions, and passes the Markdown test suite. + +%package -n libmarkdown +Summary: Implementation of the Markdown language in C + +%description -n libmarkdown +Implementation of the Markdown language in C. + +%package -n libmarkdown-devel +Summary: File for libmarkdown development +Requires: libmarkdown = %{version}-%{release} + +%description -n libmarkdown-devel +File for libmarkdown development. + +%package -n libmarkdown-help +Summary: Help file for libmarkdown +Requires: libmarkdown = %{version}-%{release} + +%description -n libmarkdown-help +Help file for libmarkdown. + +%prep +%autosetup -p1 + +%build +CFLAGS='%{optflags}' ./configure.sh --shared --prefix=%{_prefix} --execdir=%{_bindir} --libdir=%{_libdir} \ + --mandir=%{_mandir} --enable-all-features --with-fenced-code --pkg-config +%make_build + +%install +make install.everything DESTDIR=%{buildroot} +install -D -m 644 libmarkdown.pc %{buildroot}%{_libdir}/pkgconfig/ +cp -pav libmarkdown.pc %{buildroot}%{_libdir}/pkgconfig/ +mv %{buildroot}%{_bindir}/makepage %{buildroot}%{_bindir}/discount-makepage +mv %{buildroot}%{_bindir}/mkd2html %{buildroot}%{_bindir}/discount-mkd2html +mv %{buildroot}%{_bindir}/theme %{buildroot}%{_bindir}/discount-theme +mv %{buildroot}%{_mandir}/man1/makepage.1 %{buildroot}%{_mandir}/man1/discount-makepage.1 +mv %{buildroot}%{_mandir}/man1/mkd2html.1 %{buildroot}%{_mandir}/man1/discount-mkd2html.1 +mv %{buildroot}%{_mandir}/man1/theme.1 %{buildroot}%{_mandir}/man1/discount-theme.1 + +%post -n libmarkdown +/sbin/ldconfig + +%postun -n libmarkdown +/sbin/ldconfig + +%check +make test + +%files +%{_bindir}/{markdown,discount-makepage,discount-mkd2html,discount-theme} + +%files -n libmarkdown +%doc README COPYRIGHT CREDITS +%{_libdir}/libmarkdown.so.* + +%files -n libmarkdown-devel +%{_libdir}/libmarkdown.so +%{_libdir}/pkgconfig/libmarkdown.pc +%{_includedir}/mkdio.h + +%files -n libmarkdown-help +%{_mandir}/man1/{markdown.1*,discount-*.1*} +%{_mandir}/man3/{markdown.3*,mkd_*.3*,mkd-*.3*} +%{_mandir}/man7/{markdown.7*,mkd-*.7*} + +%changelog +* Mon Mar 16 2020 Ling Yang - 2.2.4-2 +- Package Init