Package init
This commit is contained in:
parent
947642e925
commit
dc79578d89
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# linuxdoc-tools
|
||||
|
||||
#### 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 @@
|
||||
# linuxdoc-tools
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 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/)
|
||||
24
linuxdoc-tools-0.9.13-letter.patch
Normal file
24
linuxdoc-tools-0.9.13-letter.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- linuxdoc-tools-0.9.13/perl5lib/LinuxDocTools.pm.letter Mon Nov 26 16:09:37 2001
|
||||
+++ linuxdoc-tools-0.9.13/perl5lib/LinuxDocTools.pm Mon Nov 26 16:09:49 2001
|
||||
@@ -108,7 +108,7 @@
|
||||
{ option => "pass", type => "s", short => "P" }
|
||||
];
|
||||
$global->{backend} = "linuxdoc";
|
||||
- $global->{papersize} = "a4";
|
||||
+ $global->{papersize} = "letter";
|
||||
$global->{language} = "en";
|
||||
$global->{charset} = "ascii";
|
||||
$global->{style} = "";
|
||||
--- linuxdoc-tools-0.9.13/man/linuxdoc.1.letter Mon Nov 26 16:10:04 2001
|
||||
+++ linuxdoc-tools-0.9.13/man/linuxdoc.1 Mon Nov 26 16:10:42 2001
|
||||
@@ -46,8 +46,8 @@
|
||||
format, but just output the usage of this suites.
|
||||
Available formats are: html, info, latex, lyx, rtf, txt, check.
|
||||
.IP "--papersize=\fIsize\fR, -p
|
||||
-Set the paper size. Default is ``a4'' (European 297x210mm paper).
|
||||
-You may also specify ``letter'' size.
|
||||
+Set the paper size. Default is ``letter''.
|
||||
+You may also specify ``a4'' size (European 297x210mm paper).
|
||||
.IP "--language=\fIlang\fR, -l"
|
||||
Specify the language of the document (this may change which style
|
||||
files are used for formatting by a back end). The default language is
|
||||
10
linuxdoc-tools-0.9.20-lib64.patch
Normal file
10
linuxdoc-tools-0.9.20-lib64.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- linuxdoc-tools-0.9.60/bin/linuxdoc.in.orig
|
||||
+++ linuxdoc-tools-0.9.60/bin/linuxdoc.in
|
||||
@@ -23,6 +23,7 @@
|
||||
$AuxBinDir = "@auxbindir@";
|
||||
|
||||
use lib "@pkgdatadir@";
|
||||
+use lib "@prefix@/lib64/perl5";
|
||||
use lib "@perl5libdir@";
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
94
linuxdoc-tools.spec
Normal file
94
linuxdoc-tools.spec
Normal file
@ -0,0 +1,94 @@
|
||||
%global _vendorperllibdir %{_datadir}/perl5/vendor_perl
|
||||
|
||||
Summary: Convert LinuxDoc SGML source into other formats
|
||||
Name: linuxdoc-tools
|
||||
Version: 0.9.72
|
||||
Release: 7
|
||||
License: MIT
|
||||
Url: https://tracker.debian.org/pkg/linuxdoc-tools
|
||||
Source: http://http.us.debian.org/debian/pool/main/l/linuxdoc-tools/%{name}_%{version}.orig.tar.gz
|
||||
Patch0: linuxdoc-tools-0.9.13-letter.patch
|
||||
Patch1: linuxdoc-tools-0.9.20-lib64.patch
|
||||
|
||||
BuildRequires: gcc flex flex-static sgml-common jade
|
||||
BuildRequires: gawk groff autoconf automake texinfo
|
||||
BuildRequires: perl-interpreter >= 4:5.10.1 perl-generators
|
||||
Requires: jade gawk groff
|
||||
Requires(post): %{_bindir}/texconfig-sys
|
||||
Requires(postun): %{_bindir}/texconfig-sys
|
||||
Requires: tex(latex)
|
||||
|
||||
Provides: sgml-tools = %{version}-%{release}
|
||||
Provides: linuxdoc-sgml = %{version}-%{release}
|
||||
|
||||
%description
|
||||
LinuxDoc sgml is a highly configurable text format for writing
|
||||
documentation, something like html only it's simpler and can be
|
||||
converted to various other formats, including html for websites.
|
||||
|
||||
%package_help
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -i
|
||||
%configure --with-installed-nsgmls --with-installed-iso-entities --disable-docs
|
||||
pushd entity-map
|
||||
autoconf
|
||||
%configure --enable-docs pdf
|
||||
popd
|
||||
|
||||
%make_build OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
|
||||
perl5lib/LinuxDocTools.pm
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_vendorperllibdir}
|
||||
%make_install perl5libdir=%{_vendorperllibdir}
|
||||
[ %{buildroot}%{_docdir}/%{name} = %{buildroot}%{_pkgdocdir} ] \
|
||||
|| mv %{buildroot}%{_docdir}/%{name} %{buildroot}%{_pkgdocdir}
|
||||
perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
|
||||
%{buildroot}%{_vendorperllibdir}/LinuxDocTools.pm
|
||||
|
||||
install -d %{buildroot}%{_pkgdocdir}/sgmls-1.1
|
||||
cp -p sgmls-1.1/LICENSE %{buildroot}%{_pkgdocdir}/sgmls-1.1/LICENSE
|
||||
install -d %{buildroot}%{_pkgdocdir}/iso-entities
|
||||
cp -p iso-entities/COPYING %{buildroot}%{_pkgdocdir}/iso-entities/COPYING
|
||||
install -d %{buildroot}%{_pkgdocdir}/entity-map
|
||||
cp -p entity-map/COPYING %{buildroot}%{_pkgdocdir}/entity-map/COPYING
|
||||
cp -p COPYING %{buildroot}%{_pkgdocdir}/
|
||||
|
||||
install -d %{buildroot}%{_datadir}/texmf/tex/latex/misc
|
||||
mv %{buildroot}%{_datadir}/%{name}/*.sty \
|
||||
%{buildroot}%{_datadir}/texmf/tex/latex/misc
|
||||
|
||||
%post
|
||||
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%doc %{_pkgdocdir}
|
||||
%{_bindir}/*
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/entity-map
|
||||
%{_datadir}/texmf/tex/latex/misc/*.sty
|
||||
%exclude %{_datadir}/%{name}/epsf.*
|
||||
%exclude %{_datadir}/%{name}/url.sty
|
||||
%dir %{_vendorperllibdir}/Text
|
||||
%{_vendorperllibdir}/Text/EntityMap.pm
|
||||
%dir %{_vendorperllibdir}/LinuxDocTools
|
||||
%{_vendorperllibdir}/LinuxDocTools.pm
|
||||
%{_vendorperllibdir}/LinuxDocTools/*.pm
|
||||
|
||||
%files help
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.9.72-7
|
||||
- Package init
|
||||
BIN
linuxdoc-tools_0.9.72.orig.tar.gz
Normal file
BIN
linuxdoc-tools_0.9.72.orig.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user