From df8d76eb902a59774c9dc7e699130df0f2b83f7d Mon Sep 17 00:00:00 2001 From: tuibuilder_pel7x64builder0 Date: Mon, 17 May 2021 14:00:15 +0200 Subject: [PATCH] git-latexdiff package createion Signed-off-by: tuibuilder_pel7x64builder0 --- SOURCES/git-latexdiff-Makefile.patch | 27 +++++++++++++++++ SPECS/git-latexdiff.spec | 44 ++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 SOURCES/git-latexdiff-Makefile.patch create mode 100644 SPECS/git-latexdiff.spec diff --git a/SOURCES/git-latexdiff-Makefile.patch b/SOURCES/git-latexdiff-Makefile.patch new file mode 100644 index 0000000..f966aeb --- /dev/null +++ b/SOURCES/git-latexdiff-Makefile.patch @@ -0,0 +1,27 @@ +--- Makefile 2021-05-17 13:17:24.010000000 +0200 ++++ Makefile 2021-05-17 13:51:21.580000000 +0200 +@@ -38,10 +38,11 @@ + install: install-bin install-doc + + install-bin: ++ mkdir -p $(DESTDIR)/$(gitexecdir_SQ)/ + sed -e '1s|#!.*/bash|#!$(BASH_PATH_SQ)|' \ + -e 's|@GIT_LATEXDIFF_VERSION@|$(GIT_LATEXDIFF_VERSION)|' \ +- $(SCRIPT) > '$(gitexecdir_SQ)/$(SCRIPT)' +- chmod 755 '$(gitexecdir_SQ)/$(SCRIPT)' ++ $(SCRIPT) > '$(DESTDIR)/$(gitexecdir_SQ)/$(SCRIPT)' ++ chmod 755 '$(DESTDIR)/$(gitexecdir_SQ)/$(SCRIPT)' + + git-latexdiff.txt: git-latexdiff git-latexdiff.txt.header + ( cat git-latexdiff.txt.header ; \ +@@ -73,8 +74,8 @@ + } + + install-doc: git-latexdiff.1 +- mkdir -p $(gitmanpath_SQ)/man1/ +- cp $< $(gitmanpath_SQ)/man1/ ++ mkdir -p $(DESTDIR)/$(gitmanpath_SQ)/man1/ ++ cp $< $(DESTDIR)/$(gitmanpath_SQ)/man1/ + + dist: dist/git-latexdiff.zip + dist/git-latexdiff.zip: force diff --git a/SPECS/git-latexdiff.spec b/SPECS/git-latexdiff.spec new file mode 100644 index 0000000..31e9d0e --- /dev/null +++ b/SPECS/git-latexdiff.spec @@ -0,0 +1,44 @@ +Name: git-latexdiff +Version: 1.6.0 +Release: 1%{?dist} +URL: https://gitlab.com/git-latexdiff/git-latexdiff/-/tree/master +Summary: Determine and mark up significant differences between latex files +Source: https://gitlab.com/git-latexdiff/git-latexdiff/-/archive/%{version}/git-latexdiff-%{version}.tar.bz2 +Patch0: git-latexdiff-Makefile.patch +License: BSD +Group: Applications/Text +Requires: tex(latex) +Requires: diffutils +BuildArch: noarch + + +%description +git-latexdiff is a tool to graphically visualize differences between different versions of a LaTeX file. +Technically, it is a wrapper around git and latexdiff. +If your LaTeX source is split accross several *.tex files, +git latexdiff can call latexpand to expand it before running +latexdiff (this usually works better than using latexdiff --flatten). + + +%prep +%setup +%patch0 -p0 + + +%build + + + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%{_libexecdir}/git-core/git-latexdiff +%{_mandir}/man1/git-latexdiff.1* + + + + +%changelog