Accepting request 151321 from Publishing:TeXLive
- Work around missing support of %posttrans scriptlets in libzypp due missing rpm option for not to execute those scriptlets (bnc#773575) OBS-URL: https://build.opensuse.org/request/show/151321 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texlive-filesystem?expand=0&rev=5
This commit is contained in:
commit
9a6ba40c53
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 5 09:08:31 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
- Work around missing support of %posttrans scriptlets in libzypp
|
||||||
|
due missing rpm option for not to execute those scriptlets (bnc#773575)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 19 09:51:43 UTC 2012 - werner@suse.de
|
Wed Sep 19 09:51:43 UTC 2012 - werner@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package texlive-filesystem
|
# spec file for package texlive-filesystem
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%define texlive_version 2012
|
%define texlive_version 2012
|
||||||
%define texlive_release 20120611
|
%define texlive_release 20120611
|
||||||
%define texlive_noarch 57
|
%define texlive_noarch 61
|
||||||
%define texlive_source texlive-20120611-source
|
%define texlive_source texlive-20120611-source
|
||||||
|
|
||||||
%define __perl_requires %{nil}
|
%define __perl_requires %{nil}
|
||||||
@ -33,6 +33,7 @@ License: GPL-2.0+ and GPL-2.0 and GPL-3.0 and LPPL-1.3c and LPPL-1.0 and
|
|||||||
Group: Productivity/Publishing/TeX/Base
|
Group: Productivity/Publishing/TeX/Base
|
||||||
Url: http://www.tug.org/texlive/
|
Url: http://www.tug.org/texlive/
|
||||||
Requires: cron
|
Requires: cron
|
||||||
|
Requires: python
|
||||||
Requires(pre): /usr/bin/getent
|
Requires(pre): /usr/bin/getent
|
||||||
Requires(pre): /usr/sbin/groupadd
|
Requires(pre): /usr/sbin/groupadd
|
||||||
Requires(post): %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
@ -60,6 +61,7 @@ Source16: fc-t1-texlive.conf
|
|||||||
Source17: fc-truetype-texlive.conf
|
Source17: fc-truetype-texlive.conf
|
||||||
Source30: texlive-filesystem-rpmlintrc
|
Source30: texlive-filesystem-rpmlintrc
|
||||||
Source31: dot.dvipsrc
|
Source31: dot.dvipsrc
|
||||||
|
Source42: zypplugin.in
|
||||||
# Download at ftp://ftp.ctan.org/pub/tex/systems/texlive/tlnet/archive/
|
# Download at ftp://ftp.ctan.org/pub/tex/systems/texlive/tlnet/archive/
|
||||||
# from 20120611
|
# from 20120611
|
||||||
Source1000: scheme-basic.tar.xz
|
Source1000: scheme-basic.tar.xz
|
||||||
@ -10831,6 +10833,8 @@ popd
|
|||||||
%{_fontcache}/tfm/ root:%{texgrp} 1775
|
%{_fontcache}/tfm/ root:%{texgrp} 1775
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
sed -r 's@%%\{_texmfmaindir\}@%{_texmfmaindir}@' < %{S:42} > %{buildroot}%{_texmfmaindir}/texconfig/zypper.py
|
||||||
|
|
||||||
# enviroment
|
# enviroment
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||||
install -m 0644 %{S:13} %{buildroot}%{_sysconfdir}/profile.d/
|
install -m 0644 %{S:13} %{buildroot}%{_sysconfdir}/profile.d/
|
||||||
@ -10966,6 +10970,7 @@ fi
|
|||||||
%dir %{_texmfmaindir}/xdvi/pixmap
|
%dir %{_texmfmaindir}/xdvi/pixmap
|
||||||
%dir %{_texmfmaindir}/texconfig
|
%dir %{_texmfmaindir}/texconfig
|
||||||
%attr(0755,root,root) %{_texmfmaindir}/texconfig/update
|
%attr(0755,root,root) %{_texmfmaindir}/texconfig/update
|
||||||
|
%attr(0755,root,root) %{_texmfmaindir}/texconfig/zypper.py
|
||||||
%dir %{_texmfmaindir}/asymptote
|
%dir %{_texmfmaindir}/asymptote
|
||||||
%dir %{_texmfmaindir}/asymptote/GUI
|
%dir %{_texmfmaindir}/asymptote/GUI
|
||||||
%dir %{_texmfdistdir}
|
%dir %{_texmfdistdir}
|
||||||
|
25
zypplugin.in
Normal file
25
zypplugin.in
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# $TEXMFMAIN/texconfig/zypper.py
|
||||||
|
#
|
||||||
|
# The substitute for the %posttrans scriptlets used by rpm.
|
||||||
|
# Make sure that the update script does its work only once after
|
||||||
|
# an installation/update transaction as zypper executes rpm for
|
||||||
|
# each single texlive package.
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012 SuSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
# Author: Werner Fink, 2012
|
||||||
|
#
|
||||||
|
from os import listdir, path, access, F_OK,R_OK,X_OK
|
||||||
|
from subprocess import call
|
||||||
|
|
||||||
|
global update, tagdir
|
||||||
|
update = "%{_texmfmaindir}/texconfig/update"
|
||||||
|
tagdir = "/var/run/texlive"
|
||||||
|
|
||||||
|
if access(update, F_OK|X_OK):
|
||||||
|
if path.isdir(tagdir) and listdir(tagdir):
|
||||||
|
call("VERBOSE=false " + update + " 2>&1 || :", shell=True)
|
Loading…
x
Reference in New Issue
Block a user