Author: arekm                        Date: Sat Jun  7 18:27:35 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- raw from fc

---- Files affected:
SPECS:
   texlive.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/texlive.spec
diff -u /dev/null SPECS/texlive.spec:1.1
--- /dev/null   Sat Jun  7 20:27:35 2008
+++ SPECS/texlive.spec  Sat Jun  7 20:27:30 2008
@@ -0,0 +1,1221 @@
+# $Revision$, $Date$
+# This spec file is based on texjive project created by Michael A. Peters.
+# Adopted and modified for Fedora by Jindrich Novy.
+
+%define texlive_ver    2007
+%define ptex_src_ver   3.1.10
+%define pdvipsk_ver    p1.7a
+%define mendexk_ver    2.6e
+
+%define desktop_file_utils_version 0.9
+%define default_letter_paper 0
+# lcdf typetools can be easily built as a separate tool, so it should be
+%define disable_lcdf_typetools 1
+
+# These need to match what is in the texlive-texmf package.
+#  since texlive-texmf is a BuildRequires, it installs an rpm macro
+#  file that defines them. Change the definitions in the texlive-texmf.spec
+#  file and rebuild it if you do not like where things get put.
+%{!?_texmf_main:%define _texmf_main %{_datadir}/texmf}
+%{!?_texmf_conf:%define _texmf_conf %{_sysconfdir}/texmf}
+%{!?_texmf_var:%define _texmf_var %{_var}/lib/texmf}
+
+Summary:       Binaries for the TeX formatting system
+Name:          texlive
+Version:       %{texlive_ver}
+Release:       31%{?dist}
+
+License:       GPLv2 and BSD and Public Domain and LGPLv2+ and GPLv2+ and LPPL
+Group:         Applications/Publishing
+URL:           http://tug.org/texlive/
+
+#####
+# Source0-99: main sources
+#####
+#Source0:      
http://tug.org/svn/texlive/branches/branch2007/Master/source/source.tar.bz2
+# non free source files removed with texlive-generate-tarball.sh
+Source0:       source-free.tar.bz2
+
+Source10:      %{name}.cron
+# Filter out bad requirements (RH bug #59819).
+Source99:      %{name}-filter-requires.sh
+Source100:     %{name}-generate-tarball.sh
+%define __perl_requires %{SOURCE99}
+# 1000-: Japanese pTeX
+Source1000:    
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ptex-src-%{ptex_src_ver}.tar.gz
+Source1001:    
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/dvipsk-jpatch-%{pdvipsk_ver}.tar.bz2
+Source1002:    
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/mendexk%{mendexk_ver}.tar.gz
+
+# Don't run brp-python-bytecompile
+%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}
+
+######
+# Red Hat-specific TeX configuration patches
+######
+
+# and sane defaults to build against can be inserted via sed
+Patch5:                %{name}-2007-browser.patch
+Patch9:                %{name}-teckit.patch
+
+Patch21:       %{name}-more_paths.patch
+Patch22:       %{name}-fedora_paths.patch
+
+######
+# TeX patches
+######
+
+Patch11:       %{name}-2007-makej.patch
+Patch12:       %{name}-2007-badscript.patch
+Patch17:       %{name}-2007-tmpcleanup.patch
+Patch18:       %{name}-fmtutil-infloop.patch
+Patch19:       %{name}-2007-kpse-extensions.patch
+Patch20:       %{name}-CVE-2007-4033.patch
+Patch25:       %{name}-dvipsoverflow.patch
+Patch26:       %{name}-dviljktemp.patch
+Patch27:       %{name}-poppler.patch
+Patch28:       %{name}-man-notetex.patch
+Patch29:       %{name}-man-context.patch
+
+######
+# mpeters contributed patches
+######
+# fixes man pages to utf-8
+Patch42:       %{name}-2007-copyright-utf8-man.patch
+# use proper shellbang
+Patch43:       %{name}-2007-epstopdf-shellbang.patch
+
+######
+# Debian patches
+######
+Patch100:      %{name}-Build_script.patch
+Patch101:      %{name}-mktexlsr_fixes.patch
+Patch102:      %{name}-fix_pkfix_invocation.patch
+Patch104:      %{name}-12a_fix_thumbpdf_invocation.patch
+Patch105:      %{name}-12b_fix_a2ping_invocation.patch
+Patch106:      %{name}-12c_fix_pdfcrop_invocation.patch
+Patch107:      %{name}-12d_fix_ebong_invocation.patch
+Patch108:      %{name}-12e_fix_vpe_invocation.patch
+Patch109:      %{name}-texdoc.patch
+Patch114:      %{name}-dvips_fontbug_fix_upstream.patch
+Patch115:      %{name}-maketexmf.patch
+Patch117:      %{name}-fmtutil_keep_failedlog.patch
+Patch119:      %{name}-checklib_fixes.patch
+Patch123:      %{name}-fix_makempx_installation.patch
+
+######
+# Mandriva patches
+######
+Patch202:      %{name}-pdftex.patch
+
+######
+# Suse patches
+######
+Patch300:      %{name}-source-icu.patch
+Patch301:      %{name}-source-t1lib.patch
+Patch302:      %{name}-source-warns.patch
+Patch303:      %{name}-source-x11r7.patch
+Patch306:      %{name}-source-CVE-2007-0650.patch
+
+# 1000-: Japanese pTeX
+Patch1000:     dvipsk-jpatch-pdvips.patch
+Patch1004:     %{name}-2007-jp-platex209.patch
+Patch1005:     %{name}-2007-pdvips.patch
+Patch1006:     %{name}-2007-ptex-3.1.10.patch
+Patch1007:     %{name}-2007-fmtutil-ptex.patch
+
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
+BuildRequires: flex
+BuildRequires: bison
+BuildRequires: ed
+BuildRequires: xdg-utils
+BuildRequires: libSM-devel
+BuildRequires: libICE-devel
+BuildRequires: ncurses-devel
+BuildRequires: zlib-devel
+BuildRequires: libpng-devel
+BuildRequires: gd-devel
+BuildRequires: t1lib-devel
+# for non-modular xorg - use xorg-devel instead of above
+BuildRequires: Xaw3d-devel
+BuildRequires: poppler-devel >= 0.6.2-2
+BuildRequires: teckit-devel
+Requires:      texlive-texmf = %{version}
+Requires:      texlive-texmf-errata = %{version}
+Requires:      texlive-texmf-fonts = %{version}
+# make sure fonts package installed before running post - since
+# fmtutil-sys is symlink to fmtutil
+Requires(post):        %{_bindir}/fmtutil /sbin/restorecon
+Requires(preun,postun):        /sbin/restorecon
+Provides:      tetex = 3.0-99
+Provides:      tetex-fonts = 3.0-99
+Provides:      tex(tex)
+Provides:      texlive-fonts = %{version}-%{release}
+Obsoletes:     tetex < 3.0-99
+Obsoletes:     tetex-fonts < 3.0-99
+Obsoletes:     texlive-fonts < 2007-6
+
+%description
+TeXLive is an implementation of TeX for Linux or UNIX systems. TeX
+takes a text file and a set of formatting commands as input and
+creates a printable file as output. Usually, TeX is used in
+conjunction with a higher level formatting package like LaTeX or
+PlainTeX, since TeX by itself is not very user-friendly.
+
+Install texlive if you want to use the TeX text formatting system.
+Consider to install texlive-latex (a higher level formatting package
+which provides an easier-to-use interface for TeX).
+
+The TeX documentation is located in the texlive-doc package.
+
+%package afm
+Summary:       A converter for PostScript(TM) font metric files, for use with 
TeX
+Group:         Applications/Publishing
+Requires(post,postun): /sbin/restorecon
+Requires:      texlive-texmf-afm = %{version}
+Requires:      texlive-texmf-errata = %{version}
+Provides:      tetex-afm = 3.0-99
+Obsoletes:     tetex-afm < 3.0-99
+
+%description afm
+texlive-afm provides afm2tfm, a converter for PostScript(TM) font
+metric files. PostScript fonts are accompanied by .afm font metric
+files which describe the characteristics of each font. To use
+PostScript fonts with TeX, TeX needs .tfm files that contain similar
+information. Afm2tfm will convert .afm files to .tfm files.
+
+If you are installing texlive in order to use the TeX text formatting
+system and PostScript files, you will need to install texlive-afm. You
+will also need to install texlive-dvips (for converting .dvi files to
+PostScript format for printing on PostScript printers), texlive-latex
+(a higher level formatting package which provides an easier-to-use
+interface for TeX), and xdvi (for previewing .dvi files in X).
+
+The TeX documentation is located in the texlive-doc package.
+
+%package doc
+Summary:       Applications to browse documentation for TeXLive
+Group:         Applications/Publishing
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-texmf-doc = %{version}
+Requires:      texlive-texmf-errata-doc = %{version}
+Requires:      xdg-utils
+Provides:      tetex-doc = 3.0-99
+Provides:      texlive-doc = %{version}-%{release}
+Obsoletes:     tetex-doc < 3.0-99
+Obsoletes:     texlive-doc < 2007-7
+
+%description doc
+If you are installing texlive and need a documentation to describe
+styles or you are a TeX beginner and need tutorials, you may install
+this package to obtain applications allowing you to user-friendly
+browse documentation of the TeX formatting system.
+
+%package utils
+Summary:       TeXLive utilities using ghostscript and metafont with X support
+Group:         Applications/Publishing
+Requires:      ghostscript
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-dvips = %{version}-%{release}
+
+%description utils
+This package contains TeXLive utilities using ghostscript and metafont
+with X support.
+
+%package xetex
+Summary:       TeX typesetting engine using Unicode with OpenType or AAT 
support
+Group:         Applications/Publishing
+Requires(post,postun): /sbin/restorecon
+Requires:      dvipdfmx
+Requires:      xdvipdfmx
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-texmf-xetex = %{version}
+
+%description xetex
+XeTeX is a TeX typesetting engine using Unicode and supporting modern
+font technologies such as OpenType or AAT. Initially developed for Mac
+OS X only, it is now available for all major platforms. It natively
+supports Unicode and the input file is assumed to be in UTF-8 encoding
+by default.
+
+%package dvips
+Summary:       A DVI to PostScript converter for the TeX text formatting system
+Group:         Applications/Publishing
+Requires(post,postun): /sbin/restorecon
+Requires:      psutils
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-texmf-dvips = %{version}
+Requires:      texlive-texmf-errata = %{version}
+Provides:      tetex-dvips = 3.0-99
+Provides:      tex(dvips)
+Obsoletes:     tetex < 3.0-99
+Obsoletes:     tetex-dvips < 3.0-99
+
+%description dvips
+Dvips converts .dvi files, for example those produced by the TeX text
+formatting system, to PostScript(TM) format.
+
+If you are installing texlive, so that you can use the TeX text
+formatting system without direct PDF compilation, consider to install
+texlive-dvips. In addition, you will need to install texlive-latex (a
+higher level formatting package which provides an easier-to-use
+interface for TeX), and xdvi (for previewing .dvi files in X).
+
+%package dviutils
+Summary:       A collection of utilities for working with dvi files
+Group:         Applications/Publishing
+# not positive about this requires, pretty sure though
+Requires(post,postun): /sbin/restorecon
+Requires:      texlive = %{version}-%{release}
+# used to be in tetex, but has a separate upstream
+Requires:      dvipng
+Requires:      dvipdfm
+# some dvi utilities used to be in tetex
+Obsoletes:     tetex < 3.0-99
+
+%description dviutils
+The texlive-dviutils package includes a set of tools for working with
+dvi files. You only need this package if you plan to manipulate
+existing dvi files.
+
+%package latex
+Summary:       The LaTeX front end for the TeX text formatting system
+Group:         Applications/Publishing
+Requires:      netpbm-progs
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-dvips = %{version}-%{release}
+# make sure main and fonts package installed before running post
+BuildRequires: ghostscript
+BuildRequires: netpbm-progs
+Requires(post):        %{_bindir}/fmtutil %{_bindir}/fmtutil-sys
+Requires(post):        %{_bindir}/texconfig-sys /sbin/install-info
+Requires(post,preun,postun):   /sbin/restorecon
+Requires:      texlive-texmf-errata = %{version}
+Requires:      texlive-texmf-latex = %{version}
+Requires:      texlive-utils = %{version}-%{release}
+Provides:      tetex-latex = 3.0-99
+Provides:      tex(latex)
+Obsoletes:     tetex < 3.0-99
+Obsoletes:     tetex-latex < 3.0-99
+
+%description latex
+LaTeX is a front end for the TeX text formatting system. Easier to use
+than TeX. LaTeX is essentially a set of TeX macros which provide
+convenient, predefined document formats for users. It also allows to
+compile LaTeX files directly to PDF format.
+
+The TeX documentation is located in the texlive-doc package.
+
+%package east-asian
+Summary:       Support for East Asian languages in TeXLive
+Group:         Applications/Publishing
+Requires(post,postun): /sbin/restorecon
+Requires:      mendexk
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-latex = %{version}-%{release}
+Requires:      texlive-texmf-dvips = %{version}
+Requires:      texlive-texmf-errata-east-asian = %{version}
+Provides:      tex(east-asian)
+Provides:      tex(japanese)
+Provides:      texlive-japanese = %{version}-%{release}
+Obsoletes:     texlive-japanese < 2007-20
+
+%description east-asian
+East Asian support for TeXLive.
+
+%package context
+Summary:       ConTeXt is a document preparation system based on TeX
+Group:         Applications/Publishing
+Requires(post,postun): /sbin/restorecon
+Requires:      ruby
+Requires:      texlive = %{version}-%{release}
+Requires:      texlive-texmf-errata-context = %{version}
+Provides:      tex(context)
+
+%description context
+ConTeXt is a document preparation system based on TeX.
+
+%package -n kpathsea
+Summary:       Shared library needed by kpathsea and info files
+Group:         Development/Libraries
+Requires(post,preun,postun):   /sbin/restorecon
+Requires:      texlive = %{version}-%{release}
+Obsoletes:     tetex-fonts < 3.0-99
+
+%description -n kpathsea
+Shared library needed by kpathsea and info files.
+
+%package -n kpathsea-devel
+Summary:       Files needed to build software against kpathsea
+Group:         Development/Libraries
+Requires:      kpathsea = %{version}-%{release}
+
+%description -n kpathsea-devel
+This package includes the kpathsea header files and the libkpathsea.so
+symbolic link.
+
+You only need to install this package if you will be compiling
+software that wants to link against the kpathsea library.
+
+%package -n mendexk
+Summary:       Replacement for makeindex with many enhancements
+Version:       %{mendexk_ver}
+Group:         Applications/Publishing
+#Url: ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/
+#Source0: 
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/mendexk%{version}.tar.bz2
+
+%description -n mendexk
+Replacement for makeindex with many enhancements.
+
+%define version %{texlive_ver}
+# without this define, the version is overriden by separated
+subpackages # versions
+
+%prep
+%setup -q -T -c -a0
+
+# fix for debuginfo rpmlint happiness
+chmod -x texk/dvipdfm/macglyphs.h
+chmod -x texk/dvipdfm/ttf.c
+chmod -x texk/dvipdfm/encodings.c
+
+######
+# Red Hat-specific TeX configuration patches
+######
+# Use htmlview first
+%patch5 -p1 -b .browser
+%patch9 -p1 -b .teckit
+%patch22 -p1 -b .fedora_paths
+
+######
+# TeX patches
+######
+
+# Fix parallel builds.
+%patch11 -p1 -b .makej
+# Don't use PID for temporary file names in scripts (RH bug #41269)
+%patch12 -p1 -b .badscript
+# Always cleanup temporary directories for texconfig, updmap, fmtutil
+#  (RH #172534)
+%patch17 -p1 -b .tmpcleanup
+# fmtutil won't hang in infinite loop (#437008)
+%patch18 -p1 -b .infloop
+%patch19 -p0 -b .kpse-extensions
+%patch20 -p1 -b .CVE-2007-4033
+%patch21 -p1 -b .more_paths
+%patch25 -p1 -b .dvipsoverflow
+%patch26 -p1 -b .dviljktemp
+%patch27 -p1 -b .poppler
+%patch28 -p1 -b .notetex
+%patch29 -p1 -b .man-context
+
+# fix non utf man pages
+%patch42 -p1 -b .notutf8-2
+# user a proper shellbang
+%patch43 -p1 -b .perl
+
+%patch100 -p3
+%patch101 -p1 -b .mktexlsr_fixes
+%patch102 -p3
+%patch104 -p3
+%patch105 -p3
+%patch106 -p3
+%patch107 -p3
+%patch108 -p3
+%patch109 -p1
+%patch114 -p3
+%patch115 -p3
+%patch117 -p3
+%patch119 -p3
+%patch123 -p3
+
+%patch202 -p1 -b .pdftex
+
+%patch300 -p0
+%patch301 -p0
+%patch302 -p0
+%patch303 -p0
+%patch306 -p0
+
+%patch1007 -p1 -b .ptex
+
+%if %{disable_lcdf_typetools}
+pushd utils
+rm -rf lcdf-typetools
+popd
+%endif
+
+## Japanese pTeX
+# set platex to Japanese pLaTeX. original one is moved to platex-pl
+sed -e s/^platex/platex-pl/g \
+    -e s/^pdfplatex/pdfplatex-pl/g \
+    -e s/platex\.ini/platex\-pl\.ini/g \
+     -i texk/web2c/fmtutil.in
+
+# Prepare pTeX
+tar xfz %{SOURCE1000} -C texk/web2c/
+cd texk/web2c/ptex-src-%{ptex_src_ver}
+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
+%patch1004 -p1 -b .fmts
+%patch1006 -p1
+cd -
+
+# Prepare Japanese dvips
+mkdir pdvipsk
+tar xfj %{SOURCE1001} -C pdvipsk
+cp -lR texk/dvipsk texk/pdvipsk
+cd pdvipsk
+%patch1005 -p0
+cd -
+patch -d texk/pdvipsk -p1 < pdvipsk/dvipsk-%{pdvipsk_ver}.patch
+%patch1000 -p1 -b .pdvips
+ln -s dvips.1 texk/pdvipsk/pdvips.1
+
+# set up mendexk
+tar xfz %{SOURCE1002} -C texk
+
+
+%build
+set -x
+# define CCACHE_DIR to let the build pass with ccache enabled.
+export CCACHE_DIR=$HOME/.ccache
+unset TEXINPUTS ||:
+unset HOME ||:
+
+%{__rm} -r libs/{teckit,obsdcompat}
+
+# Japanese pTeX
+pushd texk
+$RPM_BUILD_DIR/%{name}-%{version}/texk/autoconf2.13 -m 
$RPM_BUILD_DIR/%{name}-%{version}/texk%{_sysconfdir}/autoconf
+popd
+
+%configure \
+%if %{default_letter_paper}
+               --disable-a4 \
+%endif
+       --enable-shared=yes \
+       --with-system-ncurses \
+       --with-system-zlib \
+       --with-system-pnglib \
+       --with-system-gd \
+       --without-system-icu \
+       --with-icu-include=%{_includedir}/unicode \
+       --with-system-freetype \
+       --with-freetype-include=/usr/include/freetype \
+       --with-system-freetype2 \
+       --with-freetype2-include=/usr/include/freetype2 \
+       --with-system-t1lib \
+       --without-texlive \
+       --without-t1utils \
+       --without-psutils \
+       --without-ps2eps \
+       --without-pdfopen \
+       --without-ttf2pk \
+       --disable-multiplatform \
+       --without-dialog --without-texinfo --without-texi2html \
+       --without-tex4htk \
+       --without-detex --without-dvi2tty \
+%if %{disable_lcdf_typetools}
+       --with-lcdf-typetools=no \
+%endif
+       --without-xdvik \
+       --with-mf-x-toolkit=yes \
+       --without-cxx-runtime-hack \
+       --without-dvipng \
+       --without-dvipdfm \
+       --without-dvipdfmx \
+       --without-xdvipdfmx
+
+# Remove everything except:
+# icu: includes some changes
+# md5: the aladdin md5 code (not a library)
+%{__rm} -r 
libs/{curl,expat,freetype,freetype2,gd,howto,jpeg,libgnuw32,libgsw32,libpng,libttf,ncurses,regex,unzip,zlib,type1,t1lib,xpdf}/
+
+# parallel build fails in libs/icu-xetex/common, build this one sequentially
+cd libs/icu-xetex
+%{__make}
+cd -
+
+# compile the rest parallelly
+%{__make} %{?_smp_mflags}
+
+cd texk/web2c/ptex-src-%{ptex_src_ver}
+./configure EUC
+%{__make}
+cd -
+
+# mendexk build
+cd texk/mendexk%{mendexk_ver}
+./configure EUC
+%{__make}
+cd -
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+export CCACHE_DIR=$HOME/.ccache
+unset TEXINPUTS || :
+unset HOME || :
+
+install -d $RPM_BUILD_ROOT%{_texmf_main}
+install -d $RPM_BUILD_ROOT%{_texmf_var}/web2c
+install -d $RPM_BUILD_ROOT%{_texmf_conf}
+
+export LD_LIBRARY_PATH=`pwd`/texk/kpathsea/.libs
+
+# a temporary placeholder for texmf.cnf
+install -d $RPM_BUILD_ROOT%{_datadir}/texmf-local/web2c
+cp -a texk/kpathsea/texmf.cnf $RPM_BUILD_ROOT%{_datadir}/texmf-local/web2c
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+        texmf=$RPM_BUILD_ROOT%{_texmf_main} \
+        texmfmain=$RPM_BUILD_ROOT%{_texmf_main}
+
+rm -rf $RPM_BUILD_ROOT%{_datadir}/texmf-local/
+
+# remove all .la files
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+find $RPM_BUILD_ROOT | grep -e "\\.la$" | xargs rm -f
+
+# set executable bit for the library for debuginfo creation
+chmod a+x $RPM_BUILD_ROOT%{_libdir}/libkpathsea.so.*.*
+
+## remove what is packages in other Fedora packages
+# jadetex
+rm -f $RPM_BUILD_ROOT%{_bindir}/jadetex
+rm -f $RPM_BUILD_ROOT%{_bindir}/pdfjadetex
+# xmltex
+rm -f $RPM_BUILD_ROOT%{_bindir}/xmltex
+rm -f $RPM_BUILD_ROOT%{_bindir}/pdfxmltex
<<Diff was trimmed, longer than 597 lines>>
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to