6 Star 0 Fork 0

OpenCloudOS Stream/latexmk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
latexmk.spec 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-05-12 23:44 . update
Name: latexmk
Version: 4.83
Release: 1%{?dist}
Summary: A make-like utility for LaTeX files
%global upstreamver %(sed 's/\\.//' <<< %{version})
License: GPL-2.0-or-later
URL: https://www.cantab.net/users/johncollins/latexmk/
Source0: %{url}%{name}-%{upstreamver}.zip
Source1: latexmkrc
Source2: latexmk-README.tencentos
BuildArch: noarch
BuildRequires: perl-generators
Requires: tex-latex-bin, ghostscript, xdg-utils
%description
Latexmk is a perl script for running LaTeX the correct number of times to
resolve cross references, etc.; it also runs auxiliary programs (bibtex,
makeindex if necessary, and dvips and/or a previewer as requested). It has
a number of other useful capabilities, for example to start a previewer and
then run latex whenever the source files are updated, so that the previewer
gives an up-to-date view of the document. The script runs on both UNIX and
MS-WINDOWS (95, ME, XP, etc). This script is a corrected and improved
version of the original version of latexmk.
Before using a previewer, read the file README.tencentos.
%prep
%autosetup -n %{name}
sed -i.orig "s|^#\!/usr/bin/env perl|#\!/usr/bin/perl -w|" latexmk.pl
touch -r latexmk.pl.orig latexmk.pl
rm latexmk.pl.orig
%build
cp -p %{SOURCE2} README.tencentos
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}
install -m 0755 -p latexmk.pl %{buildroot}%{_bindir}/latexmk
install -m 0644 -p latexmk.1 %{buildroot}%{_mandir}/man1
install -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}
rm -f extra-scripts/*.bat
%files
%{_bindir}/latexmk
%{_mandir}/man1/latexmk.1*
%config(noreplace) %{_sysconfdir}/latexmkrc
%doc CHANGES README README.tencentos extra-scripts example_rcfiles
%doc latexmk.pdf
%license COPYING
%changelog
* Fri Apr 12 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.83-1
- initial build
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/latexmk.git
git@gitee.com:opencloudos-stream/latexmk.git
opencloudos-stream
latexmk
latexmk
master

搜索帮助