Browse Source

git-latexdiff package createion

Signed-off-by: tuibuilder_pel7x64builder0 <tuibuilder@powerel.org>
master
tuibuilder_pel7x64builder0 3 years ago
parent
commit
df8d76eb90
  1. 27
      SOURCES/git-latexdiff-Makefile.patch
  2. 44
      SPECS/git-latexdiff.spec

27
SOURCES/git-latexdiff-Makefile.patch

@ -0,0 +1,27 @@ @@ -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

44
SPECS/git-latexdiff.spec

@ -0,0 +1,44 @@ @@ -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
Loading…
Cancel
Save