diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 8ad78b6..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# texi2html - -#### 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 a84f7a9..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# texi2html - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 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/texi2html-5.0-Do-not-install-Unicode-EastAsianWidth-if-external-is.patch b/texi2html-5.0-Do-not-install-Unicode-EastAsianWidth-if-external-is.patch new file mode 100644 index 0000000..a2b7eb9 --- /dev/null +++ b/texi2html-5.0-Do-not-install-Unicode-EastAsianWidth-if-external-is.patch @@ -0,0 +1,38 @@ +From 91a0efcf09a95c0a3e74ca4e1d6225a860e010d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 22 Oct 2014 09:43:25 +0200 +Subject: [PATCH] Do not install Unicode-EastAsianWidth if external is used +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Configuration --with-external-Unicode-EastAsianWidth=yes should not +install the bundled Unicode-EastAsianWidth code. This patch fixes it. + +Signed-off-by: Petr Písař +--- + Makefile.am | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 3447463..bc3257b 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -267,9 +267,11 @@ install-data-local: i18n + $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode + $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/RecodeData/*.pm \ + $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData +- $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode +- $(INSTALL_DATA) $(srcdir)/lib/Unicode-EastAsianWidth/lib/Unicode/EastAsianWidth.pm \ +- $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode ++ if test '$(USE_EXTERNAL_EASTASIANWIDTH)' != 'yes'; then \ ++ $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode ; \ ++ $(INSTALL_DATA) $(srcdir)/lib/Unicode-EastAsianWidth/lib/Unicode/EastAsianWidth.pm \ ++ $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode ; \ ++ fi + + uninstall-local: + rm -rf $(DESTDIR)$(pkgdatadir)/lib/ $(DESTDIR)$(pkgdatadir)/i18n +-- +1.9.3 + diff --git a/texi2html-5.0-Do-not-install-libintl-perl-if-external-is-used.patch b/texi2html-5.0-Do-not-install-libintl-perl-if-external-is-used.patch new file mode 100644 index 0000000..bc0730b --- /dev/null +++ b/texi2html-5.0-Do-not-install-libintl-perl-if-external-is-used.patch @@ -0,0 +1,48 @@ +From 68e345ada811cdea2d9ccf056001e15f6e2316a0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 22 Oct 2014 10:30:16 +0200 +Subject: [PATCH] Do not install libintl-perl if external is used +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Configuration --with-external-libintl-perl=yes should not +install the bundled libintl-perl code. This patch fixes it. + +Signed-off-by: Petr Písař +--- + Makefile.am | 18 ++++++++++-------- + 1 file changed, 10 insertions(+), 8 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index bc3257b..37dfd0f 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -259,14 +259,16 @@ distclean-local: + install-data-local: i18n + $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/i18n + $(INSTALL_DATA) i18n/*.thl $(DESTDIR)$(pkgdatadir)/i18n +- $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode \ +- $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData +- $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/*.pm \ +- $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale +- $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/Recode/*.pm \ +- $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode +- $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/RecodeData/*.pm \ +- $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData ++ if test '$(USE_EXTERNAL_LIBINTL)' != 'yes'; then \ ++ $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode \ ++ $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData ;\ ++ $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/*.pm \ ++ $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale ; \ ++ $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/Recode/*.pm \ ++ $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode ; \ ++ $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/RecodeData/*.pm \ ++ $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData ; \ ++ fi + if test '$(USE_EXTERNAL_EASTASIANWIDTH)' != 'yes'; then \ + $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode ; \ + $(INSTALL_DATA) $(srcdir)/lib/Unicode-EastAsianWidth/lib/Unicode/EastAsianWidth.pm \ +-- +1.9.3 + diff --git a/texi2html-5.0.tar.bz2 b/texi2html-5.0.tar.bz2 new file mode 100644 index 0000000..b1373c9 Binary files /dev/null and b/texi2html-5.0.tar.bz2 differ diff --git a/texi2html.spec b/texi2html.spec new file mode 100644 index 0000000..df99d54 --- /dev/null +++ b/texi2html.spec @@ -0,0 +1,78 @@ +Name: texi2html +Version: 5.0 +Release: 12 +License: GPLv2+ and OFSFDL and (CC-BY-SA or GPLv2) +Summary: Tools for converting Texinfo source files to HTML output +URL: http://www.nongnu.org/texi2html/ +Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.bz2 +# Do not install bundled Unicode-EastAsianWidth, bug #1154436, +# +Patch0: texi2html-5.0-Do-not-install-Unicode-EastAsianWidth-if-external-is.patch +# Do not install bundled libintl-perl, +Patch1: texi2html-5.0-Do-not-install-libintl-perl-if-external-is-used.patch + +Requires: latex2html perl-interpreter >= 5.004 +Requires: perl(Locale::Messages) +Requires: perl(Text::Unidecode) +Requires: perl(Unicode::EastAsianWidth) +BuildRequires: git +BuildArch: noarch + +%description +Texi2HTML is a Perl script which converts Texinfo source files to HTML output,\ +it now supports many advanced features, such as internationalization and extremely\ +configurable output formats.\ + +%package help +Summary: Help manual for %{name} + +%description help +The %{name}-help package conatins man manual etc + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit +# Remove bundled modules +rm -r lib +# Regenerate build script because of the patch +aclocal -I m4 +automake --add-missing +autoconf + +%build +%configure --with-external-libintl-perl=yes \ + --with-external-Unicode-EastAsianWidth=yes +%make_build + +%install +#rm -rf $RPM_BUILD_ROOT +%make_install +rm -f $RPM_BUILD_ROOT%{_infodir}/dir + +# directories shared by all the texinfo implementations for common +# config files, like htmlxref.cnf +mkdir -p $RPM_BUILD_ROOT%{_datadir}/texinfo $RPM_BUILD_ROOT%{_sysconfdir}/texinfo + +%find_lang %{name} +%find_lang %{name}_document + +%check +#make check + +%files -f %{name}.lang -f %{name}_document.lang +%doc ChangeLog NEWS README TODO %{name}.init +%license AUTHORS COPYING +%{_bindir}/%{name} +%{_datadir}/texinfo/html/%{name}.html +%{_infodir}/%{name}.info* +%{_datadir}/texinfo/init/*.init +%{_datadir}/%{name}/i18n/* +%{_datadir}/%{name}/images/* +%dir %{_datadir}/texinfo +%dir %{_sysconfdir}/texinfo + +%files help +%{_mandir}/man*/%{name}* + +%changelog +* Mon Dec 9 2019 openEuler Buildteam - 5.0-12 +- Package init