ogajduse / rpms / texlive

Forked from rpms/texlive 6 years ago
Clone
4931932
# This spec file is based on texjive project created by Michael A. Peters.
4931932
# Adopted and modified for Fedora by Jindrich Novy.
4931932
fe9dcc4
%define texlive_ver	2007
fe9dcc4
%define	ptex_src_ver	3.1.10
fe9dcc4
%define pdvipsk_ver	p1.7a
fe9dcc4
%define	mendexk_ver	2.6e
fe9dcc4
%define dvipdfm_ver	0.13.2d
fe9dcc4
%define dvipdfmx_ver	0
fe9dcc4
%define dvipng_ver	1.9
4931932
4931932
%define desktop_file_utils_version 0.9
4931932
%define default_letter_paper 0
4931932
# lcdf typetools can be easily built as a separate tool, so it should be
4931932
%define disable_lcdf_typetools 1
15eb7e9
%define f8_packaging 0
4931932
4931932
# These need to match what is in the texlive-texmf package.
4931932
#  since texlive-texmf is a BuildRequires, it installs an rpm macro
4931932
#  file that defines them. Change the definitions in the texlive-texmf.spec
4931932
#  file and rebuild it if you do not like where things get put.
4931932
%{!?_texmf_main: %define _texmf_main %{_datadir}/texmf}
4931932
%{!?_texmf_conf: %define _texmf_conf %{_sysconfdir}/texmf}
4931932
%{!?_texmf_var:  %define _texmf_var %{_var}/lib/texmf}
4931932
4931932
Name:		texlive
4931932
Version:	%{texlive_ver}
15eb7e9
Release:	18%{?dist}
4931932
Summary:	Binaries for the TeX formatting system
4931932
4931932
Group:		Applications/Publishing
4931932
License:	GPLv2 and BSD and Public Domain and LGPLv2+ and GPLv2+ and LPPL
4931932
URL:		http://tug.org/texlive/
4931932
4931932
#####
4931932
# Source0-99: main sources
4931932
#####
4931932
#Source0:	http://tug.org/svn/texlive/branches/branch2007/Master/source/source.tar.bz2
4931932
# non free source files removed with texlive-generate-tarball.sh
4931932
Source0:	source-free.tar.bz2
4931932
4931932
Source10:	texlive.cron
4931932
# Filter out bad requirements (RH bug #59819).
4931932
Source99:	texlive-filter-requires.sh
4931932
Source100:	texlive-generate-tarball.sh
4931932
%define __perl_requires %{SOURCE99}
4931932
# 1000-: Japanese pTeX
4931932
Source1000:	ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ptex-src-%{ptex_src_ver}.tar.gz
4931932
Source1001:	ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/dvipsk-jpatch-%{pdvipsk_ver}.tar.bz2
4931932
Source1002:	ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/mendexk%{mendexk_ver}.tar.gz
4931932
4931932
# Don't run brp-python-bytecompile
4931932
%define __os_install_post  /usr/lib/rpm/redhat/brp-compress /usr/lib/rpm/redhat/brp-strip %{__strip} /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} %{nil}
4931932
4931932
######
4931932
# Red Hat-specific TeX configuration patches
4931932
######
4931932
4931932
# and sane defaults to build against can be inserted via sed
4931932
Patch5: texlive-2007-browser.patch
4931932
Patch9: texlive-teckit.patch
4931932
4931932
Patch21: texlive-more_paths.patch
4931932
Patch22: texlive-fedora_paths.patch
4931932
4931932
######
4931932
# TeX patches
4931932
######
4931932
4931932
Patch10: texlive-2007-dvipdfm-security.patch
4931932
Patch11: texlive-2007-makej.patch
4931932
Patch12: texlive-2007-badscript.patch
4931932
Patch17: texlive-2007-tmpcleanup.patch
4931932
Patch19: texlive-2007-kpse-extensions.patch
4931932
Patch20: texlive-CVE-2007-4033.patch
4931932
Patch25: texlive-dvipsoverflow.patch
4931932
Patch26: texlive-dviljktemp.patch
4931932
Patch27: texlive-poppler.patch
882783b
Patch28: texlive-man-notetex.patch
39ed6db
Patch29: texlive-man-context.patch
4931932
4931932
######
4931932
# mpeters contributed patches
4931932
######
4931932
# fixes man pages to utf-8
4931932
Patch41: texlive-2007-kuesterei-man.patch
4931932
Patch42: texlive-2007-copyright-utf8-man.patch
4931932
# use proper shellbang
4931932
Patch43: texlive-2007-epstopdf-shellbang.patch
4931932
4931932
######
4931932
# Debian patches
4931932
###### 
4931932
Patch100:       texlive-Build_script.patch
4931932
Patch101:       texlive-mktexlsr_fixes.patch
4931932
Patch102:       texlive-fix_pkfix_invocation.patch
4931932
Patch104:       texlive-12a_fix_thumbpdf_invocation.patch
4931932
Patch105:       texlive-12b_fix_a2ping_invocation.patch
4931932
Patch106:       texlive-12c_fix_pdfcrop_invocation.patch
4931932
Patch107:       texlive-12d_fix_ebong_invocation.patch
4931932
Patch108:       texlive-12e_fix_vpe_invocation.patch
4931932
Patch109:       texlive-texdoc.patch
4931932
Patch114:       texlive-dvips_fontbug_fix_upstream.patch
4931932
Patch115:       texlive-maketexmf.patch
4931932
Patch117:       texlive-fmtutil_keep_failedlog.patch
4931932
Patch119:       texlive-checklib_fixes.patch
4931932
Patch120:       texlive-dvipdfm_timezone.patch
4931932
Patch123:       texlive-fix_makempx_installation.patch
4931932
4931932
######
4931932
# Mandriva patches
4931932
######
4931932
Patch202:       texlive-pdftex.patch
4931932
4931932
######
4931932
# Suse patches
4931932
###### 
4931932
Patch300:       texlive-source-icu.patch
4931932
Patch301:       texlive-source-t1lib.patch
4931932
Patch302:       texlive-source-warns.patch
4931932
Patch303:       texlive-source-x11r7.patch
4931932
Patch306:       texlive-source-CVE-2007-0650.patch
4931932
4931932
# 1000-: Japanese pTeX
4931932
Patch1000:	dvipsk-jpatch-pdvips.patch
4931932
Patch1004:	texlive-2007-jp-platex209.patch
4931932
Patch1005:	texlive-2007-pdvips.patch
4931932
Patch1006:	texlive-2007-ptex-3.1.10.patch
fe9dcc4
Patch1007:      texlive-2007-fmtutil-ptex.patch
4931932
4931932
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4931932
8457f55
BuildRequires:	flex bison ed xdg-utils
4931932
BuildRequires:	desktop-file-utils >= %{desktop_file_utils_version}
4931932
BuildRequires:	ncurses-devel zlib-devel libpng-devel gd-devel t1lib-devel
8457f55
BuildRequires:	libSM-devel libICE-devel
4931932
# for non-modular xorg - use xorg-devel instead of above
8457f55
BuildRequires:	Xaw3d-devel
15eb7e9
%if %{f8_packaging}
15eb7e9
BuildRequires:	poppler-devel >= 0.6.2-1
15eb7e9
%else
8457f55
BuildRequires:	poppler-devel >= 0.6.2-2
15eb7e9
%endif
4931932
BuildRequires:	teckit-devel
4931932
Requires:	texlive-texmf = %{version}
a158ade
Requires:	texlive-texmf-fonts = %{version}
4931932
Requires:	texlive-texmf-errata = %{version}
4931932
# make sure fonts package installed before running post - since
4931932
# fmtutil-sys is symlink to fmtutil
4931932
Requires(post):	%{_bindir}/fmtutil
b332611
Provides:	tex(tex)
f40d48a
Obsoletes:	tetex < 3.0-99
f40d48a
Provides:	tetex = 3.0-99
a469184
Obsoletes:	tetex-fonts < 3.0-99
a469184
Provides:	tetex-fonts = 3.0-99
fe9dcc4
Obsoletes:	texlive-fonts < 2007-6
90f0e6d
Provides:	texlive-fonts = %{version}-%{release}
4931932
4931932
%description
4931932
TeXLive is an implementation of TeX for Linux or UNIX systems. TeX takes
4931932
a text file and a set of formatting commands as input and creates a
4931932
printable file as output. Usually, TeX is used in conjunction with
4931932
a higher level formatting package like LaTeX or PlainTeX, since TeX by
4931932
itself is not very user-friendly.
4931932
4931932
Install texlive if you want to use the TeX text formatting system. Consider
4931932
to install texlive-latex (a higher level formatting package which provides
4931932
an easier-to-use interface for TeX).
4931932
4931932
The TeX documentation is located in the texlive-doc package.
4931932
4931932
%package afm
4931932
Summary: A converter for PostScript(TM) font metric files, for use with TeX
4931932
Group: Applications/Publishing
f40d48a
Obsoletes: tetex-afm < 3.0-99
f40d48a
Provides:  tetex-afm = 3.0-99
4931932
Requires: texlive-texmf-afm = %{version}
4931932
Requires: texlive-texmf-errata = %{version}
4931932
4931932
%description afm
4931932
texlive-afm provides afm2tfm, a converter for PostScript(TM) font metric
4931932
files. PostScript fonts are accompanied by .afm font metric files
4931932
which describe the characteristics of each font. To use PostScript
4931932
fonts with TeX, TeX needs .tfm files that contain similar information.
4931932
Afm2tfm will convert .afm files to .tfm files.
4931932
4931932
If you are installing texlive in order to use the TeX text formatting
4931932
system and PostScript files, you will need to install texlive-afm. You will
4931932
also need to install texlive-dvips (for converting .dvi files to PostScript
4931932
format for printing on PostScript printers), texlive-latex (a higher level
4931932
formatting package which provides an easier-to-use interface for TeX), and
b332611
xdvi (for previewing .dvi files in X).
4931932
4931932
The TeX documentation is located in the texlive-doc package.
4931932
c8d3ea2
%package doc
c8d3ea2
Summary: Applications to browse documentation for TeXLive
c8d3ea2
Group: Applications/Publishing
c8d3ea2
Requires: texlive = %{version}-%{release}
c8d3ea2
Obsoletes: tetex-doc < 3.0-99
c8d3ea2
Provides:  tetex-doc = 3.0-99
c8d3ea2
Obsoletes: texlive-doc < 2007-7
c8d3ea2
Provides: texlive-doc = %{version}-%{release}
c8d3ea2
Requires: texlive-texmf-doc = %{version}
b332611
Requires: texlive-texmf-errata-doc = %{version}
53b0e0b
Requires: xdg-utils
c8d3ea2
c8d3ea2
%description doc
c8d3ea2
If you are installing texlive and need a documentation to describe
c8d3ea2
styles or you are a TeX beginner and need tutorials, you may install
c8d3ea2
this package to obtain applications allowing you to user-friendly browse
c8d3ea2
documentation of the TeX formatting system.
c8d3ea2
53b0e0b
%package utils
53b0e0b
Summary: TeXLive utilities using ghostscript and metafont with X support
53b0e0b
Group: Applications/Publishing
53b0e0b
Requires: texlive = %{version}-%{release}
53b0e0b
Requires: texlive-dvips = %{version}-%{release}
53b0e0b
Requires: ghostscript
53b0e0b
53b0e0b
%description utils
53b0e0b
This package contains TeXLive utilities using ghostscript and metafont
53b0e0b
with X support.
53b0e0b
53b0e0b
%package xetex
53b0e0b
Summary: TeX typesetting engine using Unicode with OpenType or AAT support
53b0e0b
Group: Applications/Publishing
53b0e0b
Requires: texlive = %{version}-%{release}
53b0e0b
Requires: dvipdfmx
53b0e0b
53b0e0b
%description xetex
53b0e0b
XeTeX is a TeX typesetting engine using Unicode and supporting modern
53b0e0b
font technologies such as OpenType or AAT. Initially developed for Mac
53b0e0b
OS X only, it is now available for all major platforms. It natively
53b0e0b
supports Unicode and the input file is assumed to be in UTF-8 encoding
53b0e0b
by default.
53b0e0b
4931932
%package dvips
4931932
Summary: A DVI to PostScript converter for the TeX text formatting system
4931932
Group: Applications/Publishing
fe9dcc4
Requires: texlive = %{version}-%{release}
a158ade
Obsoletes: tetex < 3.0-99
f40d48a
Obsoletes: tetex-dvips < 3.0-99
f40d48a
Provides:  tetex-dvips = 3.0-99
4931932
Requires: texlive-texmf-dvips = %{version}
4931932
Requires: texlive-texmf-errata = %{version}
b332611
Provides: tex(dvips)
a158ade
Requires: psutils
4931932
4931932
%description dvips
4931932
Dvips converts .dvi files, for example those produced by the TeX text 
4931932
formatting system, to PostScript(TM) format.
4931932
4931932
If you are installing texlive, so that you can use the TeX text
4931932
formatting system without direct PDF compilation, consider to install
4931932
texlive-dvips. In addition, you will need to install texlive-latex 
4931932
(a higher level formatting package which provides an easier-to-use 
4931932
interface for TeX), and xdvi (for previewing .dvi files in X).
4931932
4931932
%package dviutils
4931932
Summary: A collection of utilities for working with dvi files
4931932
Group: Applications/Publishing
4931932
# not positive about this requires, pretty sure though
fe9dcc4
Requires: texlive = %{version}-%{release}
4931932
# used to be in tetex, but has a separate upstream
fe9dcc4
Requires: dvipng dvipdfm
4931932
# some dvi utilities used to be in tetex
f40d48a
Obsoletes: tetex < 3.0-99
4931932
4931932
%description dviutils
4931932
The texlive-dviutils package includes a set of tools for working with dvi
4931932
files. You only need this package if you plan to manipulate existing dvi files.
4931932
4931932
%package latex
4931932
Summary: The LaTeX front end for the TeX text formatting system
4931932
Group: Applications/Publishing
4931932
Requires: texlive = %{version}-%{release}, texlive-dvips = %{version}-%{release}
4931932
Requires: netpbm-progs
4931932
# make sure main and fonts package installed before running post
4931932
Requires(post): %{_bindir}/fmtutil %{_bindir}/fmtutil-sys
4931932
BuildRequires: ghostscript netpbm-progs
a158ade
Obsoletes: tetex < 3.0-99
f40d48a
Obsoletes: tetex-latex < 3.0-99
f40d48a
Provides:  tetex-latex = 3.0-99
4931932
Requires: texlive-texmf-latex = %{version}
4931932
Requires: texlive-texmf-errata = %{version}
b332611
Provides: tex(latex)
4931932
4931932
%description latex
4931932
LaTeX is a front end for the TeX text formatting system. Easier to
4931932
use than TeX. LaTeX is essentially a set of TeX macros which provide
4931932
convenient, predefined document formats for users. It also allows to
4931932
compile LaTeX files directly to PDF format.
4931932
4931932
The TeX documentation is located in the texlive-doc package.
4931932
a158ade
%package japanese
15eb7e9
Summary: Japanese support for TeXLive
a158ade
Group: Applications/Publishing
a158ade
Requires: texlive = %{version}
15eb7e9
Requires: texlive-latex = %{version}
a158ade
Requires: texlive-texmf-dvips = %{version}
15eb7e9
Requires: texlive-texmf-errata-japanese = %{version}
a158ade
Provides: tex(japanese)
a158ade
Requires: mendexk
a158ade
a158ade
%description japanese
a158ade
Japanese support for TeXLive.
a158ade
15eb7e9
%package context
15eb7e9
Summary: ConTeXt is a document preparation system based on TeX
15eb7e9
Group: Applications/Publishing
15eb7e9
Requires: texlive = %{version}
15eb7e9
Requires: texlive-texmf-errata-context = %{version}
15eb7e9
Requires: ruby
15eb7e9
Provides: tex(context)
15eb7e9
15eb7e9
%description context
15eb7e9
ConTeXt is a document preparation system based on TeX.
15eb7e9
4931932
%package -n kpathsea
4931932
Summary: Shared library needed by kpathsea and info files
4931932
Group:   Development/Libraries
fe9dcc4
Obsoletes: tetex-fonts < 3.0-99
a158ade
#Requires: texlive = %{version}-%{release}
4931932
4931932
%description -n kpathsea
4931932
Shared library needed by kpathsea and info files.
4931932
4931932
%package -n kpathsea-devel
4931932
Summary: Files needed to build software against kpathsea
4931932
Group:   Development/Libraries
4931932
Requires:  kpathsea = %{version}-%{release}
4931932
4931932
%description -n kpathsea-devel
4931932
This package includes the kpathsea header files and the libkpathsea.so
4931932
symbolic link.
4931932
4931932
You only need to install this package if you will be compiling software that
4931932
wants to link against the kpathsea library.
4931932
4931932
%package -n dvipng
4931932
Summary: DVI-to-PNG converter
fe9dcc4
Version: %{dvipng_ver}
4931932
Group: Applications/Publishing
4931932
#Url: http://savannah.nongnu.org/projects/dvipng/
fe9dcc4
#Source0: http://download.savannah.gnu.org/releases/dvipng/dvipng-%{dvipng_ver}.tar.gz
4931932
4931932
%description -n dvipng
4931932
This program makes PNG and/or GIF graphics from DVI files as obtained 
4931932
from TeX and its relatives.
4931932
4931932
%package -n mendexk
4931932
Summary: Replacement for makeindex with many enhancements
4931932
Group: Applications/Publishing
4931932
Version: %{mendexk_ver}
4931932
#Url: ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/
4931932
#Source0: ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/mendexk%{version}.tar.bz2
4931932
4931932
%description -n mendexk
4931932
Replacement for makeindex with many enhancements.
4931932
4931932
%package -n dvipdfm
4931932
Summary: DVI to PDF translator
fe9dcc4
Version: %{dvipdfm_ver}
4931932
Group: Applications/Publishing
4931932
#Url: http://gaspra.kettering.edu/dvipdfm/
fe9dcc4
#Source0: http://gaspra.kettering.edu/dvipdfm/dvipdfm-%{dvipdfm_ver}.tar.gz
4931932
# for dvipdft
4931932
Requires: ghostscript
4931932
# for .enc files
4931932
Requires: texlive-texmf-dvips = %{texlive_ver}
4931932
4931932
%description -n dvipdfm
4931932
DVI to PDF translator.
4931932
4931932
%package -n dvipdfmx
4931932
Summary: Extended version of the dvipdfm DVI to PDF translator
fe9dcc4
Version: %{dvipdfmx_ver}
4931932
Group: Applications/Publishing
4931932
#Url: http://project.ktug.or.kr/dvipdfmx/
fe9dcc4
#Source0: http://project.ktug.or.kr/dvipdfmx/snapshot/release/dvipdfmx-%{dvipdfmx_ver}.tar.gz
4931932
# for cmap files
4931932
Requires: texlive-texmf-fonts = %{texlive_ver}
4931932
Provides: texlive-dvipdfmx
4931932
4931932
%description -n dvipdfmx
4931932
The dvipdfmx (formerly dvipdfm-cjk) project provides an eXtended version
4931932
of the dvipdfm, a DVI to PDF translator developed by Mark A. Wicks.
4931932
4931932
The primary goal of this project is to support multi-byte character
4931932
encodings and large character sets for East Asian languages. The secondary
4931932
goal is to support as many features as pdfTeX developed by Han The Thanh.
4931932
4931932
This project is a combined work of the dvipdfm-jpn project by Shunsaku
4931932
Hirata and its modified one, dvipdfm-kor, by Jin-Hwan Cho.
4931932
4931932
# without this define, the version is overriden by separated subpackages
4931932
# versions
4931932
%define version %{texlive_ver}
4931932
4931932
%prep
4931932
%setup -q -T -c -a0
4931932
4931932
# fix for debuginfo rpmlint happiness
4931932
chmod -x texk/dvipdfm/macglyphs.h
4931932
chmod -x texk/dvipdfm/ttf.c
4931932
chmod -x texk/dvipdfm/encodings.c
4931932
4931932
######
4931932
# Red Hat-specific TeX configuration patches
4931932
######
4931932
# Use htmlview first
4931932
%patch5 -p1 -b .browser
4931932
%patch9 -p1 -b .teckit
4931932
%patch22 -p1 -b .fedora_paths
4931932
4931932
######
4931932
# TeX patches
4931932
######
4931932
4931932
# Don't use tmpnam() in dvipdfm.
4931932
%patch10 -p1 -b .dvipdfm-security
4931932
# Fix parallel builds.
4931932
%patch11 -p1 -b .makej
4931932
# Don't use PID for temporary file names in scripts (RH bug #41269)
4931932
%patch12 -p1 -b .badscript
4931932
# Always cleanup temporary directories for texconfig, updmap, fmtutil
4931932
#  (RH #172534)
4931932
%patch17 -p1 -b .tmpcleanup
4931932
%patch19 -p0 -b .kpse-extensions
4931932
%patch20 -p1 -b .CVE-2007-4033
4931932
%patch21 -p1 -b .more_paths
4931932
%patch25 -p1 -b .dvipsoverflow
4931932
%patch26 -p1 -b .dviljktemp
4931932
%patch27 -p1 -b .poppler
882783b
%patch28 -p1 -b .notetex
39ed6db
%patch29 -p1 -b .man-context
4931932
4931932
# fix non utf man pages
4931932
%patch41 -p1 -b .notutf8
4931932
%patch42 -p1 -b .notutf8-2
4931932
# user a proper shellbang
4931932
%patch43 -p1 -b .perl
4931932
4931932
%patch100 -p3
90f0e6d
%patch101 -p1 -b .mktexlsr_fixes
4931932
%patch102 -p3
4931932
%patch104 -p3
4931932
%patch105 -p3
4931932
%patch106 -p3
4931932
%patch107 -p3
4931932
%patch108 -p3
4931932
%patch109 -p1
4931932
%patch114 -p3
4931932
%patch115 -p3
4931932
%patch117 -p3
4931932
%patch119 -p3
4931932
%patch120 -p3
4931932
%patch123 -p3
4931932
4931932
%patch202 -p1 -b .pdftex
4931932
4931932
%patch300 -p0
4931932
%patch301 -p0
4931932
%patch302 -p0
4931932
%patch303 -p0
4931932
%patch306 -p0
4931932
fe9dcc4
%patch1007 -p1 -b .ptex
fe9dcc4
4931932
%if %{disable_lcdf_typetools}
4931932
pushd utils
4931932
rm -rf lcdf-typetools
4931932
popd
4931932
%endif
4931932
4931932
## Japanese pTeX
b918f59
# create customized cid-x.map for dvipdfmx (#418091)
b918f59
cat <<EOF >> texk/dvipdfmx/data/config/cid-x.map
b918f59
%%
b918f59
%% ASCII pTeX Examples
b918f59
%%
b918f59
b918f59
%% Ryumin and GothicBBB found in PostScript printers:
b918f59
rml  H !Ryumin-Light
b918f59
gbm  H !GothicBBB-Medium
b918f59
rmlv V !Ryumin-Light
b918f59
gbmv V !GothicBBB-Medium
b918f59
EOF
b918f59
4931932
# set platex to Japanese pLaTeX. original one is moved to platex-pl
4931932
sed -e s/^platex/platex-pl/g \
4931932
    -e s/^pdfplatex/pdfplatex-pl/g \
4931932
    -e s/platex\.ini/platex\-pl\.ini/g \
4931932
     -i texk/web2c/fmtutil.in
4931932
4931932
# Prepare pTeX
4931932
tar xfz %{SOURCE1000} -C texk/web2c/
4931932
cd texk/web2c/ptex-src-%{ptex_src_ver}
4931932
sed -i -e  's|/{ptex/{platex,generic,},tex/{latex,generic,}}|/{ptex/platex,{p,}tex/latex,{p,}tex/generic,{p,}tex}|g' -e 's/| uniq//g' mkconf
fe9dcc4
%patch1004 -p1 -b .fmts
4931932
%patch1006 -p1
4931932
cd -
4931932
4931932
# Prepare Japanese dvips
4931932
mkdir pdvipsk
4931932
tar xfj %{SOURCE1001} -C pdvipsk
4931932
cp -lR texk/dvipsk texk/pdvipsk
4931932
cd pdvipsk
4931932
%patch1005 -p0
4931932
cd -
4931932
patch -d texk/pdvipsk -p1 < pdvipsk/dvipsk-%{pdvipsk_ver}.patch
4931932
%patch1000 -p1 -b .pdvips
4931932
ln -s dvips.1 texk/pdvipsk/pdvips.1
4931932
4931932
# set up mendexk
4931932
tar xfz %{SOURCE1002} -C texk
4931932
4931932
4931932
%build
4931932
set -x
4931932
# define CCACHE_DIR to let the build pass with ccache enabled.
4931932
export CCACHE_DIR=$HOME/.ccache
4931932
unset TEXINPUTS ||:
4931932
unset HOME ||:
4931932
4931932
%{__rm} -r libs/{teckit,obsdcompat}
4931932
4931932
# Japanese pTeX
b332611
pushd texk
b332611
$RPM_BUILD_DIR/%{name}-%{version}/texk/autoconf2.13 -m $RPM_BUILD_DIR/%{name}-%{version}/texk/etc/autoconf
b332611
popd
4931932
4931932
%configure \
4931932
%if %{default_letter_paper}
4931932
        --disable-a4 \
4931932
%endif
4931932
	--enable-shared=yes \
4931932
        --with-system-ncurses \
4931932
        --with-system-zlib \
4931932
        --with-system-pnglib \
4931932
        --with-system-gd \
4931932
        --without-system-icu \
4931932
	--with-icu-include=%{_includedir}/unicode \
4931932
        --with-system-freetype \
4931932
	--with-freetype-include=%{_includedir}/freetype \
4931932
        --with-system-freetype2 \
4931932
	--with-freetype2-include=%{_includedir}/freetype2 \
4931932
	--with-system-t1lib \
4931932
        --without-texlive \
4931932
        --without-t1utils \
4931932
        --without-psutils \
4931932
        --without-ps2eps \
4931932
	--without-pdfopen \
4931932
	--without-ttf2pk \
4931932
        --disable-multiplatform \
4931932
        --without-dialog --without-texinfo --without-texi2html \
4931932
        --without-tex4htk \
4931932
        --without-detex --without-dvi2tty \
4931932
%if %{disable_lcdf_typetools}
4931932
        --with-lcdf-typetools=no \
4931932
%endif
4931932
        --with-mf-x-toolkit=yes \
b332611
        --without-xdvik \
4931932
	--without-cxx-runtime-hack
4931932
4931932
# Remove everything except:
4931932
# icu: includes some changes
4931932
# md5: the aladdin md5 code (not a library)
4931932
%{__rm} -r libs/{curl,expat,freetype,freetype2,gd,howto,jpeg,libgnuw32,libgsw32,libpng,libttf,ncurses,regex,unzip,zlib,type1,t1lib,xpdf}/
4931932
4931932
# %%{?_smp_mflags} does not work in texlive-2007/libs/icu-xetex/common
4931932
make
4931932
4931932
cd texk/web2c/ptex-src-%{ptex_src_ver}
4931932
./configure EUC
4931932
make
4931932
cd -
4931932
4931932
# mendexk build
4931932
cd texk/mendexk%{mendexk_ver}
4931932
./configure EUC
4931932
make
4931932
cd -
4931932
4931932
4931932
%install
4931932
rm -rf %{buildroot}
4931932
export CCACHE_DIR=$HOME/.ccache
4931932
unset TEXINPUTS || :
4931932
unset HOME || :
4931932
4931932
mkdir -p %{buildroot}%{_texmf_main}
4931932
mkdir -p %{buildroot}%{_texmf_var}/web2c
4931932
mkdir -p %{buildroot}%{_texmf_conf}
4931932
4931932
export LD_LIBRARY_PATH=`pwd`/texk/kpathsea/.libs
4931932
4931932
%makeinstall \
4931932
        texmf=%{buildroot}%{_texmf_main} \
4931932
        texmfmain=%{buildroot}%{_texmf_main}
4931932
4931932
# remove all .la files
4931932
rm -f %{buildroot}%{_infodir}/dir
4931932
find %{buildroot} | grep -e "\\.la$" | xargs rm -f
4931932
4931932
# set executable bit for the library for debuginfo creation
4931932
chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
4931932
4931932
## remove what is packages in other Fedora packages
4931932
# jadetex
4931932
rm -f %{buildroot}%{_bindir}/jadetex
4931932
rm -f %{buildroot}%{_bindir}/pdfjadetex
4931932
# xmltex
4931932
rm -f %{buildroot}%{_bindir}/xmltex
4931932
rm -f %{buildroot}%{_bindir}/pdfxmltex
4931932
# octave-forge
4931932
### looks to me like a name clash ?? Octave mex looks like it has nada to
4931932
### to with TeX
4931932
rm -f %{buildroot}%{_bindir}/mex
4931932
### not in octave-forge, nuking anyway
4931932
rm -f %{buildroot}%{_bindir}/pdfmex
4931932
rm -f %{buildroot}%{_bindir}/utf8mex
4931932
4931932
# these are owned by texmf-fonts package
4931932
rm -f %{buildroot}%{_texmf_main}/ls-R
4931932
4931932
# keep fmtutil.cnf used for the initial configuration in doc
4931932
rm -rf __fedora_kpathsea
4931932
mkdir -p __fedora_kpathsea/
4931932
mv %{buildroot}%{_texmf_main}/web2c/fmtutil.cnf __fedora_kpathsea/fmtutil.cnf-init
4931932
4931932
# this file is different from the one in texmf-fonts, since it is 
4931932
# the one from kpathsea which isn't specific of texlive. It is only 
4931932
# used during build and to set the kpathsea default paths, however.
4931932
# Kept as documentation together with paths.h since they describe
4931932
# what the kpathsea default paths are
4931932
mkdir -p __fedora_kpathsea/kpathsea_defaults
4931932
mv %{buildroot}%{_texmf_main}/web2c/texmf.cnf __fedora_kpathsea/kpathsea_defaults/texmf-kpathsea-defaults.cnf
4931932
cp texk/kpathsea/paths.h __fedora_kpathsea/kpathsea_defaults
4931932
4931932
# these are owned by texmf-doc package
4931932
rm -rf %{buildroot}%{_texmf_main}/doc/tetex
4931932
4931932
# install cron file
4931932
install -p -D -m755 %{SOURCE10} %{buildroot}%{_sysconfdir}/cron.daily/texlive.cron
4931932
fe9dcc4
# remove pool files, they belong to texlive-texmf
fe9dcc4
rm -rf %{buildroot}%{_texmf_main}/web2c/*.pool
fe9dcc4
# ptex pool file is added later, and therefore kept
fe9dcc4
4931932
# Japanese pTeX
4931932
rm -f %{buildroot}%{_bindir}/platex
4931932
# Convert documents to UTF-8
a22c80f
mkdir -p %{buildroot}%{_texmf_main}/doc/ptex/ptex-src-%{name} \
b332611
         %{buildroot}%{_texmf_main}/doc/pdvipsk
4931932
cd texk/web2c/ptex-src-%{ptex_src_ver}
4931932
iconv -f ISO-2022-JP -t UTF-8 \
4931932
      COPYRIGHT.jis \
a22c80f
      -o %{buildroot}%{_texmf_main}/doc/ptex/ptex-src-%{name}/COPYRIGHT-ja
4931932
for i in README.txt Changes.txt ; do
4931932
  iconv -f EUC-JP -t UTF-8 ${i} \
a22c80f
        -o %{buildroot}%{_texmf_main}/doc/ptex/ptex-src-%{name}/${i}
4931932
done
4931932
cd -
4931932
cd pdvipsk
4931932
for i in ChangeLog.jpatch README.jpatch ; do
4931932
  iconv -f EUC-JP -t UTF-8 ${i} -o %{buildroot}%{_texmf_main}/doc/pdvipsk/${i}
4931932
done
4931932
cd -
4931932
4931932
cd texk/web2c/ptex-src-%{ptex_src_ver}
4931932
%makeinstall INSTALL="install -p" prefix=%{buildroot}%{_prefix} \
4931932
        texmf=%{buildroot}%{_texmf_main} \
4931932
        texmfmain=%{buildroot}%{_texmf_main}
4931932
# texmf.cnf is prepared by texlive-texmf package.
4931932
rm %{buildroot}%{_texmf_main}/web2c/texmf.cnf
4931932
cd -
4931932
4931932
# mendexk install
4931932
cd texk/mendexk%{mendexk_ver}
a33cb6f
a33cb6f
sh ../libtool --mode=install install mendex %{buildroot}%{_bindir}
4931932
4931932
mkdir -p %{buildroot}%{_mandir}/ja/man1
4931932
iconv -f EUC-JP -t UTF-8 mendex.1 -o %{buildroot}%{_mandir}/ja/man1/mendex.1
a22c80f
mkdir -p %{buildroot}%{_datadir}/texmf/doc/mendexk-%{name}
a22c80f
install -p -m 644 COPYRIGHT ChangeLog %{buildroot}%{_datadir}/texmf/doc/mendexk-%{name}
a22c80f
iconv -f EUC-JP -t UTF-8 README -o %{buildroot}%{_datadir}/texmf/doc/mendexk-%{name}/README
a22c80f
iconv -f ISO-2022-JP -t UTF-8 COPYRIGHT.jis -o %{buildroot}%{_datadir}/texmf/doc/mendexk-%{name}/COPYRIGHT.jis
4931932
cd -
4931932
4931932
# remove useless files in texconfig
4931932
rm -rf %{buildroot}%{_texmf_main}/texconfig/{g,v,x,README,generic}
4931932
4931932
# move the configuration files that should be under user control
4931932
mkdir -p %{buildroot}%{_texmf_conf}/{web2c/,dvipdfm/}
4931932
mv %{buildroot}%{_texmf_main}/web2c/mktexdir.opt %{buildroot}%{_texmf_conf}/web2c/
4931932
mv %{buildroot}%{_texmf_main}/dvipdfm/cid-x.map %{buildroot}%{_texmf_conf}/dvipdfm/
4931932
4931932
# separated projects
4931932
rm %{buildroot}%{_bindir}/devnag
4931932
rm %{buildroot}%{_bindir}/afm2pl %{buildroot}%{_mandir}/man1/afm2pl.1*
4931932
15eb7e9
# remove unused ConTeXt stuff
15eb7e9
rm %{buildroot}%{_mandir}/man1/texfind.1* %{buildroot}%{_mandir}/man1/fdf2tex.1*
15eb7e9
4931932
%clean
4931932
rm -rf %{buildroot}
4931932
4931932
%post
2673b24
%{_bindir}/texconfig-sys rehash 2> /dev/null
2673b24
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/web2c.info.gz %{_infodir}/dir
2673b24
%{_bindir}/fmtutil-sys --all &> /dev/null
2673b24
%{_bindir}/updmap-sys --syncwithtrees &> /dev/null
2673b24
:
4931932
4931932
%post afm
4931932
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
4931932
4931932
%post dvips
2673b24
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/dvips.info.gz %{_infodir}/dir
2673b24
%{_bindir}/texconfig-sys rehash 2> /dev/null
2673b24
:
4931932
4931932
%post dviutils
4931932
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
4931932
4931932
%post latex
2673b24
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/latex.info.gz %{_infodir}/dir
2673b24
%{_bindir}/texconfig-sys init &> /dev/null
2673b24
%{_bindir}/texconfig-sys rehash 2> /dev/null
2673b24
%{_bindir}/fmtutil-sys --all &> /dev/null
2673b24
:
4931932
4931932
%post -n kpathsea
4931932
/sbin/ldconfig
4931932
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/kpathsea.info.gz %{_infodir}/dir || :
4931932
4931932
%post -n dvipng
4931932
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/dvipng.info.gz %{_infodir}/dir || :
4931932
4931932
fe9dcc4
%preun
fe9dcc4
if [ "$1" = 0 ]; then
fe9dcc4
  [ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/web2c.info.gz %{_infodir}/dir || :
fe9dcc4
fi
fe9dcc4
4931932
%preun dvips
4931932
if [ "$1" = 0 ]; then
4931932
  [ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/dvips.info.gz %{_infodir}/dir || :
4931932
fi
4931932
4931932
%preun -n dvipng
4931932
if [ "$1" = 0 ]; then
4931932
  [ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/dvipng.info.gz %{_infodir}/dir || :
4931932
fi
4931932
4931932
%preun latex
4931932
if [ "$1" = 0 ]; then
4931932
  [ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/latex.info.gz %{_infodir}/dir || :
4931932
fi
4931932
4931932
%preun -n kpathsea
4931932
/sbin/ldconfig
4931932
if [ "$1" = 0 ]; then
4931932
  [ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/kpathsea.info.gz %{_infodir}/dir || :
4931932
fi
4931932
4931932
%postun
4931932
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
4931932
4931932
%postun afm
4931932
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
4931932
4931932
%postun dvips
4931932
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
4931932
4931932
%postun latex
4931932
%{_bindir}/texconfig-sys rehash 2> /dev/null || :
4931932
4931932
%postun -n kpathsea
4931932
/sbin/ldconfig
4931932
4931932
4931932
%files
4931932
%defattr(-,root,root,-)
4931932
# config files
4931932
%dir %{_texmf_conf}
a158ade
%dir %{_texmf_conf}/web2c/
a158ade
%dir %{_texmf_var}/web2c/
a158ade
%dir %{_texmf_main}/web2c/
a158ade
%dir %{_texmf_main}/doc/
a158ade
%doc %{_texmf_main}/doc/bibtex8/
a158ade
%doc __fedora_kpathsea/fmtutil.cnf-init
4931932
%config(noreplace) %{_texmf_conf}/web2c/mktexdir.opt
0e5aad6
# binaries
4931932
%{_bindir}/aleph
4931932
%{_bindir}/amstex
4931932
%{_bindir}/bibtex
4931932
%{_bindir}/ctangle
4931932
%{_bindir}/ctie
4931932
%{_bindir}/cweave
4931932
%{_bindir}/etex
4931932
%{_bindir}/fmtutil
4931932
%{_bindir}/fmtutil-sys
4931932
%{_bindir}/fontinst
0e5aad6
%{_bindir}/gftodvi
0e5aad6
%{_bindir}/gftopk
0e5aad6
%{_bindir}/gftype
0e5aad6
%{_bindir}/kpseaccess
0e5aad6
%{_bindir}/kpsepath
0e5aad6
%{_bindir}/kpsereadlink
0e5aad6
%{_bindir}/kpsestat
0e5aad6
%{_bindir}/kpsetool
0e5aad6
%{_bindir}/kpsewhich
0e5aad6
%{_bindir}/kpsexpand
4931932
%{_bindir}/kpsewhere
4931932
%{_bindir}/lambda
4931932
%{_bindir}/lamed
0e5aad6
%{_bindir}/mag
4931932
%{_bindir}/makeindex
0e5aad6
%{_bindir}/mf-nowin
0e5aad6
%{_bindir}/mft
4931932
%{_bindir}/mkindex
4931932
%{_bindir}/mkocp
0e5aad6
%{_bindir}/mkofm
4931932
%{_bindir}/mktexfmt
0e5aad6
%{_bindir}/mktexlsr
0e5aad6
%{_bindir}/mktexmf
0e5aad6
%{_bindir}/mktexpk
0e5aad6
%{_bindir}/mktextfm
4931932
%{_bindir}/newer
0e5aad6
%{_bindir}/ofm2opl
4931932
%{_bindir}/omega
0e5aad6
%{_bindir}/omfonts
0e5aad6
%{_bindir}/opl2ofm
4931932
%{_bindir}/otangle
0e5aad6
%{_bindir}/otp2ocp
0e5aad6
%{_bindir}/outocp
0e5aad6
%{_bindir}/ovf2ovp
0e5aad6
%{_bindir}/ovp2ovf
4931932
%{_bindir}/patgen
4931932
%{_bindir}/pdfetex
4931932
%{_bindir}/pdftex
0e5aad6
%{_bindir}/pfb2pfa
0e5aad6
%{_bindir}/pk2bm
0e5aad6
%{_bindir}/pktogf
0e5aad6
%{_bindir}/pktype
0e5aad6
%{_bindir}/pltotf
4931932
%{_bindir}/pooltype
4931932
%{_bindir}/ps2frag
0e5aad6
%{_bindir}/ps2pk
4931932
%{_bindir}/rubibtex
4931932
%{_bindir}/rumakeindex
4931932
%{_bindir}/tangle
4931932
%{_bindir}/tex
4931932
%{_bindir}/texconfig
4931932
%{_bindir}/texconfig-dialog
4931932
%{_bindir}/texconfig-sys
0e5aad6
%{_bindir}/texhash
4931932
%{_bindir}/texlinks
0e5aad6
%{_bindir}/tftopl
4931932
%{_bindir}/tie
4931932
%{_bindir}/updmap
4931932
%{_bindir}/updmap-sys
0e5aad6
%{_bindir}/vftovp
0e5aad6
%{_bindir}/vptovf
4931932
%{_bindir}/weave
4931932
# new files not in Fedora tetex
4931932
%{_bindir}/bibtex8
4931932
%{_bindir}/csplain
4931932
# separated project
4931932
%{_bindir}/mltex
4931932
%{_bindir}/pdfcsplain
4931932
# separated project
4931932
%{_bindir}/eplain
4931932
%{_bindir}/extconv
4931932
%{_bindir}/musixflx
4931932
%{_bindir}/physe
4931932
%{_bindir}/phyzzx
4931932
%{_bindir}/texsis
4931932
# other utilities
4931932
%{_bindir}/pdftosrc
4931932
# man pages
4931932
%{_mandir}/man1/amstex.1*
4931932
%{_mandir}/man1/bibtex.1*
4931932
%{_mandir}/man1/ctangle.1*
4931932
%{_mandir}/man1/ctie.1*
4931932
%{_mandir}/man1/cweave.1*
4931932
%{_mandir}/man1/cweb.1*
4931932
%{_mandir}/man1/eplain.1*
4931932
%{_mandir}/man1/etex.1*
4931932
%{_mandir}/man1/fmtutil.1*
4931932
%{_mandir}/man1/fmtutil-sys.1*
4931932
%{_mandir}/man1/fontinst.1*
0e5aad6
%{_mandir}/man1/gftodvi.1*
0e5aad6
%{_mandir}/man1/gftopk.1*
0e5aad6
%{_mandir}/man1/gftype.1*
0e5aad6
%{_mandir}/man1/kpseaccess.1*
0e5aad6
%{_mandir}/man1/kpsepath.1*
0e5aad6
%{_mandir}/man1/kpsereadlink.1*
0e5aad6
%{_mandir}/man1/kpsestat.1*
0e5aad6
%{_mandir}/man1/kpsetool.1*
0e5aad6
%{_mandir}/man1/kpsewhich.1*
4931932
%{_mandir}/man1/kpsewhere.1*
0e5aad6
%{_mandir}/man1/kpsexpand.1*
4931932
%{_mandir}/man1/lambda.1*
0e5aad6
%{_mandir}/man1/mag.1*
4931932
%{_mandir}/man1/makeindex.1*
4931932
%{_mandir}/man1/mf-nowin.1*
0e5aad6
%{_mandir}/man1/mft.1*
4931932
%{_mandir}/man1/mkindex.1*
4931932
%{_mandir}/man1/mkocp.1*
0e5aad6
%{_mandir}/man1/mkofm.1*
4931932
%{_mandir}/man1/mktexfmt.1*
0e5aad6
%{_mandir}/man1/mktexlsr.1*
0e5aad6
%{_mandir}/man1/mktexmf.1*
0e5aad6
%{_mandir}/man1/mktexpk.1*
0e5aad6
%{_mandir}/man1/mktextfm.1*
4931932
%{_mandir}/man1/newer.1*
0e5aad6
%{_mandir}/man1/ofm2opl.1*
4931932
%{_mandir}/man1/omega.1*
0e5aad6
%{_mandir}/man1/opl2ofm.1*
0e5aad6
%{_mandir}/man1/otp2ocp.1*
0e5aad6
%{_mandir}/man1/outocp.1*
0e5aad6
%{_mandir}/man1/ovf2ovp.1*
0e5aad6
%{_mandir}/man1/ovp2ovf.1*
4931932
%{_mandir}/man1/patgen.1*
4931932
%{_mandir}/man1/pdfetex.1*
4931932
%{_mandir}/man1/pdftex.1*
0e5aad6
%{_mandir}/man1/pfb2pfa.1*
0e5aad6
%{_mandir}/man1/pk2bm.1*
0e5aad6
%{_mandir}/man1/pktogf.1*
0e5aad6
%{_mandir}/man1/pktype.1*
0e5aad6
%{_mandir}/man1/pltotf.1*
4931932
%{_mandir}/man1/pooltype.1*
4931932
%{_mandir}/man1/ps2frag.1*
0e5aad6
%{_mandir}/man1/ps2pk.1*
4931932
%{_mandir}/man1/rubibtex.1*
4931932
%{_mandir}/man1/rumakeindex.1*
4931932
%{_mandir}/man1/tangle.1*
4931932
%{_mandir}/man1/tex.1*
4931932
%{_mandir}/man1/texconfig.1*
4931932
%{_mandir}/man1/texconfig-sys.1*
0e5aad6
%{_mandir}/man1/texhash.1*
4931932
%{_mandir}/man1/texlinks.1*
0e5aad6
%{_mandir}/man1/tftopl.1*
4931932
%{_mandir}/man1/tie.1*
4931932
%{_mandir}/man1/updmap.1*
4931932
%{_mandir}/man1/updmap-sys.1*
0e5aad6
%{_mandir}/man1/vftovp.1*
0e5aad6
%{_mandir}/man1/vptovf.1*
4931932
%{_mandir}/man1/weave.1*
0e5aad6
%{_mandir}/man5/fmtutil.cnf.5*
4931932
# new files not in Fedora tetex
4931932
%{_mandir}/man5/updmap.cfg.*
4931932
# man pages for other utilities
4931932
%{_mandir}/man1/pdftosrc.1*
4931932
# other stuff
4931932
%{_sysconfdir}/cron.daily/texlive.cron
4931932
%{_infodir}/web2c.info.*
4931932
%{_texmf_main}/web2c/*.opt
4931932
%{_texmf_main}/web2c/mktexdir
4931932
%{_texmf_main}/web2c/mktexnam
4931932
%{_texmf_main}/web2c/mktexupd
15eb7e9
%{_texmf_main}/bibtex/
15eb7e9
%{_texmf_main}/texconfig/tcfmgr*
4931932
53b0e0b
%files utils
53b0e0b
%defattr(-,root,root,-)
53b0e0b
%{_bindir}/a2ping
53b0e0b
%{_bindir}/e2pall
53b0e0b
%{_bindir}/epstopdf
53b0e0b
%{_bindir}/gsftopk
53b0e0b
%{_bindir}/mf
53b0e0b
%{_bindir}/pdfcrop
53b0e0b
%{_bindir}/ps4pdf
53b0e0b
%{_bindir}/thumbpdf
53b0e0b
%{_mandir}/man1/e2pall.1*
53b0e0b
%{_mandir}/man1/epstopdf.1*
53b0e0b
%{_mandir}/man1/gsftopk.1*
53b0e0b
%{_mandir}/man1/mf.1*
53b0e0b
%{_mandir}/man1/thumbpdf.1*
53b0e0b
53b0e0b
%files xetex
53b0e0b
%defattr(-,root,root,-)
53b0e0b
%{_bindir}/xetex
53b0e0b
fe9dcc4
%files afm
fe9dcc4
%defattr(-,root,root,-)
fe9dcc4
%{_bindir}/afm2tfm
fe9dcc4
%{_bindir}/ttf2afm
fe9dcc4
%{_mandir}/man1/afm2tfm.1*
fe9dcc4
%{_mandir}/man1/ttf2afm.1*
fe9dcc4
fe9dcc4
%files dvips
fe9dcc4
%defattr(-,root,root,-)
53b0e0b
%{_bindir}/allcm
53b0e0b
%{_bindir}/allec
53b0e0b
%{_bindir}/allneeded
fe9dcc4
%{_bindir}/dvi2fax
fe9dcc4
%{_bindir}/dvips
fe9dcc4
%{_bindir}/dvired
fe9dcc4
%{_bindir}/odvips
fe9dcc4
%{_texmf_main}/dvips/
53b0e0b
%{_mandir}/man1/allcm.1*
53b0e0b
%{_mandir}/man1/allec.1*
53b0e0b
%{_mandir}/man1/allneeded.1*
fe9dcc4
%{_mandir}/man1/dvi2fax.1*
fe9dcc4
%{_mandir}/man1/dvips.1*
fe9dcc4
%{_mandir}/man1/dvired.1*
fe9dcc4
%{_mandir}/man1/odvips.1*
fe9dcc4
%{_infodir}/dvips.info.*
fe9dcc4
c8d3ea2
%files doc
c8d3ea2
%defattr(-,root,root,-)
c8d3ea2
%{_bindir}/texdoc
c8d3ea2
%{_bindir}/texdoctk
c8d3ea2
# man pages
c8d3ea2
%{_mandir}/man1/texdoc.1*
c8d3ea2
%{_mandir}/man1/texdoctk.1*
c8d3ea2
fe9dcc4
%files dviutils
fe9dcc4
%defattr(-,root,root,-)
fe9dcc4
%{_bindir}/dt2dv
fe9dcc4
%{_bindir}/dv2dt
fe9dcc4
%{_bindir}/dvicopy
fe9dcc4
%{_bindir}/dvihp
fe9dcc4
%{_bindir}/dvitype
fe9dcc4
%{_bindir}/dvibook
fe9dcc4
%{_bindir}/dviconcat
fe9dcc4
%{_bindir}/dvidvi
fe9dcc4
%{_bindir}/dvilj
fe9dcc4
%{_bindir}/dvilj2p
fe9dcc4
%{_bindir}/dvilj4
fe9dcc4
%{_bindir}/dvilj4l
fe9dcc4
%{_bindir}/dvilj6
fe9dcc4
%{_bindir}/dvipos
fe9dcc4
%{_bindir}/dviselect
fe9dcc4
%{_bindir}/dvitodvi
fe9dcc4
%{_bindir}/odvicopy
fe9dcc4
%{_bindir}/odvitype
fe9dcc4
%{_mandir}/man1/dvicopy.1*
fe9dcc4
%{_mandir}/man1/dvihp.1*
fe9dcc4
%{_mandir}/man1/dvitype.1*
fe9dcc4
%{_mandir}/man1/dt2dv.1*
fe9dcc4
%{_mandir}/man1/dv2dt.1*
fe9dcc4
%{_mandir}/man1/dvibook.1*
fe9dcc4
%{_mandir}/man1/dviconcat.1*
fe9dcc4
%{_mandir}/man1/dvidvi.1*
fe9dcc4
%{_mandir}/man1/dvilj.1*
fe9dcc4
%{_mandir}/man1/dvilj2p.1*
fe9dcc4
%{_mandir}/man1/dvilj4.1*
fe9dcc4
%{_mandir}/man1/dvilj4l.1*
fe9dcc4
%{_mandir}/man1/dvilj6.1*
fe9dcc4
%{_mandir}/man1/dvipos.1*
fe9dcc4
%{_mandir}/man1/dviselect.1*
fe9dcc4
%{_mandir}/man1/dvitodvi.1*
fe9dcc4
%{_mandir}/man1/odvicopy.1*
fe9dcc4
%{_mandir}/man1/odvitype.1*
fe9dcc4
4931932
%files latex
4931932
%defattr(-,root,root,-)
4931932
%{_bindir}/latex
4931932
%{_bindir}/pdflatex
4931932
%{_bindir}/xelatex
4931932
%{_bindir}/platex
4931932
%{_bindir}/pslatex
4931932
%{_mandir}/man1/latex.1*
4931932
%{_mandir}/man1/pdflatex.1*
4931932
%{_mandir}/man1/pslatex.1*
4931932
%{_infodir}/latex.info.*
4931932
# not in fedora tetex
4931932
%{_bindir}/cslatex
4931932
%{_bindir}/lacheck
4931932
%{_bindir}/mllatex
4931932
%{_bindir}/pdfcslatex
4931932
%{_mandir}/man1/lacheck.1*
4931932
4931932
%files -n kpathsea
4931932
%defattr(-,root,root,-)
a158ade
%doc __fedora_kpathsea/kpathsea_defaults/
4931932
%{_libdir}/libkpathsea.so.*
4931932
%{_infodir}/kpathsea.info.*
4931932
4931932
%files -n kpathsea-devel
4931932
%defattr(-,root,root,-)
4931932
%{_includedir}/kpathsea/
4931932
%{_libdir}/libkpathsea.so
4931932
# yes - packaging the static too. Some programs apparently can't link
4931932
#  against the shared. I can't name any, but so i hear.
4931932
%{_libdir}/libkpathsea.a
4931932
4931932
%files -n dvipng
4931932
%defattr(-,root,root,-)
4931932
%{_bindir}/dvipng
4931932
%{_mandir}/man1/dvipng.1*
4931932
%{_infodir}/dvipng.info*
4931932
4931932
%files -n mendexk
4931932
%defattr(-,root,root,-)
a158ade
%doc %{_texmf_main}/doc/mendexk-%{name}/
4931932
%{_bindir}/mendex
4931932
%{_mandir}/ja/man1/mendex.1*
4931932
4931932
%files -n dvipdfm
4931932
%defattr(-,root,root,-)
4931932
%{_bindir}/ebb
4931932
%{_bindir}/dvipdfm
4931932
%{_bindir}/dvipdft
4931932
%{_mandir}/man1/ebb.1*
4931932
%{_mandir}/man1/dvipdfm.1*
4931932
%{_mandir}/man1/dvipdft.1*
4931932
4931932
%files -n dvipdfmx
a158ade
%defattr(-,root,root,-)
4931932
%doc texk/dvipdfmx/AUTHORS texk/dvipdfmx/ChangeLog 
4931932
%doc texk/dvipdfmx/COPYING texk/dvipdfmx/README
4931932
%dir %{_texmf_conf}/dvipdfm/
4931932
%config(noreplace) %{_texmf_conf}/dvipdfm/cid-x.map
4931932
%{_bindir}/dvipdfmx
53b0e0b
%{_bindir}/xdvipdfmx
4931932
%{_texmf_main}/dvipdfm/
4931932
a158ade
%files japanese
a158ade
%doc %{_texmf_main}/doc/pdvipsk/
a158ade
%doc %{_texmf_main}/doc/ptex/
15eb7e9
%{_texmf_main}/fonts/map/pdvips/
15eb7e9
%{_texmf_main}/pdvips/
a158ade
%{_texmf_main}/web2c/ptex.pool
15eb7e9
%{_bindir}/bg5+latex
15eb7e9
%{_bindir}/bg5+pdflatex
15eb7e9
%{_bindir}/bg5latex
15eb7e9
%{_bindir}/bg5pdflatex
15eb7e9
%{_bindir}/cef5latex
15eb7e9
%{_bindir}/cef5pdflatex
15eb7e9
%{_bindir}/ceflatex
15eb7e9
%{_bindir}/cefpdflatex
15eb7e9
%{_bindir}/cefslatex
15eb7e9
%{_bindir}/cefspdflatex
15eb7e9
%{_bindir}/bg5conv
15eb7e9
%{_bindir}/cef5conv
15eb7e9
%{_bindir}/cefconv
15eb7e9
%{_bindir}/cefsconv
15eb7e9
%{_bindir}/gbklatex
15eb7e9
%{_bindir}/gbkpdflatex
15eb7e9
%{_bindir}/hbf2gf
15eb7e9
%{_bindir}/jbibtex
15eb7e9
%{_bindir}/pdfplatex-pl
a158ade
%{_bindir}/pdvips
a158ade
%{_bindir}/pdvitype
a158ade
%{_bindir}/platex-pl
a158ade
%{_bindir}/platex209
15eb7e9
%{_bindir}/ptex
15eb7e9
%{_bindir}/sjisconv
15eb7e9
%{_bindir}/sjislatex
15eb7e9
%{_bindir}/sjispdflatex
15eb7e9
%{_bindir}/opdvips
15eb7e9
%{_mandir}/man1/hbf2gf.1*
15eb7e9
%{_mandir}/man1/pdvips.1*
15eb7e9
%{_mandir}/man1/opdvips.1*
15eb7e9
15eb7e9
%files context
15eb7e9
%{_bindir}/ctxtools
15eb7e9
%{_bindir}/dvitomp
15eb7e9
%{_bindir}/dmp
15eb7e9
%{_bindir}/exatools
15eb7e9
%{_bindir}/luatools
15eb7e9
%{_bindir}/makempx
15eb7e9
%{_bindir}/makempy
15eb7e9
%{_bindir}/mpost
15eb7e9
%{_bindir}/mpstools
15eb7e9
%{_bindir}/mpto
15eb7e9
%{_bindir}/mptopdf
15eb7e9
%{_bindir}/mtxtools
15eb7e9
%{_bindir}/pdftools
15eb7e9
%{_bindir}/pstopdf
15eb7e9
%{_bindir}/rlxtools
15eb7e9
%{_bindir}/runtools
15eb7e9
%{_bindir}/texexec
15eb7e9
%{_bindir}/texfont
15eb7e9
%{_bindir}/texmfstart
15eb7e9
%{_bindir}/textools
15eb7e9
%{_bindir}/texutil
15eb7e9
%{_bindir}/tmftools
15eb7e9
%{_bindir}/xmltools
15eb7e9
%{_mandir}/man1/ctxtools.1*
15eb7e9
%{_mandir}/man1/dvitomp.1*
15eb7e9
%{_mandir}/man1/dmp.1*
15eb7e9
%{_mandir}/man1/makempx.1*
15eb7e9
%{_mandir}/man1/makempy.1*
15eb7e9
%{_mandir}/man1/mpost.1*
15eb7e9
%{_mandir}/man1/mpto.1*
15eb7e9
%{_mandir}/man1/mptopdf.1*
15eb7e9
%{_mandir}/man1/pdftools.1*
15eb7e9
%{_mandir}/man1/pstopdf.1*
15eb7e9
%{_mandir}/man1/texexec.1*
15eb7e9
%{_mandir}/man1/texfont.1*
15eb7e9
%{_mandir}/man1/texmfstart.1*
15eb7e9
%{_mandir}/man1/textools.1*
15eb7e9
%{_mandir}/man1/texutil.1*
a158ade
4931932
%changelog
15eb7e9
* Tue Feb 19 2008 Jindrich Novy <jnovy@redhat.com> - 2007-18
15eb7e9
- package ConTeXt separately to get rid of the ruby dependency
15eb7e9
- fix summary for texlive-japanese
15eb7e9
- remove man pages with no corresponding binaries
15eb7e9
688f531
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2007-17
688f531
- Autorebuild for GCC 4.3
688f531
a158ade
* Mon Jan 28 2008 Jindrich Novy <jnovy@redhat.com> - 2007-16
a158ade
- package Japanese separately -> texlive-japanese
a158ade
- add missing BR: texlive-texmf-fonts (#430338)
a158ade
- temporarily disable BR: texlive in kpathsea
a158ade
53b0e0b
* Wed Jan 23 2008 Jindrich Novy <jnovy@redhat.com> - 2007-15
53b0e0b
- dependency pruning: (#428489, #429753)
53b0e0b
  - package XeTeX separately
53b0e0b
  - move ghostscript utilities (a2ping, e2pall, epstopdf, gsftopk,
53b0e0b
    pdfcrop, ps4pdf, thumbpdf) and metafont with X support
53b0e0b
    to texlive-utils subpackage
53b0e0b
  - move allcm, allec, allneeded to texlive-dvips
53b0e0b
  - package xdvipdfmx in dvipdfmx subpackage
53b0e0b
  - only texlive-doc now requires xdg-utils
53b0e0b
39ed6db
* Tue Jan 22 2008 Jindrich Novy <jnovy@redhat.com> - 2007-14
39ed6db
- use xdg-open(1) in texdoctk (#429659)
39ed6db
- fix bad syntax of texmfstart man page
39ed6db
a33cb6f
* Fri Jan 18 2008 Jindrich Novy <jnovy@redhat.com> - 2007-13
a33cb6f
- don't copy original pdftex map files but regenerate them
a33cb6f
  with the correct updmap.cfg file updated in texlive-texmf
a33cb6f
  (Related: #425804)
a33cb6f
- install mendex via libtool (#428507)
a33cb6f
882783b
* Thu Jan 17 2008 Jindrich Novy <jnovy@redhat.com> - 2007-12
882783b
- remove all references to teTeX from the packaged man pages
882783b
  and update links to point correctly to upstream mailing
882783b
  list and web page
882783b
- drop xpdf patch, we link against poppler now
882783b
2673b24
* Wed Jan 16 2008 Jindrich Novy <jnovy@redhat.com> - 2007-11
2673b24
- temporary fix to pdflatex to not to warn verbosely because of
2673b24
  ambiguous entries in pdflatex.map (#425804)
2673b24
- update post scriptlets, spec cleanup
2673b24
b332611
* Tue Jan 15 2008 Jindrich Novy <jnovy@redhat.com> - 2007-10
b332611
- don't build/package xdvik/pxdvik, it's now separated
b332611
- fix texlive-doc requires, description
b332611
- use virtual provides with parentheses to avoid clashes
b332611
  with real packages (#410401)
b332611
c8d3ea2
* Mon Jan 14 2008 Jindrich Novy <jnovy@redhat.com> - 2007-9
0e5aad6
- unify texlive and texlive-fonts filelists
c8d3ea2
- package texdoc and texdoctk to a separate subpackage
c8d3ea2
  texlive-doc, because of the Perl-Tk dependencies and logic
0e5aad6
90f0e6d
* Mon Jan 07 2008 Jindrich Novy <jnovy@redhat.com> - 2007-8
90f0e6d
- add tex-latex and tex-dvips virtual provides
90f0e6d
- mktexlsr fixes from Patrice Dumas
90f0e6d
a469184
* Fri Jan 04 2008 Jindrich Novy <jnovy@redhat.com> - 2007-7
a469184
- add tetex-fonts virtual provides to main texlive package (#427521)
a469184
fe9dcc4
* Wed Jan 02 2008 Jindrich Novy <jnovy@redhat.com> - 2007-6
fe9dcc4
- unify texlive and texlive-fonts packages and obsolete
fe9dcc4
  texlive-fonts (related: #426388)
fe9dcc4
- move subpackages versions to the top of spec file
fe9dcc4
- changes from Patruce Dumas:
fe9dcc4
  * remove BuildRequires on texmf packages
fe9dcc4
  * don't create .fmt files during the build
fe9dcc4
  * ship the ptex.pool file
34f6ff5
970cd2f
* Mon Dec 17 2007 Jindrich Novy <jnovy@redhat.com> - 2007-5
970cd2f
- add tex virtual provide
970cd2f
- BuildRequire texlive-fonts for kpathsea (thanks to Patrice Dumas)
970cd2f
8cc40e3
* Mon Dec 10 2007 Jindrich Novy <jnovy@redhat.com> - 2007-4
8cc40e3
- update japanese, chinese, korean paths to fonts in vfontmap (#418081, #392221)
b918f59
- create customized cid-x.map for dvipdfmx (#418091)
8cc40e3
f40d48a
* Tue Dec 04 2007 Jindrich Novy <jnovy@redhat.com> - 2007-3
f40d48a
- try to obsolete tetex correctly
f40d48a
a22c80f
* Tue Dec 04 2007 Jindrich Novy <jnovy@redhat.com> - 2007-2
a22c80f
- avoid conflicts with tetex-doc package
a22c80f
8457f55
* Sun Dec 02 2007 Jindrich Novy <jnovy@redhat.com> - 2007-1
a53a117
- buildrequire texlive-texmf-fonts and texlive-texmf-latex for ptex
8457f55
- drop BR gawk
8457f55
4931932
* Fri Nov 30 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.17
4931932
- add .gz suffix to info pages so that they gets successfully
4931932
  removed in preun phase
4931932
4931932
* Thu Nov 29 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.16
4931932
- drop Requires: poppler
4931932
- require texlive-fonts in kpathsea
4931932
- replace htmlview by xdg-open
4931932
4931932
* Fri Nov 16 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.15
4931932
- fix t1lib flaw CVE-2007-4033 (#352271)
4931932
- fix CVE-2007-4352 CVE-2007-5392 CVE-2007-5393, various xpdf flaws (#345121)
4931932
- xdvi won't segfault if DVI file contains character which
4931932
  is not present in font (#243630)
4931932
- fix dvips -z buffer overflow with long href (#368591)
4931932
- fix insecure usage of temporary file in dviljk (#368611, #368641)
4931932
- link against poppler, not internal xpdf
4931932
- include arabtex
4931932
4931932
* Tue Oct 16 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.14
4931932
- xdvi won't segfault if DVI file contains character which
4931932
  is not present in font (#243630)
4931932
4931932
* Wed Sep 19 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.13
4931932
- update ls-Rs to deal with the japanese support
4931932
- update ptex to 3.1.10 and mendex to 2.6e
4931932
- fix install-info in scriptlets
4931932
4931932
* Tue Sep 18 2007 Patrice Dumas <pertusus@free.fr>
4931932
- subpackage packages that have a distinct upstream
4931932
- remove non free parts from the archive
4931932
- install xdvi icon in hicolor directory
4931932
4931932
* Thu Aug 30 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.12
4931932
- update description
4931932
- BR ruby, don't obsolete tetex-tex4ht
4931932
- remove license problematic/useless stuff, based on email from Karl Berry
4931932
- move vfont.sample to doc
4931932
- preserve timestamps
4931932
- shuffle binaries between texlive and texlive-fonts, update scriptlets
4931932
4931932
* Mon Aug 27 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.11
4931932
- BR gawk, ghostscript
4931932
- incorporate path fixes by Patrice Dumas
4931932
- change in the kpathsea default paths
4931932
- don't BR the *-texmf
4931932
- ship kpathsea defaults as documentation
4931932
- disable build of ps2eps at configuration time
4931932
4931932
* Wed Aug 22 2007 MATSUURA Takanori <t.matsuu at gmail.com> - 2007-0.10.1
4931932
- add Japanese pTeX
4931932
- Polish platex and pdfplatex are moved to platex-pl and
4931932
  pdfplatex respectively
4931932
4931932
* Sat Aug 18 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.10
4931932
- update License tag to licenses used in TeXLive sources
4931932
- remove ps2eps, it's a separate package
4931932
- don't remove updmap.cfg in post phase
4931932
- fix provides/obsoletes
4931932
- tetex.cron -> texlive.cron
4931932
- review fixes thanks to Patrice Dumas:
4931932
- remove .gz from installing info in scriptlets
4931932
- remove useless comments, lesstif/lesstif-devel requires
4931932
- remove X-Red-Hat-Extra category from xdvi.desktop
4931932
- update texlive-texdoc.patch
4931932
- require xdg-utils, htmlview, don't require bison, flex, ed
4931932
4931932
* Tue Aug 14 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.9
4931932
- update internal xpdf to 3.02 from upstream to fix CVE-2007-3387
4931932
- don't link statically with libstdc++
4931932
- put xdvi.xaw3d to texlive-xdvi instead of main package
4931932
4931932
* Tue Aug 07 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.8
4931932
- xdvi now compiles with Xaw3d support on i386
4931932
4931932
* Tue Jul 24 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.7
4931932
- obsolete tetex
4931932
4931932
* Wed Jul 18 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.6
4931932
- bump release to sync with texlive-texmf package changes
4931932
4931932
* Tue Jul 10 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.5
4931932
- separate kpathsea from texlive-fonts
4931932
- update filelists
4931932
- incorporate fixes from David Walluck (Mandriva, Debian, SuSE patches, etc.)
4931932
- link against system freetype2/t1lib
4931932
- remove kpathsea library building hacks
4931932
- disable ttf2pk, don't link against type1
4931932
- fix perl requires
4931932
4931932
* Tue Jun 26 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.4
4931932
- reintroduce the texlive-errata scheme
4931932
- update filelist
4931932
- cleanup patches
4931932
4931932
* Mon Jun 04 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.3
4931932
- use $TEXMFDOCS instead of $TEXMF/doc in texdoc (#232769)
4931932
4931932
* Fri Jun 01 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.2
4931932
- update to TeXLive 2007 final
4931932
- remove texlive-errata dependencies
4931932
- don't use dates in upstream tarball names
4931932
- fix invalid freetype libraries location
4931932
- disable broken parallel build
4931932
- move filelists back to the spec
4931932
4931932
* Mon Feb 12 2007 Jindrich Novy <jnovy@redhat.com> - 2007-0.1
4931932
- update to TeXLive 2007 rc
4931932
4931932
* Wed May 31 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.9
4931932
- missing BuildRequires added (desktop-file-utils) - doh!
4931932
4931932
* Tue May 30 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.8
4931932
- fixed some directory ownership issues.
4931932
- added icon for xdvi so I can install the desktop file
4931932
4931932
* Mon May 29 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.7
4931932
- first attempt at mock build (in fc5)
4931932
4931932
* Sun May 28 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.6
4931932
- ghost the texmf-var/web2c/*.{log,fmt,mem} files and create them
4931932
- during post install
4931932
4931932
* Sun May 28 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.5
4931932
- The main package needs to require the fonts package
4931932
4931932
* Sat May 27 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.4
4931932
- Patch 8 and Patch 19
4931932
4931932
* Sat May 27 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.3
4931932
- renamed to texjive
4931932
4931932
* Wed May 24 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.2
4931932
- apply Fedora/Red Hat patches (except fot japanese)
4931932
- port patches as needed
4931932
-- Some of the scripts not patched have same tmpdir issue as the
4931932
-- badscript patch fixes - so a second badscript patch IS still needed
4931932
- build shared libkpathsea
4931932
4931932
* Wed May 24 2006 Michael A. Peters <mpeters@mac.com> - 2005-0.1
4931932
- Initial attempt at something that resembles packaging.
4931932
-- Red Hat / Fedora specific patches from tetex not carried over yet
4931932
-- probably some regression