add pretrans to handle /usr/share/texmf
This commit is contained in:
parent
7f62558b96
commit
2319e9bf94
|
@ -17,7 +17,7 @@
|
|||
|
||||
Name: %{shortname}-base
|
||||
Version: %{source_date}
|
||||
Release: 34%{?dist}
|
||||
Release: 35%{?dist}
|
||||
Epoch: 7
|
||||
Summary: TeX formatting system
|
||||
# The only files in the base package are directories, cache, and license texts
|
||||
|
@ -6311,6 +6311,23 @@ rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/fonts/cjk-gs-integrate
|
|||
|
||||
# SCRIPTLETS
|
||||
|
||||
%pretrans -p <lua>
|
||||
-- Define the path to directory being replaced below.
|
||||
-- DO NOT add a trailing slash at the end.
|
||||
path = "/usr/share/texmf"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "directory" then
|
||||
status = os.rename(path, path .. ".rpmmoved")
|
||||
if not status then
|
||||
suffix = 0
|
||||
while not status do
|
||||
suffix = suffix + 1
|
||||
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
||||
end
|
||||
os.rename(path, path .. ".rpmmoved")
|
||||
end
|
||||
end
|
||||
|
||||
%pre
|
||||
rm -rf %{_texdir}/texmf-var
|
||||
rm -rf %{_texmf_var}/*
|
||||
|
@ -6932,6 +6949,7 @@ fi
|
|||
%{_texdir}/texmf-var
|
||||
%{_texdir}/texmf-local/
|
||||
%{_datadir}/texmf
|
||||
%ghost %{_datadir}/texmf.rpmmoved
|
||||
|
||||
%files -n %{shortname}-a2ping
|
||||
%license gpl.txt
|
||||
|
@ -8748,6 +8766,9 @@ fi
|
|||
%doc %{_texdir}/texmf-dist/doc/latex/yplan/
|
||||
|
||||
%changelog
|
||||
* Thu Jun 7 2018 Tom Callaway <spot@fedoraproject.org> - 7:20170520-35
|
||||
- add pretrans to handle /usr/share/texmf
|
||||
|
||||
* Mon Jun 4 2018 Tom Callaway <spot@fedoraproject.org> - 7:20170520-34
|
||||
- add Provides: tetex-dvips
|
||||
- add symlink to /usr/share/texmf for legacy packages
|
||||
|
|
Loading…
Reference in New Issue