rpms/xdvik/devel xdvik-22.84.13-tempfix.patch, NONE, 1.1 xdvik.spec, 1.2, 1.3
Jindrich Novy (jnovy)
fedora-extras-commits at redhat.com
Tue Jan 15 14:07:11 UTC 2008
Author: jnovy
Update of /cvs/extras/rpms/xdvik/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13423
Modified Files:
xdvik.spec
Added Files:
xdvik-22.84.13-tempfix.patch
Log Message:
apply temporary file creation fix for xdvizilla, better obsolete xdvi
xdvik-22.84.13-tempfix.patch:
--- NEW FILE xdvik-22.84.13-tempfix.patch ---
diff -up xdvik-22.84.13/texk/xdvik/xdvizilla.orig xdvik-22.84.13/texk/xdvik/xdvizilla
--- xdvik-22.84.13/texk/xdvik/xdvizilla.orig 2006-07-07 23:31:06.000000000 +0200
+++ xdvik-22.84.13/texk/xdvik/xdvizilla 2008-01-15 12:51:15.000000000 +0100
@@ -61,9 +61,8 @@ usage()
trap 'do_cleanup' 1 2 3 7 13 15
### create a temporary directory only read/writable by user
-TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
-
-(umask 077; mkdir "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'"
+TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/${progname}.XXXXXX
+TMP_DIR=$(mktemp -d "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'"
### we hard-wire the magic for DVI files here since some "file" implementations
### (e.g. on Solaris 9) don't recognize DVI files (bug #1508963)
Index: xdvik.spec
===================================================================
RCS file: /cvs/extras/rpms/xdvik/devel/xdvik.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xdvik.spec 15 Jan 2008 10:15:43 -0000 1.2
+++ xdvik.spec 15 Jan 2008 14:06:31 -0000 1.3
@@ -5,7 +5,7 @@
Summary: An X viewer for DVI files
Name: xdvik
Version: 22.84.13
-Release: 5%{?dist}
+Release: 6%{?dist}
Url: http://xdvi.sourceforge.net/
# encodings.c is GPLv2+ and LGPL and MIT
# read-mapfile.c tfmload.c are from dvips
@@ -15,7 +15,7 @@
Obsoletes: tetex-xdvi < 3.0-99
Provides: tetex-xdvi = 3.0-99
Provides: xdvi = %{version}-%{release}
-Obsoletes: xdvi = 22.84.12
+Obsoletes: xdvi < %{version}
Requires: texlive-dvips texlive-texmf
Requires(post): desktop-file-utils >= %{desktop_file_utils_version}
Requires(postun): desktop-file-utils >= %{desktop_file_utils_version}
@@ -43,6 +43,7 @@
Patch3: texlive-xdvi-maxchar.patch
Patch4: texlive-source-xdvi-numlock.patch
Patch5: xdvik-22.84.13-xdgopen.patch
+Patch6: xdvik-22.84.13-tempfix.patch
%if %{with japanese}
# Japanese patch for xdvi from http://sourceforge.jp/projects/xdvi/
@@ -77,6 +78,7 @@
%patch3 -p1
%patch4 -p0
%patch5 -p1 -b .xdgopen
+%patch6 -p1 -b .tempfix
# Allow Xaw3d enabled build of xdvi
sed -i 's|/Xaw/|/Xaw3d/|' texk/xdvik/gui/*.[ch] texk/xdvik/*.[ch]
@@ -253,6 +255,10 @@
%endif
%changelog
+* Tue Jan 15 2008 Jindrich Novy <jnovy at redhat.com> - 22.84.13-6
+- apply temporary file creation fix for xdvizilla
+- better obsolete xdvi
+
* Tue Jan 15 2008 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 22.84.13-5
- Added Requires(postun) for desktop-file-utils
More information about the fedora-extras-commits
mailing list