Compare commits

..

2 commits

Author SHA1 Message Date
Fedora Release Engineering
f10b51948f dist-git conversion 2010-07-29 15:38:26 +00:00
Jesse Keating
6eb4e56921 Initialize branch F-13 for xdvik 2010-02-17 03:29:14 +00:00
9 changed files with 596 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
xdvik-22.84.14.tar.gz

View file

@ -1 +0,0 @@
It is now obsoleted by texlive-xdvi-bin

1
sources Normal file
View file

@ -0,0 +1 @@
0e0c3d49b8c0cbc934894757780e098f xdvik-22.84.14.tar.gz

94
xdvi-ptex.map Normal file
View file

@ -0,0 +1,94 @@
%
% Sample "vfontmap"
%
% [single style]
% "tfm" "enc" "font"
% [multi style]
% "/font/file/name"
% "tfm1" "enc"
% "tfm2" "enc"
% "enc" is one of following.
% "JIS-H" "Unicode-H" "Identity-H"
% "JIS-V" "Unicode-V" "Identity-V"
rml JIS-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
rmlv JIS-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
gbm JIS-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
gbmv JIS-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
fmin JIS-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
fgoth JIS-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
maru JIS-H /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
% UTF package
unijmin-h Unicode-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf % \UTF font
unijmin-v Unicode-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf % \UTF font
cidmin-h Identity-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf % \CID font
cidmin-v Identity-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf % \CID font
hmr JIS-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
hmrv JIS-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
unijgoth-h Unicode-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf % \UTF font
unijgoth-v Unicode-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf % \UTF font
cidgoth-h Identity-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf % \CID font
cidgoth-v Identity-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf % \CID font
hkb JIS-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
hkbv JIS-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
% OTF package
otf-ujmr-h Unicode-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-ujmr-v Unicode-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-cjmr-h Identity-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-cjmr-v Identity-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
hminr-h JIS-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
hminr-v JIS-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-ujgr-h Unicode-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-ujgr-v Unicode-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-cjgr-h Identity-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-cjgr-v Identity-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
hgothr-h JIS-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
hgothr-v JIS-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-ujmb-h Unicode-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-ujmb-v Unicode-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-cjmb-h Identity-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-cjmb-v Identity-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
hminb-h JIS-H /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
hminb-v JIS-V /usr/share/fonts/sazanami/mincho/sazanami-mincho.ttf
otf-ujgb-h Unicode-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-ujgb-v Unicode-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-cjgb-h Identity-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-cjgb-v Identity-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
hgothb-h JIS-H /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
hgothb-v JIS-V /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
otf-ujmgr-h Unicode-H /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
otf-ujmgr-v Unicode-V /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
otf-cjmgr-h Identity-H /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
otf-cjmgr-v Identity-V /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
hmgothr-h JIS-H /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
hmgothr-v JIS-V /usr/local/share/texmf/dvipdfm/CIDFont/HiraMaruPro-W4.otf
otf-utmr-h Unicode-H /usr/share/fonts/cjkunifonts-uming/uming.ttf
otf-utmr-v Unicode-V /usr/share/fonts/cjkunifonts-uming/uming.ttf
otf-utgr-h Unicode-H /usr/share/fonts/cjkunifonts-ukai/ukai.ttf
otf-utgr-v Unicode-V /usr/share/fonts/cjkunifonts-ukai/ukai.ttf
otf-ucmr-h Unicode-H /usr/share/fonts/cjkunifonts-uming/uming.ttf
otf-ucmr-v Unicode-V /usr/share/fonts/cjkunifonts-uming/uming.ttf
otf-ucgr-h Unicode-H /usr/share/fonts/cjkunifonts-ukai/ukai.ttf
otf-ucgr-v Unicode-V /usr/share/fonts/cjkunifonts-ukai/ukai.ttf
otf-ukmr-h Unicode-H /usr/share/fonts/baekmuk-ttf-batang/batang.ttf
otf-ukmr-v Unicode-V /usr/share/fonts/baekmuk-ttf-batang/batang.ttf
otf-ukgr-h Unicode-H /usr/share/fonts/baekmuk-ttf-dotum/dotum.ttf
otf-ukgr-v Unicode-V /usr/share/fonts/baekmuk-ttf-dotum/dotum.ttf

BIN
xdvi48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

121
xdvik-22.84.14-pxdvi.patch Normal file
View file

@ -0,0 +1,121 @@
diff -up xdvik-22.84.14/texk/configure.in.pxdvi xdvik-22.84.14/texk/configure.in
diff -up xdvik-22.84.14/texk/configure.in.pxdvi xdvik-22.84.14/texk/configure.in
diff -up xdvik-22.84.14/texk/configure.in.pxdvi xdvik-22.84.14/texk/configure.in
diff -up xdvik-22.84.14/texk/configure.in.pxdvi xdvik-22.84.14/texk/configure.in
diff -up xdvik-22.84.14/texk/configure.in.pxdvi xdvik-22.84.14/texk/configure.in
--- xdvik-22.84.14/texk/configure.in.pxdvi 2008-05-03 20:45:04.000000000 +0100
+++ xdvik-22.84.14/texk/configure.in 2008-10-12 01:55:37.000000000 +0100
@@ -52,7 +52,7 @@ fi
PKGS='
bibtex8 cjkutils detex devnag dtl dvi2tty dvidvi dviljk dvipdfm dvipsk gsftopk
lacheck makeindexk musixflx odvipsk ps2pkm seetexk tetex tex4htk
- texlive ttf2pk tth xdvik
+ texlive ttf2pk tth xdvik pxdvik
'
ESUBDIRS=
diff -up xdvik-22.84.14/texk/pxdvik/main.c.pxdvi xdvik-22.84.14/texk/pxdvik/main.c
--- xdvik-22.84.14/texk/pxdvik/main.c.pxdvi 2008-10-12 01:55:37.000000000 +0100
+++ xdvik-22.84.14/texk/pxdvik/main.c 2008-10-12 01:55:37.000000000 +0100
@@ -1177,7 +1177,7 @@ main(int argc, char **argv)
kpse_init_prog("XDVI", resource.pixels_per_inch, resource.mfmode, resource.alt_font);
- kpse_set_program_name(argv[0], "xdvi");
+ kpse_set_program_name(argv[0], "pxdvi");
if (globals.debug & DBG_EXPAND) {
diff -up xdvik-22.84.14/texk/pxdvik/Makefile.in.pxdvi xdvik-22.84.14/texk/pxdvik/Makefile.in
--- xdvik-22.84.14/texk/pxdvik/Makefile.in.pxdvi 2008-10-12 01:55:37.000000000 +0100
+++ xdvik-22.84.14/texk/pxdvik/Makefile.in 2008-10-12 01:57:46.000000000 +0100
@@ -10,6 +10,9 @@ ac_include ../make/cross.mk
all_subdirs = gui tests
+dvipsdir = $(texmf)/pdvips
+psheaderdir = $(dvipsdir)
+
CPP = @CPP@
# Make `#include <X11/...>' and `-lX...' work.
@@ -178,40 +181,41 @@ uninstall-exec:
install-data: $(manpage).1 pixmaps/toolbar.xpm pixmaps/toolbar2.xpm
$(SHELL) $(top_srcdir)/../mkinstalldirs $(man1dir)
- $(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/xdvi/pixmaps
+ $(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/pxdvi/pixmaps
+ $(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/fonts/map/pxdvi
$(INSTALL_DATA) $(manpage).1 $(man1dir)/$(manpage).$(manext)
rm -f $(man1dir)/o$(manpage).$(manext)
ln -s $(manpage).$(manext) $(man1dir)/o$(manpage).$(manext)
- $(INSTALL_DATA) $(srcdir)/texmf/XDvi $(texmf)/xdvi/XDvi
- $(INSTALL_DATA) $(srcdir)/pixmaps/toolbar.xpm $(srcdir)/pixmaps/toolbar2.xpm $(texmf)/xdvi/pixmaps
+ $(INSTALL_DATA) $(srcdir)/texmf/XDvi $(texmf)/pxdvi/XDvi
+ $(INSTALL_DATA) $(srcdir)/pixmaps/toolbar.xpm $(srcdir)/pixmaps/toolbar2.xpm $(texmf)/pxdvi/pixmaps
if \
- grep 'original xdvi.cfg --' $(texmf)/xdvi/xdvi.cfg >/dev/null 2>&1 \
- || test ! -r $(texmf)/xdvi/xdvi.cfg; \
+ grep 'original xdvi.cfg --' $(texmf)/pxdvi/xdvi.cfg >/dev/null 2>&1 \
+ || test ! -r $(texmf)/pxdvi/xdvi.cfg; \
then \
- $(INSTALL_DATA) $(srcdir)/texmf/xdvi.cfg $(texmf)/xdvi/xdvi.cfg; \
+ $(INSTALL_DATA) $(srcdir)/texmf/xdvi.cfg $(texmf)/pxdvi/xdvi.cfg; \
else \
true; \
fi
- $(INSTALL_DATA) $(srcdir)/xdvi-ptex.sample $(texmf)/xdvi/
+ $(INSTALL_DATA) $(srcdir)/xdvi-ptex.sample $(texmf)/fonts/map/pxdvi/xdvi-ptex.map
if test ! -f $(PTEXMAP); then \
$(INSTALL_DATA) $(srcdir)/xdvi-ptex.sample $(PTEXMAP); \
fi
uninstall-data:
rm -f $(man1dir)/$(manpage).$(manext) \
- $(texmf)/xdvi/pixmaps/toolbar.xpm $(texmf)/xdvi/pixmaps/toolbar2.xpm \
- $(texmf)/xdvi/XDvi
+ $(texmf)/pxdvi/pixmaps/toolbar.xpm $(texmf)/pxdvi/pixmaps/toolbar2.xpm \
+ $(texmf)/pxdvi/XDvi
if \
- head -n 1 $(texmf)/xdvi/xdvi.cfg | grep 'original xdvi.cfg --' >/dev/null 2>&1 \
- || test ! -r $(texmf)/xdvi/xdvi.cfg; \
+ head -n 1 $(texmf)/pxdvi/xdvi.cfg | grep 'original xdvi.cfg --' >/dev/null 2>&1 \
+ || test ! -r $(texmf)/pxdvi/xdvi.cfg; \
then \
- rm -f $(texmf)/xdvi/xdvi.cfg; \
+ rm -f $(texmf)/pxdvi/xdvi.cfg; \
else \
true; \
fi
- rmdir $(texmf)/xdvi/pixmaps
+ rmdir $(texmf)/pxdvi/pixmaps
-distname = xdvik
+distname = pxdvik
program_files = *.1.in *.ac xdvi.icon xdvi.FAQ psheader.txt mksedscript \
MOTIF
version_files = xdvi.c
diff -up xdvik-22.84.14/texk/pxdvik/texmf/XDvi.pxdvi xdvik-22.84.14/texk/pxdvik/texmf/XDvi
--- xdvik-22.84.14/texk/pxdvik/texmf/XDvi.pxdvi 2008-10-12 01:55:37.000000000 +0100
+++ xdvik-22.84.14/texk/pxdvik/texmf/XDvi 2008-10-12 01:55:37.000000000 +0100
@@ -137,7 +137,7 @@ Ctrl<Btn5Down>:set-shrink-factor(-)\n\
!!!------------------------------------------------------------------------------
!!! note: when i18n'ed, *font and *fontSet should have same size of font
*international: true
-*inputMethod: kinput2
+*inputMethod: SCIM
*preeditType: OverTheSpot,OffTheSpot,Root
!!! note: xdviSelFile can not be i18n'ed (bug?)
xdviSelFile*international: false
diff -up xdvik-22.84.14/texk/pxdvik/xdvi-sh.in.pxdvi xdvik-22.84.14/texk/pxdvik/xdvi-sh.in
--- xdvik-22.84.14/texk/pxdvik/xdvi-sh.in.pxdvi 2007-10-18 17:28:55.000000000 +0100
+++ xdvik-22.84.14/texk/pxdvik/xdvi-sh.in 2008-10-12 01:55:37.000000000 +0100
@@ -35,7 +35,7 @@ case "$#:$1" in
NAMEOPT="-name $BASE_NAME";;
esac
-xdviappfile=`kpsewhich -progname=xdvi --format='other text files' XDvi`
+xdviappfile=`kpsewhich -progname=pxdvi --format='other text files' XDvi`
if test -n "$xdviappfile"; then
xdviappdir=`dirname "$xdviappfile"`
xdviapppath="${xdviappdir}/%l_%t/%N:${xdviappdir}/%N"

View file

@ -0,0 +1,10 @@
diff -up xdvik-22.84.14/texk/xdvik/texmf/XDvi.zerofix xdvik-22.84.14/texk/xdvik/texmf/XDvi
--- xdvik-22.84.14/texk/xdvik/texmf/XDvi.zerofix 2008-11-12 00:09:46.000000000 +0000
+++ xdvik-22.84.14/texk/xdvik/texmf/XDvi 2008-11-12 00:10:02.000000000 +0000
@@ -368,3 +368,6 @@ Ctrl<Btn5Down>:set-shrink-factor(-)\n\
!!!-------------- used for internal checking - DO NOT CHANGE THIS! --------------
!!!------------------------------------------------------------------------------
*appDefaultsFileVersion: 20030303
+
+*mainTranslations: #override\n\
+ <Key>0: digit(0)

369
xdvik.spec Normal file
View file

@ -0,0 +1,369 @@
%bcond_without japanese
%define desktop_file_utils_version 0.9
# Set _texmf_main - this is defined in the texlive-texmf package
%{!?_texmf_main: %define _texmf_main %{_datadir}/texmf}
Summary: An X viewer for DVI files
Name: xdvik
Version: 22.84.14
Release: 8%{?dist}
Url: http://xdvi.sourceforge.net/
# encodings.c is GPLv2+ and LGPL and MIT
# read-mapfile.c tfmload.c are from dvips
# remaining is MIT
License: GPLv2+
Group: Applications/Publishing
Obsoletes: tetex-xdvi < 3.0-99
Provides: tetex-xdvi = 3.0-99
Provides: xdvi = %{version}-%{release}
Obsoletes: xdvi = 22.84.12
Requires: tex(tex) tex(dvips)
Requires: xdg-utils ghostscript
Requires(post): desktop-file-utils >= %{desktop_file_utils_version}
Requires(postun): desktop-file-utils >= %{desktop_file_utils_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: t1lib-devel >= 5.0.2
BuildRequires: Xaw3d-devel
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
BuildRequires: autoconf213
BuildRequires: libtool
BuildRequires: tex(tex)
BuildRequires: kpathsea-devel
%if %{with japanese}
BuildRequires: freetype-devel >= 2.1.10
%endif
Source0: http://kent.dl.sourceforge.net/sourceforge/xdvi/%{name}-%{version}.tar.gz
# Source30 is http://xdvi.sourceforge.net/xdvi48x48.gif converted to png
Source30: xdvi48x48.png
%if %{with japanese}
Source100: xdvi-ptex.map
%endif
# Fix handling of the 0 key. See:
# http://sourceforge.net/tracker/index.php?func=detail&aid=2067614&group_id=23164&atid=377580
# https://bugzilla.redhat.com/show_bug.cgi?id=470942
# Fixed upstream post 22.84.14 ?
Patch0: xdvik-22.84.14-zerofix.patch
%if %{with japanese}
# Japanese patch for xdvi from http://sourceforge.jp/projects/xdvi/
Patch1000: xdvik-22.84.14-j1.40.patch.gz
# Patch to allow building of both xdvik and pxdvik.
# Local to Fedora, not appropriate to push upstream.
Patch1001: xdvik-22.84.14-pxdvi.patch
%endif
# These patches would conflict with Patch1000 and friends and so must be applied
# after the xdvik directory has been copied to pxdvik
# Currently no patches of this type
%description
Xdvik, the kpathsea version of xdvi, is a previewer for DVI files
produced e.g. by the TeX or troff typesetting systems.
If you are installing texlive and you use PlainTeX or you are using DVI files,
you will also need to install xdvi which allows you to view DVI files.
Consider installing texlive-dvips (for converting .dvi files to PostScript
format for printing on PostScript printers), and texlive-latex (a higher level
formatting package which provides an easier-to-use interface for TeX).
%prep
%setup -q
# Fix handling of zero key
%patch0 -p1 -b .zerofix
# Allow Xaw3d enabled build of xdvi
sed -i 's|/Xaw/|/Xaw3d/|' texk/xdvik/gui/*.[ch] texk/xdvik/*.[ch]
%if %{with japanese}
# set up Japanese xdvi in its own directory
cp -a texk/xdvik texk/xdvik-orig
# This is the Japanese xdvi patch
%patch1000 -p1
mv texk/xdvik texk/pxdvik
mv texk/xdvik-orig texk/xdvik
# Build both the normal and the Japanese xdvi at the same time
%patch1001 -p1 -b .pxdvi
# XXX Is this really necessary?
mv texk/pxdvik/xdvi-ptex.sample texk/pxdvik/xdvi-ptex.sample.orig
install -p -m 644 %{SOURCE100} texk/pxdvik/xdvi-ptex.sample
%endif
# Re-run autoconf against patched Makefile.ins
( cd texk/xdvik ; autoconf-2.13 -m $RPM_BUILD_DIR/%{name}-%{version}/texk/etc/autoconf )
%if %{with japanese}
( cd texk/pxdvik ; autoconf-2.13 -m $RPM_BUILD_DIR/%{name}-%{version}/texk/etc/autoconf )
%endif
( cd texk ; autoconf-2.13 -m $RPM_BUILD_DIR/%{name}-%{version}/texk/etc/autoconf )
%build
# Here we go to great pains to avoid the automatic dependency generation from pulling in the
# bundled kpathsea stuff
%configure --with-system-t1lib --with-system-kpathsea --with-xdvi-x-toolkit=xaw3d
mv texk/kpathsea texk/kpathsea-keep
# Enable maintainer mode (see README_maintainer in tarball)
cp -p texk/make/rdepend.mk texk/make/rdepend.mk.maint
sed -i -e 's/@MAINT@//' texk/make/rdepend.mk
%if %{with japanese}
# configure pxdvi with more options
pushd texk/pxdvik
sh `grep "# ./con" config.status |sed -e s/^#\ //` --program-prefix=p --with-default-dvips-path=pdvips
popd
make -C texk/pxdvik/ depend
%endif
make -C texk/xdvik/ depend
mv texk/kpathsea-keep texk/kpathsea
%configure --with-system-t1lib --with-system-kpathsea --with-xdvi-x-toolkit=xaw3d
%if %{with japanese}
# configure pxdvi with more options
pushd texk/pxdvik
sh `grep "# ./con" config.status |sed -e s/^#\ //` --program-prefix=p --with-default-dvips-path=pdvips
popd
%endif
rm -rf libs texk/contrib/ texk/kpathsea
# Here we don't use make %{?_smp_mflags} since occasionally it fails
make
# Doc files (the full list of changes is in the texk/xdvik/CHANGES file)
iconv -f ISO-8859-1 -t UTF8 texk/xdvik/CHANGES -o CHANGES
touch -r texk/xdvik/CHANGES CHANGES
cp -p texk/xdvik/README.t1* .
%install
rm -rf $RPM_BUILD_ROOT
%if %{with japanese}
install_dirs='INSTDIRS=texk/xdvik texk/pxdvik'
%else
install_dirs='INSTDIRS=texk/xdvik'
%endif
# make install DESTDIR=$RPM_BUILD_ROOT doesn't work here
%makeinstall \
texmf=$RPM_BUILD_ROOT%{_texmf_main} \
texmfmain=$RPM_BUILD_ROOT%{_texmf_main} \
"$install_dirs" \
INSTALL='install -p'
# desktop file
cat > xdvi.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=DVI Viewer
Type=Application
Comment=DVI viewer for TeX DVI files
Icon=xdvi
MiniIcon=mini-doc1.xpm
Exec=xdvi
MimeType=application/x-dvi;
NoDisplay=true
EOF
mkdir -p $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
install -p -m644 %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/pixmaps/
install -p -m644 %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/xdvi.png
desktop-file-install --vendor "fedora" \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--add-category Graphics \
xdvi.desktop
# Remove uneeded file
rm $RPM_BUILD_ROOT%{_texmf_main}/release-tetex-src.txt
%if %{with japanese}
mkdir -p pxdvik/READMEs
pushd texk/pxdvik
for i in CHANGES.xdvik-jp README.xdvik-jp READMEs/* ; do
iconv -f EUC-JP -t UTF-8 ${i} \
-o ../../pxdvik/${i}
touch -r ${i} ../../pxdvik/${i}
done
popd
install -p -m 644 texk/pxdvik/xdvi-ptex.sample.orig pxdvik/xdvi-ptex.sample
%endif
%post
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README README.t1mapper README.t1fonts CHANGES
%{_bindir}/oxdvi
%{_bindir}/xdvi
%{_bindir}/xdvi-xaw3d
%{_texmf_main}/xdvi/
%{_mandir}/man1/oxdvi.1*
%{_mandir}/man1/xdvi.1*
%{_datadir}/pixmaps/xdvi48x48.png
%{_datadir}/icons/hicolor/48x48/apps/xdvi.png
%{_datadir}/applications/fedora-xdvi.desktop
%if %{with japanese}
%doc pxdvik/
%{_bindir}/opxdvi
%{_bindir}/pxdvi
%{_bindir}/pxdvi-xaw3d
%{_texmf_main}/pxdvi/
%{_texmf_main}/fonts/map/pxdvi/
%endif
%changelog
* Wed Jan 27 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.14-8
- Add BuildRequires for tex(tex) to fix build (BZ 539119)
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.84.14-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun Jul 12 2009 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.14-6
- Correct paths in xdvi-ptex.map to fix BZ 508429 (Yuki Watanabe)
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 22.84.14-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Nov 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.14-4
- Add patch to fix zero key handling (BZ 470942)
- Remove texlive-2007-xprint.patch which actually hasn't been applied during
22.84.14 packaging
* Sun Oct 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.14-3
- Fix package build breakage
* Sun Oct 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.14-2
- Fix previous spec file changelog entry
- Fix Japanese font handling (BZ 465391) by reworking pxdvi patch
* Fri Jul 18 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.14-1
- Update to version 22.84.14
- Update Japanese patch to 22.84.14-j1.40
- Rework patch allowing both normal and Japanese versions to be built
- Remove no longer needed patches that have been merged upstream:
- Various spec file fixups
* Sat May 10 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-20
- Update Japanese patch to xdvik-22.84.13-j1.40.patch.gz
- Rework patch to allow simultaneous building of xdvik and pxdvik - now called
xdvik-22.84.13-pxdvi.patch
- Rename vfontmap to xdvi-ptex.map
- Rework patch to build pxdvik against system installed libraries - now called
xdvik-22.84.13-pxdvi-use-system-libs.patch
* Sun Apr 28 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-19
- Add more commentary about upstream status of patches
- No longer apply the texlive-xdvi-maxchar.patch patch
* Sun Apr 28 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-18
- Remove extraneous -r from cp command
- Add commentary about upstream status of patches
- Re-enable _texmf_main macro
- Add patch to fix window ID detection - BZ 442445
* Sun Feb 3 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-17
- Fix spec file typo
* Sun Feb 3 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-16
- Change directory copying logic such that we can use the upstream Japanese
patch without modification
* Sat Feb 2 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-15
- Fix definition of _texmf_main for now
- Fix previous changelog entry version number
* Sat Feb 2 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-14
- Rework xdvik-22.84.13-uint32_t-fix.patch so as to be consistent with the
upstream japanese patch and to stop the build barfing
- Remove parallel make since occasionally this fails
* Sat Feb 2 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-13
- Rework pxdvik-22.84.13-use-system-libs.patch for new japanes patch
* Sat Feb 2 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-12
- Fix errors in changelog
- Small modifications to xdvik-22.84.13-j1.36.patch.gz so it will apply cleanly
* Sat Feb 2 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-11
- Update to Japanese patch xdvik-22.84.13-j1.36.patch.gz
* Wed Jan 23 2008 Patrice Dumas <pertusus@free.fr> - 22.84.13-10
- add xdg-utils, ghostscript requires
- use virtual requires for dvips and tex
* Mon Jan 21 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-9
- Add patch to fix segfault on double full screen toggle BZ 429429 (Michal Jaegermann)
* Sat Jan 19 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-8
- Add patch to fix spelling errors in manpage, derived from patch by A. Costa
(BZ 429396)
* Wed Jan 16 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-7
- Replace texlive-2007-xdvi-keepflag.patch with
xdvik-22.84.13-keepflag-fixscroll.patch to fix - BZ 417461 (Michal Jaegermann)
* Tue Jan 15 2008 Jindrich Novy <jnovy@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@gmail.com> - 22.84.13-5
- Added Requires(postun) for desktop-file-utils
* Mon Jan 14 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-4
- Use bcond for Japanese conditional stuff (Patrice Dumas)
- Fix license (Patrice Dumas)
- Make desktop file scriplets conform to packaging guidelines (Patrice Dumas)
- Remove unneeded Requires (Patrice Dumas)
- Adjust Provides and Obsoletes of xdvi
* Sun Jan 13 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-3
- Added xdg-open patch (Patrice Dumas)
- Avoid dependency generation implicating the bundled kpathsea files (Patrice Dumas)
- Added Requires for Xaw3d
* Sun Jan 13 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-2
- Add patch to build against system kpathsea rather than the one in the tarball
- Same patch also removes all includes to the t1lib headers shipped in the tarball to
prevent conflicts with system t1lib-devel
- Spefile cleanups
* Sun Jan 6 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 22.84.13-1
- Initial package based on the texlive.spec by Jindrich Novy
- Updated to latest upstream xdvik and Japanese xdvik
- Reviewed all patches relating to xdvi in texlive.spec and cherry picked
those that are still needed
- Reworked the patch to allow building of xdvik and pxdvik