Browse Source

texlive update to 2017 edition

Signed-off-by: tuibuilder_pel7x64builder0 <tuibuilder@powerel.org>
master
tuibuilder_pel7x64builder0 4 years ago
parent
commit
cb35ae1510
  1. 1093
      SOURCES/0001-try-to-adapt-to-poppler-0.58.patch
  2. 46
      SOURCES/b_one_srpm
  3. 123
      SOURCES/co_archive
  4. 63
      SOURCES/co_source
  5. 26
      SOURCES/macros.texlive
  6. 134
      SOURCES/texlive-2016-latexdiff-perl518.patch
  7. 6
      SOURCES/texlive-2017-xepersian-python.patch
  8. 40
      SOURCES/texlive-20180211-disable-failing-tests.patch
  9. 189
      SOURCES/texlive-fedora-licenses.h
  10. 48
      SOURCES/texlive-latexpand-perl518.patch
  11. 919
      SOURCES/texlive.spec.template
  12. 186556
      SOURCES/texlive.tlpdb
  13. 2405
      SOURCES/tl2rpm.c
  14. 305
      SOURCES/tlpdb.patch
  15. 53547
      SPECS/texlive.spec

1093
SOURCES/0001-try-to-adapt-to-poppler-0.58.patch

File diff suppressed because it is too large Load Diff

46
SOURCES/b_one_srpm

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
#!/bin/sh
#
# This script creates texlive.spec from generated specs by tl2rpm
# and generates local testing repository from built packages.
# Written by Jindrich Novy (novyjindrich@gmail.com).
#
gcc tl2rpm.c -o tl2rpm -O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=native -march=native
[ "$?" != "0" ] && exit 1
rm -f _mkdirs.spec _unpack.spec _sources.spec _remove.spec _packages.spec _font.spec _files.spec _dirs.spec
touch _mkdirs.spec
./tl2rpm
mv _mkdirs.spec _mkdirs.spec.tmp
sort _mkdirs.spec.tmp > _mkdirs.spec
rm -f _mkdirs.spec.tmp
mv _dirs.spec _dirs.spec.tmp
sort _dirs.spec.tmp > _dirs.spec
rm -f _dirs.spec.tmp
mv _sources.spec _sources.spec.tmp
sort _sources.spec.tmp > _sources.spec
rm -f _sources.spec.tmp
while read LINE; do
if [ "${LINE%% *}" = "%include" ]; then
cat ${LINE:9}
else
echo "$LINE"
fi
done < texlive.spec.template > texlive.spec
#exit 0
RPMBUILDDIR=`rpm --eval "%_topdir"`
rm -f $RPMBUILDDIR/RPMS/noarch/texlive*
rm -f $RPMBUILDDIR/RPMS/x86_64/texlive*
for i in `ls texlive/archive`; do
rm -f $RPMBUILDDIR/SOURCES/$i
done
ACTDIR=`pwd`
for i in `ls texlive/archive`; do
ln -s $ACTDIR/texlive/archive/$i $RPMBUILDDIR/SOURCES/$i
done
LANG=C time rpmbuild -bb texlive.spec > buildlog-srpm 2>&1
[ "$?" != "0" ] && exit 1
mv buildlog-srpm buildlog-srpm.full
rm -rf packages
mkdir packages
mv RPMS/noarch/texlive* packages
mv RPMS/x86_64/texlive* packages
createrepo packages

123
SOURCES/co_archive

@ -0,0 +1,123 @@ @@ -0,0 +1,123 @@
#!/bin/sh
#
# This script checks out upstream archives from CTAN, removes unneeded files,
# expands files required for dependency resolution by tl2rpm.
# Written by Jindrich Novy (novyjindrich@gmail.com).
#
echo "Syncing with remote server..."
[ -e texlive/archive/asana-math.tar.xz ] && mv texlive/archive/asana-math.tar.xz texlive/archive/Asana-Math.tar.xz
[ -e texlive/archive/asana-math.doc.tar.xz ] && mv texlive/archive/asana-math.doc.tar.xz texlive/archive/Asana-Math.doc.tar.xz
[ -e texlive/archive/lineara.tar.xz ] && mv texlive/archive/lineara.tar.xz texlive/archive/linearA.tar.xz
[ -e texlive/archive/lineara.doc.tar.xz ] && mv texlive/archive/lineara.doc.tar.xz texlive/archive/linearA.doc.tar.xz
[ -e texlive/archive/lineara.source.tar.xz ] && mv texlive/archive/lineara.source.tar.xz texlive/archive/linearA.source.tar.xz
[ -e texlive/archive/musixtex-fnts.tar.xz ] && mv texlive/archive/musixtex-fnts.tar.xz texlive/archive/musixtex-fonts.tar.xz
[ -e texlive/archive/musixtex-fnts.doc.tar.xz ] && mv texlive/archive/musixtex-fnts.doc.tar.xz texlive/archive/musixtex-fonts.doc.tar.xz
#rsync -av --delete ftp.cstug.cz::pub/tex/local/tlpretest/archive texlive --delete-excluded \
#rsync -av --delete rsync://ftp.ctex.org/mirrors/texlive/tlpretest/ texlive --delete-excluded \
#rsync -av --delete ftp.cstug.cz::pub/tex/local/tlpretest/archive texlive --delete-excluded \
#rsync -av --delete rsync://ftp.fernuni-hagen.de/ctan/systems/texlive/tlnet/archive texlive --delete-excluded \
rsync -av --delete rsync://rsync.dante.ctan.org/CTAN/systems/texlive/tlnet/archive texlive --delete-excluded \
--exclude '*mactex*' \
--exclude '*.win32*' \
--exclude '*.i386-freebsd*' \
--exclude '*.i386-cygwin*' \
--exclude '*.i386-solaris*' \
--exclude '*.i386-netbsd*' \
--exclude '*.i386-kfreebsd*' \
--exclude '*.armel-linux*' \
--exclude '*.mipsel-linux*' \
--exclude '*.mips-irix*' \
--exclude '*.powerpc-*' \
--exclude '*.sparc-*' \
--exclude '*.amd64-*' \
--exclude '*.alpha-*' \
--exclude '*.x86_64-*' \
--exclude '*.universal-darwin*' \
--exclude '*.armhf-linux*' \
--exclude '*.exe.*' \
--exclude '*.exe' \
--exclude 'install-tl*' \
--exclude 'breakcites*' \
--exclude 'psutils*' \
--exclude 'rst.*' \
--exclude 't1utils*' \
--exclude 'xindy*' \
--exclude 'asymptote*' \
--exclude 'tlpkg/*' \
--exclude 'update-tlmgr*' | tee /tmp/rsynclogCTAN
EXIT=$?
[ -e texlive/archive/Asana-Math.tar.xz ] && mv texlive/archive/Asana-Math.tar.xz texlive/archive/asana-math.tar.xz
[ -e texlive/archive/Asana-Math.doc.tar.xz ] && mv texlive/archive/Asana-Math.doc.tar.xz texlive/archive/asana-math.doc.tar.xz
[ -e texlive/archive/linearA.tar.xz ] && mv texlive/archive/linearA.tar.xz texlive/archive/lineara.tar.xz
[ -e texlive/archive/linearA.doc.tar.xz ] && mv texlive/archive/linearA.doc.tar.xz texlive/archive/lineara.doc.tar.xz
[ -e texlive/archive/linearA.source.tar.xz ] && mv texlive/archive/linearA.source.tar.xz texlive/archive/lineara.source.tar.xz
[ -e texlive/archive/musixtex-fonts.tar.xz ] && mv texlive/archive/musixtex-fonts.tar.xz texlive/archive/musixtex-fnts.tar.xz
[ -e texlive/archive/musixtex-fonts.doc.tar.xz ] && mv texlive/archive/musixtex-fonts.doc.tar.xz texlive/archive/musixtex-fnts.doc.tar.xz
UPDATES=`grep 'tar.xz$' /tmp/rsynclogCTAN`
if [ "$UPDATES" == "" ]; then
rm -f /tmp/rsynclogCTAN
exit 0
else
UPDATES=`grep 'tar.xz$' /tmp/rsynclogCTAN | grep -v 'deleting'`
for i in $UPDATES; do
echo "+ $i"
done
fi
rm -f /tmp/rsynclogCTAN
[ $EXIT != 0 ] && exit 1

echo "Creating symlinks..."
for i in `ls texlive/archive`; do
rm -f ~/rpmbuild/SOURCES/$i
done
RPMBUILDDIR=`rpm --eval "%_topdir"`
ACTDIR=`pwd`
for i in `ls texlive/archive`; do
ln -s $ACTDIR/texlive/archive/$i $RPMBUILDDIR/SOURCES/$i
done

echo "Expanding..."
rm -rf texlive.expanded.old
if [ -d texlive.expanded ]; then
mv texlive.expanded texlive.expanded.old
else
mkdir -p texlive.expanded.old
fi
mkdir texlive.expanded
for i in texlive/archive/*.tar.xz; do
tar xf $i -C texlive.expanded '*.sty' '*.tex' '*.cls' '*.ldf' '*.bbx' '*.cbx' '*.def' '*.tlpobj' '*.clo' '*.bug' '*.bg2' '*i386-linux*' '*texmf/scripts*' '*texmf-dist/scripts*' > /dev/null 2>&1
done
diff -ru texlive.expanded.old texlive.expanded > archive.diff

echo "Moving..."
pushd texlive.expanded
cp -pr doc source tex texmf-dist
rm -rf doc source tex
popd

echo "Generating tlpdb..."
pushd ./texlive.expanded/tlpkg/tlpobj
OUT=../../../texlive.tlpdb
mv $OUT $OUT.bck
for i in `ls *.tlpobj | grep -v '\.i386-linux.tlpobj$' | grep -v '\.doc.tlpobj$' | grep -v '\.source.tlpobj$'`; do
NAME=`echo $i | sed 's/.tlpobj$//g'`
grep -v '^catalogue-' $i >> $OUT
if [ -e $NAME.doc.tlpobj ]; then
grep '^docfiles' $NAME.doc.tlpobj >> $OUT
grep '^ ' $NAME.doc.tlpobj >> $OUT
fi
if [ -e $NAME.source.tlpobj ]; then
grep '^srcfiles' $NAME.source.tlpobj >> $OUT
grep '^ ' $NAME.source.tlpobj >> $OUT
fi
grep '^catalogue-' $i >> $OUT
echo >> $OUT
if [ -e $NAME.i386-linux.tlpobj ]; then
cat $NAME.i386-linux.tlpobj >> $OUT
echo >> $OUT
fi
done
popd
patch texlive.tlpdb < tlpdb.patch
[ "$?" = "1" ] && exit 1
diff -u texlive.tlpdb.orig texlive.tlpdb > tlpdb.patch

63
SOURCES/co_source

@ -0,0 +1,63 @@ @@ -0,0 +1,63 @@
#!/bin/sh
#
# This script checks out TeX Live upstream sources to build binaries,
# removes unneeded files and generates a tarball used to build RPMs.
# Written by Jindrich Novy (novyjindrich@gmail.com)
#
svn co svn://tug.org/texlive/trunk/Build/source | tee /tmp/rsynclog
[ "$?" != "0" ] && exit 1
UPDATES=`grep -v '^Checked out revision' /tmp/rsynclog`
[ "$UPDATES" == "" ] && exit 0
cp -R source source.svn
for i in \
'.svn' \
'*.exe' \
'*.dsp' \
'*.dsw' \
'*.orig' \
'*vcproj*' \
'*vcxproj*' \
'*.vc' \
'*vc[678]*' \
; do
find source -name $i | tee | xargs rm -rf
done
#rm -rf source/utils/biber*
rm -rf \
source/libs/zlib* \
source/libs/libpng* \
source/libs/expat* \
source/libs/jpeg* \
source/libs/t1lib* \
source/libs/teckit* \
source/libs/gd* \
source/libs/freetype2* \
source/libs/zziplib* \
source/libs/poppler* \
source/libs/unzip* \
source/libs/xpdf* \
source/libs/cairo* \
source/libs/harfbuzz* \
source/libs/pixman* \
source/libs/libpaper* \
source/libs/icu* \
source/libs/graphite2* \
source/libs/potrace* \
source/libs/freetype/* \
source/texk/texlive/w32_wrapper \
source/utils/t1utils* \
source/utils/xindy* \
source/utils/asymptote* \
source/utils/psutils* \
source/utils/biber* \
source/utils/xz* \
source/extra*
#source/utils/asymptote*
DATE=`date +%Y%m%d`_r`grep Checked /tmp/rsynclog | cut -d" " -f4 | sed s/.$//`
sed -i s/global\ source_date.*$/global\ source_date\ $DATE/g texlive.spec.template
rm -f texlive-*-source.tar.xz
echo "Packing..."
time tar Oc source | xz -cv -T0 - > texlive-$DATE-source.tar.xz
rm -rf source
mv source.svn source
mv texlive*-source.tar.xz `rpm --eval "%_topdir"`/SOURCES

26
SOURCES/macros.texlive

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
# macros to keep trees in texlive consistent
%_texmf /usr/share/texlive/texmf-local
%_texmf_main /usr/share/texlive/texmf-dist
%_texmf_vendor /usr/share/texlive/texmf-dist
%_texmf_var /var/lib/texmf
%_texmf_conf /usr/share/texlive/texmf-config

%texlive_post \
mkdir -p /var/run/texlive \
touch /var/run/texlive/run-texhash \
touch /var/run/texlive/run-mtxrun \
:

%texlive_postun \
if [ $1 == 1 ]; then \
mkdir -p /var/run/texlive \
touch /var/run/run-texhash \
else \
%{_bindir}/texhash 2> /dev/null \
fi \
:

%texlive_posttrans \
if [ -e /var/run/texlive/run-texhash ] && [ -e %{_bindir}/texhash ]; then %{_bindir}/texhash 2> /dev/null; rm -f /var/run/texlive/run-texhash; fi \
if [ -e /var/run/texlive/run-mtxrun ]; then export TEXMF=/usr/share/texlive/texmf-dist; export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c; export TEXMFCACHE=/var/lib/texmf; %{_bindir}/mtxrun --generate &> /dev/null; rm -f /var/run/texlive/run-mtxrun; fi \
:

134
SOURCES/texlive-2016-latexdiff-perl518.patch

@ -0,0 +1,134 @@ @@ -0,0 +1,134 @@
diff -up ./latexdiff.pl.orig ./latexdiff.pl
--- ./latexdiff.pl.orig 2015-12-28 19:15:33.000000000 -0500
+++ ./latexdiff.pl 2016-06-22 15:46:24.444571914 -0400
@@ -1465,7 +1465,7 @@ sub flatten {
$bblfile=~s/\.tex$//;
$bblfile.=".bbl";
- if ( ($includeonly) = ($preamble =~ m/\\includeonly{(.*?)}/ ) ) {
+ if ( ($includeonly) = ($preamble =~ m/\\includeonly\{(.*?)}/ ) ) {
$includeonly =~ s/,/|/g;
} else {
$includeonly = '.*?';
@@ -1474,7 +1474,7 @@ sub flatten {
print STDERR "DEBUG: includeonly $includeonly\n" if $debug;
# recursively replace \\input and \\include files
- 1 while $text=~s/(^(?:[^%\n]|\\%)*)\\input{(.*?)}|\\include{(${includeonly}(?:\.tex)?)}/{
+ 1 while $text=~s/(^(?:[^%\n]|\\%)*)\\input\{(.*?)}|\\include\{(${includeonly}(?:\.tex)?)}/{
$begline=(defined($1)? $1 : "") ;
$fname = $2 if defined($2) ;
$fname = $3 if defined($3) ;
@@ -1491,7 +1491,7 @@ sub flatten {
"$begline$newpage$replacement$newpage";
}/exgm;
# replace bibliography with bbl file if it exists
- $text=~s/(^(?:[^%\n]|\\%)*)\\bibliography{(.*?)}/{
+ $text=~s/(^(?:[^%\n]|\\%)*)\\bibliography\{(.*?)}/{
if ( -f $bblfile ){
$replacement=read_file_with_encoding(File::Spec->catfile($bblfile), $encoding);
} else {
@@ -1502,7 +1502,7 @@ sub flatten {
"$begline$replacement";
}/exgm;
# replace subfile with contents (subfile package)
- $text=~s/(^(?:[^%\n]|\\%)*)\\subfile{(.*?)}/{
+ $text=~s/(^(?:[^%\n]|\\%)*)\\subfile\{(.*?)}/{
$begline=(defined($1)? $1 : "") ;
$fname = $2;
# # add tex extension unless there is a three letter extension already
@@ -2244,7 +2244,7 @@ sub take_comments_and_enter_from_frac()
sub preprocess {
for (@_) {
# Change \{ to \QLEFTBRACE, \} to \QRIGHTBRACE, and \& to \AMPERSAND
- s/(?<!\\)\\{/\\QLEFTBRACE /sg;
+ s/(?<!\\)\\\{/\\QLEFTBRACE /sg;
s/(?<!\\)\\}/\\QRIGHTBRACE /sg;
s/(?<!\\)\\&/\\AMPERSAND /sg;
# replace {,} in comments with \\CLEFTBRACE,\\CRIGHTBRACE
@@ -2258,29 +2258,29 @@ sub preprocess {
s/\\begin\{(verbatim\*?)\}(.*?)\\end\{\1\}/"\\${1}{". tohash(\%verbhash,"${2}") . "}"/esg;
# Convert _n or _\cmd into \SUBSCRIPTNB{n} or \SUBSCRIPTNB{\cmd} and _{nnn} into \SUBSCRIPT{nn}
1 while s/(?<!\\)_(\s*([^{\\\s]|\\\w+))/\\SUBSCRIPTNB{$1}/g ;
- 1 while s/(?<!\\)_(\s*{($pat_n)})/\\SUBSCRIPT$1/g ;
+ 1 while s/(?<!\\)_(\s*\{($pat_n)})/\\SUBSCRIPT$1/g ;
# Convert ^n into \SUPERSCRIPTNB{n} and ^{nnn} into \SUPERSCRIPT{nn}
1 while s/(?<!\\)\^(\s*([^{\\\s]|\\\w+))/\\SUPERSCRIPTNB{$1}/g ;
- 1 while s/(?<!\\)\^(\s*{($pat_n)})/\\SUPERSCRIPT$1/g ;
+ 1 while s/(?<!\\)\^(\s*\{($pat_n)})/\\SUPERSCRIPT$1/g ;
# Convert \sqrt{n} into \SQRT{n} and \sqrt nn into SQRTNB{nn}
1 while s/(?<!\\)\\sqrt(\s*([^{\\\s]|\\\w+))/\\SQRTNB{$1}/g ;
- 1 while s/(?<!\\)\\sqrt(\s*{($pat_n)})/\\SQRT$1/g ;
+ 1 while s/(?<!\\)\\sqrt(\s*\{($pat_n)})/\\SQRT$1/g ;
# Convert $$ $$ into \begin{DOLLARDOLLAR} \end{DOLLARDOLLAR}
s/\$\$(.*?)\$\$/\\begin{DOLLARDOLLAR}$1\\end{DOLLARDOLLAR}/sg;
# Convert \[ \] into \begin{SQUAREBRACKET} \end{SQUAREBRACKET}
s/(?<!\\)\\\[/\\begin{SQUAREBRACKET}/sg;
s/\\\]/\\end{SQUAREBRACKET}/sg;
# Convert all picture environmentent (\begin{PICTUREENV} .. \end{PICTUREENV} \PICTUREBLOCKenv
- s/\\begin{($PICTUREENV)}(.*?)\\end{\1}/\\PICTUREBLOCK$1\{$2\}/sg;
+ s/\\begin\{($PICTUREENV)}(.*?)\\end\{\1}/\\PICTUREBLOCK$1\{$2\}/sg;
# For --block-math-markup option -convert all \begin{MATH} .. \end{MATH}
# into \MATHBLOCKMATH{...} commands, where MATH is any valid math environment
# Also convert all array environments into ARRAYBLOCK environments
if ( $mathmarkup != FINE ) {
- s/\\begin{($ARRENV)}(.*?)\\end{\1}/\\ARRAYBLOCK$1\{$2\}/sg;
+ s/\\begin\{($ARRENV)}(.*?)\\end\{\1}/\\ARRAYBLOCK$1\{$2\}/sg;
take_comments_and_enter_from_frac();
- s/\\begin{($MATHENV|$MATHARRENV|SQUAREBRACKET)}(.*?)\\end{\1}/\\MATHBLOCK$1\{$2\}/sg;
+ s/\\begin\{($MATHENV|$MATHARRENV|SQUAREBRACKET)}(.*?)\\end\{\1}/\\MATHBLOCK$1\{$2\}/sg;
}
# add final token " STOP"
$_ .= " STOP"
@@ -2566,15 +2566,15 @@ sub postprocess {
# environments) are between the \begin{$MATHENV} and \end{MATHMODE} commands. This is necessary as the minimal matching
# is not globally minimal but only 'locally' (matching is beginning from the left side of the string)
if ( $mathmarkup == FINE ) {
- 1 while s/\\begin{((?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}((?:.(?!(?:\\end{(?:(?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}|\\begin{MATHMODE})))*?)\\end{MATHMODE}/\\begin{$1}$2\\end{$1}/s;
- 1 while s/\\begin{MATHMODE}((?:.(?!\\end{MATHMODE}))*?)\\end{((?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}/\\begin{$2}$1\\end{$2}/s;
- # convert remaining \begin{MATHMODE} \end{MATHMODE} (and not containing & or \\ )into MATHREPL environments
- s/\\begin{MATHMODE}((?:(.(?!(?<!\\)\&|\\\\))*)?)\\end{MATHMODE}/\\begin{$MATHREPL}$1\\end{$MATHREPL}/sg;
+ 1 while s/\\begin\{((?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}((?:.(?!(?:\\end\{(?:(?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}|\\begin\{MATHMODE})))*?)\\end\{MATHMODE}/\\begin{$1}$2\\end{$1}/s;
+ 1 while s/\\begin\{MATHMODE}((?:.(?!\\end\{MATHMODE}))*?)\\end\{((?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}/\\begin{$2}$1\\end{$2}/s;
+ # convert remaining \begin\{MATHMODE} \end{MATHMODE} (and not containing & or \\ )into MATHREPL environments
+ s/\\begin\{MATHMODE}((?:(.(?!(?<!\\)\&|\\\\))*)?)\\end\{MATHMODE}/\\begin{$MATHREPL}$1\\end{$MATHREPL}/sg;
# others into MATHARRREPL
- s/\\begin{MATHMODE}(.*?)\\end{MATHMODE}/\\begin{$MATHARRREPL}$1\\end{$MATHARRREPL}/sg;
+ s/\\begin\{MATHMODE}(.*?)\\end\{MATHMODE}/\\begin{$MATHARRREPL}$1\\end{$MATHARRREPL}/sg;
# now look for AUXCMD math-mode pairs which have only comments (or empty lines between them), and remove the added commands
- s/\\begin{((?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}$AUXCMD\n((?:\s*%.[^\n]*\n)*)\\end{\1}$AUXCMD\n/$2/sg;
+ s/\\begin\{((?:$MATHENV)|(?:$MATHARRENV)|SQUAREBRACKET)}$AUXCMD\n((?:\s*%.[^\n]*\n)*)\\end{\1}$AUXCMD\n/$2/sg;
} else {
# math modes OFF,WHOLE,COARSE: Convert \MATHBLOCKmath{..} commands back to environments
s/\\MATHBLOCK($MATHENV|$MATHARRENV|SQUAREBRACKET)\{($pat_n)\}/\\begin{$1}$2\\end{$1}/sg;
@@ -2652,19 +2652,19 @@ sub postprocess {
# undo renaming of the \begin and \end,{,} and dollars in comments
1 while s/(%.*)DOLLARDIF/$1\$/mg ;
# Convert \begin{SQUAREBRACKET} \end{SQUAREBRACKET} into \[ \]
- s/\\end{SQUAREBRACKET}/\\\]/sg;
- s/\\begin{SQUAREBRACKET}/\\\[/sg;
+ s/\\end\{SQUAREBRACKET}/\\\]/sg;
+ s/\\begin\{SQUAREBRACKET}/\\\[/sg;
# 4. Convert \begin{DOLLARDOLLAR} \end{DOLLARDOLLAR} into $$ $$
s/\\begin\{DOLLARDOLLAR\}(.*?)\\end\{DOLLARDOLLAR\}/\$\$$1\$\$/sg;
# 5. Convert \SUPERSCRIPTNB{n} into ^n and \SUPERSCRIPT{nn} into ^{nnn}
- 1 while s/\\SUPERSCRIPT(\s*{($pat_n)})/^$1/g ;
- 1 while s/\\SUPERSCRIPTNB{(\s*$pat0)}/^$1/g ;
+ 1 while s/\\SUPERSCRIPT(\s*\{($pat_n)})/^$1/g ;
+ 1 while s/\\SUPERSCRIPTNB\{(\s*$pat0)}/^$1/g ;
# Convert \SUBSCRIPNB{n} into _n and \SUBCRIPT{nn} into _{nnn}
- 1 while s/\\SUBSCRIPT(\s*{($pat_n)})/_$1/g ;
- 1 while s/\\SUBSCRIPTNB{(\s*$pat0)}/_$1/g ;
+ 1 while s/\\SUBSCRIPT(\s*\{($pat_n)})/_$1/g ;
+ 1 while s/\\SUBSCRIPTNB\{(\s*$pat0)}/_$1/g ;
# Convert \SQRT{n} into \sqrt{n} and \SQRTNB{nn} into \sqrt nn
- 1 while s/\\SQRT(\s*{($pat_n)})/\\sqrt$1/g ;
- 1 while s/\\SQRTNB{(\s*$pat0)}/\\sqrt$1/g ;
+ 1 while s/\\SQRT(\s*\{($pat_n)})/\\sqrt$1/g ;
+ 1 while s/\\SQRTNB\{(\s*$pat0)}/\\sqrt$1/g ;
1 while s/(%.*)\\CRIGHTBRACE (.*)$/$1\}$2/mg ;
1 while s/(%.*)\\CLEFTBRACE (.*)$/$1\{$2/mg ;

6
SOURCES/texlive-2017-xepersian-python.patch

@ -87,12 +87,14 @@ diff -up doc/xelatex/xepersian/dkun-0.4.py.than doc/xelatex/xepersian/dkun-0.4.p @@ -87,12 +87,14 @@ diff -up doc/xelatex/xepersian/dkun-0.4.py.than doc/xelatex/xepersian/dkun-0.4.p
diff -up doc/xelatex/xepersian/ftxe-0.12.py.than doc/xelatex/xepersian/ftxe-0.12.py
--- doc/xelatex/xepersian/ftxe-0.12.py.than 2018-05-07 11:54:55.163901164 +0200
+++ doc/xelatex/xepersian/ftxe-0.12.py 2018-05-07 11:57:58.063526433 +0200
@@ -1,3 +1,5 @@
@@ -1,4 +1,6 @@
-# This program is free software: you can redistribute it and/or modify
+#! /usr/bin/python
+
# This program is free software: you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@@ -488,7 +490,7 @@ def read_size(input,index,last_index):
dim_index = pt_index
next_cmd = input.find(u'\\', index)

40
SOURCES/texlive-20180211-disable-failing-tests.patch

@ -0,0 +1,40 @@ @@ -0,0 +1,40 @@
diff -up ./source/libs/xpdf/xpdf-src/misc/xpdf.dt ./source/libs/xpdf/xpdf-src/misc/xpdf
diff -up ./source/texk/lcdf-typetools/tests/t1.test.dt ./source/texk/lcdf-typetools/tests/t1.test
--- ./source/texk/lcdf-typetools/tests/t1.test.dt 2018-02-11 10:47:00.407885931 +0100
+++ ./source/texk/lcdf-typetools/tests/t1.test 2018-02-11 10:47:47.274470298 +0100
@@ -17,10 +17,6 @@ cat $srcdir/tests/uhvrrc8a.pfb | $LCDF_T
&& echo "t1dotlessj/bin tests OK" \
|| failed="$failed t1dotlessj/bin"
-$LCDF_TYPETOOLS_TREE/t1lint/t1lint uhv_dl.pfa \
- && echo "t1lint/asc tests OK" \
- || failed="$failed t1lint/asc"
-
cat uhv_dl.pfb | $LCDF_TYPETOOLS_TREE/t1lint/t1lint \
&& echo "t1lint/bin tests OK" \
|| failed="$failed t1lint/bin"
@@ -30,24 +26,14 @@ $LCDF_TYPETOOLS_TREE/t1testpage/t1testpa
-$LCDF_TYPETOOLS_TREE/t1testpage/t1testpage -o uhv_dl_a.ps uhv_dl.pfa \
- && diff uhv_dl_a.ps $srcdir/tests/uhv_dl.ps \
- && echo "t1testpage/asc tests OK" \
- || failed="$failed t1testpage/asc"
-
cat uhv_dl.pfb | $LCDF_TYPETOOLS_TREE/t1testpage/t1testpage >uhv_dl_b.ps \
&& diff uhv_dl_b.ps $srcdir/tests/uhv_dl.ps \
&& echo "t1testpage/bin tests OK" \
|| failed="$failed t1testpage/bin"
$LCDF_TYPETOOLS_TREE/t1reencode/t1reencode -e $srcdir/tests/t2c.enc -a $srcdir/tests/uhvrrc8a.pfb uhv_re.tmp \
&& grep -v 'Created by t1reencode' uhv_re.tmp >uhv_re.pfa \
&& diff uhv_re.pfa $srcdir/tests/uhv_re.pfa \
&& echo "t1reencode/asc tests OK" \
|| failed="$failed t1reencode/asc"
-$LCDF_TYPETOOLS_TREE/t1rawafm/t1rawafm -o uhv_re_a.afm uhv_re.pfa \
- && diff uhv_re_a.afm $srcdir/tests/uhv_re.afm \
- && echo "t1rawafm/asc tests OK" \
- || failed="$failed t1rawafm/asc"
-
cat $srcdir/tests/uhvrrc8a.pfb | $LCDF_TYPETOOLS_TREE/t1reencode/t1reencode -e $srcdir/tests/t2c.enc -b \
| $LCDF_TYPETOOLS_TREE/t1rawafm/t1rawafm >uhv_re_b.afm \
&& diff uhv_re_b.afm $srcdir/tests/uhv_re.afm \

189
SOURCES/texlive-fedora-licenses.h

@ -0,0 +1,189 @@ @@ -0,0 +1,189 @@
"cmdtrack", NULL, /* Removed from TeXLive - non-free */
"fltpage", NULL, /* Removed from TeXLive - non-free */
"free-math-font-survey", NULL, /* Removed from TeXLive - non-free */
"kalender", NULL, /* Removed from TeXLive - non-free */
"latex-tipps-und-tricks", NULL, /* Removed from TeXLive - non-free */
"russ", NULL, /* Removed from TeXLive - non-free */
"preview", NULL, /* upstream in Fedora */
"psutils", NULL, /* in Fedora */
"floatflt", "LPPL",
"seetexk", "MIT",
"texdraw", "CC-BY",
"ogham", "Public Domain",
"midnight", "midnight",
"ec", "ec",
"setspace", "Copyright only", /* http://www.linux.cz/pipermail/texlive/2011-December/000357.html */
"authoraftertitle", "Public Domain", /* http://www.linux.cz/pipermail/texlive/2011-December/000359.html */
"gentle", "CC-BY-SA", /* http://www.linux.cz/pipermail/texlive/2011-December/000375.html */
"gillcm", "BSD", /* http://www.linux.cz/pipermail/texlive/2011-December/000382.html */
"doc-pictex", "Copyright only", /* http://www.linux.cz/pipermail/texlive/2011-December/000386.html */
"abstyles", "Abstyles", /* http://www.linux.cz/pipermail/texlive/2011-December/000343.html */
"adobemapping", "BSD",
"ANUfinalexam", "GPL+",
"apalike2", "Knuth",
"apa6e", "BSD",
"arpic", "Arpic",
"ar", "LPPL",
"asana-math", "OFL",
"ascii-chart", "LPPL",
"bbm", "Copyright only",
"bbold-type1", "Copyright only",
"bera", "Bitstream vera",
"berenisadf", "GPLv2+ and LPPL",
"bchart", "MIT",
"blacklettert1", "LPPL",
"borceux", "Borceux",
"braille", "LPPL",
"breakcites", "Copyright only",
"calligra", "Copyright only",
"calligra-type1", "Copyright only",
"charter", "Copyright only",
"cherokee", "Copyright only",
"chicago", "Knuth",
"cite", "Copyright only",
"clock", "GPL+",
"cm-unicode", "OFL",
"codepage", "BSD",
"context-filter", "BSD",
"context-mathsets", "BSD",
"context-rst", "BSD",
"context", "GPL+ or LPPL",
"context-vim", "BSD",
"courseoutline", "Copyright only",
"coursepaper", "Copyright only",
"crossword", "Crossword",
"csplain", "GPLv2+",
"dancers", "Copyright only",
"de-macro", "AFL",
"detex", "NCSA",
"din1505", "Bibtex",
"dk-bib", "GPLv2+",
"dosepsbin", "GPLv2 or Artistic",
"dotseqn", "Dotseqn",
"doublestroke", "Doublestroke",
"dvidvi", "Copyright only",
"ecv", "Copyright only",
"eiad", "Public Domain",
"electrum", "GPLv2+ with exceptions and LPPL",
"elvish", "Elvish",
"epstopdf", "BSD",
"eqname", "Copyright only",
"esstix", "OFL",
"etex-pkg", "LPPL",
"eurosym", "Eurosym",
"facture", "CC-BY-SA",
"fancynum", "LPPL",
"fbithesis", "LPPL",
"figflow", "Copyright only",
"finbib", "Bibtex",
"fltpoint", "LPPL",
"fonetika", "GPL+ and LPPL",
"font-change", "CC-BY-SA",
"formlett", "GPL+",
"framed", "Copyright only",
"fundus", "LPPL",
"fwlw", "Copyright only",
"gene-logic", "Crossword",
"gentium", "OFL",
"germbib", "Bibtex",
"getoptk", "CeCILL-B",
"gfsartemisia", "LPPL",
"gfsbaskerville", "LPPL",
"gfsbodoni", "OFL",
"gfscomplutum", "OFL",
"gfsdidot", "LPPL",
"gfsneohellenic", "LPPL",
"gfsporson", "LPPL",
"gfssolomos", "OFL",
"harvmac", "CC-BY",
"hc", "GPLv2+",
"hyphen-basque", "Bahyph",
"hyphenex", "Public Domain",
"hyphen-greek", "LPPL",
"hyphen-turkish", "Copyright only",
"hyph-utf8", "Copyright only",
"ifsym", "LPPL",
"inconsolata", "OFL",
"index", "LPPL",
"ipaex", "IPA",
"itrans", "BSD",
"jadetex", "MIT",
"jamtimes", "BSD",
"japanese-otf", "BSD",
"jlabels", "Bibtex or LPPL",
"kixfont", "Copyright only",
"latex2e-help-texinfo", "Latex2e",
"lhcyr", "Lhcyr",
"localloc", "Bibtex",
"lshort-german", "GFDL",
"lshort-spanish", "GPLv2+",
"lshort-ukr", "GPLv2+",
"lua-alt-getopt", "MIT",
"magaz", "Copyright only",
"makeindex", "MakeIndex",
"mdputu", "BSD",
"menu", "LPPL",
"metapost-examples", "GPL+",
"mhequ", "Public Domain",
"mil3", "Copyright only",
"minutes", "LPPL",
"mkgrkindex", "LPPL",
"mkjobtexmf", "GPLv2 or Artistic",
"mpman-ru", "MIT",
"mp3d", "LPPL",
"mslapa", "Public Domain",
"mxedruli", "LPPL",
"nature", "LPPL",
"newsletr", "Newsletr",
"ocr-b-outline", "Copyright only",
"ocr-b", "Copyright only",
"oldstandard", "OFL",
"oubraces", "Copyright only",
"passivetex", "MIT",
"path", "Bibtex",
"pax", "GPLv2+",
"pb-diagram", "GPLv2+",
"persian-modern", "OFL",
"philokalia", "OFL",
"plain-doc", "Public Domain",
"plweb", "Copyright only",
"pnas2009", "Bibtex",
"prodint", "OFL",
"productbox", "Copyright only",
"psfrag", "psfrag",
"pst-bspline", "LPPL",
"ps2pkm", "MIT",
"ptex", "BSD",
"punknova", "Punknova",
"rccol", "LPPL",
"rsfs", "rsfs",
"r_und_s", "BSD",
"shapepar", "Dotseqn",
"showhyphens", "MIT",
"slideshow", "Copyright only",
"sphack", "Bibtex",
"stix", "OFL",
"subsupscripts", "LPPL",
"tabls", "Dotseqn",
"tds", "Latex2e",
"tetex", "GPL+ and GPLv2+ and LPPL",
"texdiff", "GPL+ or Artistic",
"texdirflatten", "GPL+ or Artistic",
"texloganalyser", "BSD",
"tex-refs", "GFDL",
"threeparttable", "Threeparttable",
"tie", "Latex2e",
"tikz-dependency", "(GPLv2 or LPPL) and (GFDL or LPPL)",
"tucv", "CC-BY-SA",
"tugboat-plain", "Bibtex",
"ulem", "Copyright only",
"umtypewriter", "OFL",
"utopia", "Utopia",
"venturisadf", "Utopia",
"version", "Copyright only",
"vntex", "Utopia",
"wadalab", "Wadalab",
"webguide", "Utopia",
"wsuipa", "Utopia",
"xdvi", "MIT",
"zed-csp", "Zed",

48
SOURCES/texlive-latexpand-perl518.patch

@ -0,0 +1,48 @@ @@ -0,0 +1,48 @@
--- latexpand.old 2015-12-14 14:23:11.624505410 -0500
+++ latexpand 2015-12-14 14:37:45.196569657 -0500
@@ -123,7 +123,7 @@ sub process_file
# ignored by LaTeX, but we don't allow anything before
# to avoid e.g. \verb|\end{document}| from terminating
# the file.
- if (!$keep_comments && $line =~ /^[ \t]*\\end{document}/) {
+ if (!$keep_comments && $line =~ /^[ \t]*\\end\{document}/) {
last;
}
}
@@ -133,7 +133,8 @@ sub process_file
sub process_line
{
- my ($_, $prefix, $file) = @_;
+ my ($line, $prefix, $file) = @_;
+ $_ = $line;
# Consider \makeatletter only in preamble, because we do want
# to warn on \someCommand{\makeatletter\command@with@arobase}.
if ($in_preamble && /^[^%]*\\makeatletter/) {
@@ -203,7 +204,7 @@ sub process_line
if ($expand_usepackage) {
# Don't bother with before and after text, we just require the
# usepackage to be alone on its line.
- if (my ($package_name) = /^\s*\\usepackage{([^}]*)}\s*(%.*)?$/) {
+ if (my ($package_name) = /^\s*\\usepackage\{([^}]*)}\s*(%.*)?$/) {
my $full = find_file($package_name . ".sty", $TEXINPUTS);
if ($full) {
say $prefix . "Found package file: $full\n";
@@ -216,7 +217,7 @@ sub process_line
}
if ($expand_bbl) {
if (my ($before, $bib_name, $after)
- = /^(.*)\\bibliography{([^}]*)}(.*)$/) {
+ = /^(.*)\\bibliography\{([^}]*)}(.*)$/) {
# The BBL file is not necessarily $bib_name.
# Take it from the command-line.
print $before . $nl;
@@ -233,7 +234,7 @@ sub process_line
print STDERR "$full\n";
}
}
- if (/^[ \t]*\\begin{document}/) {
+ if (/^[ \t]*\\begin\{document}/) {
$in_preamble = 0;
if ($makeatletter) {
print '\makeatletter' . $nl;

919
SOURCES/texlive.spec.template

@ -0,0 +1,919 @@ @@ -0,0 +1,919 @@
%global source_date 20150728_r37987
%global tl_version 2015
%global tl_rel 27
%global tl_release %{tl_rel}.%{source_date}%{?dist}
%global tl_noarch_release %{tl_rel}%{?dist}
%global source_name texlive-%{source_date}-source

%{!?_texdir: %global _texdir %{_datadir}/%{name}}
%{!?_texmf_var: %global _texmf_var %{_var}/lib/texmf}

%if 0%{?fedora} <= 19
# don't figure any perl dependencies
%global __perl_requires %{nil}
%else
# don't export private perl modules
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\\\(
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\\\((PDF::Reuse.*|Pedigree.*|TeXLive.*|Tk::path_tre)\\\\)
%endif

%global __os_install_post /usr/lib/rpm/brp-compress %{nil}
%global __arch_install_post %{nil}

%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)

Name: texlive
Version: %{tl_version}
Release: %{tl_release}
Epoch: 5
Summary: TeX formatting system
Group: Applications/Publishing
License: Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL and MIT and Public Domain and UCD and Utopia
URL: http://tug.org/texlive/
BuildRequires: xz libXaw-devel libXi-devel ncurses-devel bison flex file perl(Digest::MD5) texinfo gcc-c++
BuildRequires: gd-devel teckit-devel freetype-devel libpng-devel t1lib-devel zlib-devel poppler-devel t1utils
BuildRequires: zziplib-devel libicu-devel cairo-devel harfbuzz-devel perl-generators pixman-devel graphite2-devel ghostscript-devel
BuildRequires: libpaper-devel potrace-devel autoconf automake libtool
BuildRequires: gmp-devel mpfr-devel
Requires: texlive-scheme-basic
Requires: texlive-collection-latexrecommended
Requires: tex-kpathsea, tex-tetex
Obsoletes: texlive < %{tl_version}, texlive-texmf < %{tl_version}
Obsoletes: texlive-afm < %{tl_version}
Obsoletes: texlive-doc < %{tl_version}
Obsoletes: texlive-east-asian < %{tl_version}
Obsoletes: texlive-texmf-afm < %{tl_version}, texlive-texmf-context < %{tl_version}
Obsoletes: texlive-texmf-doc < %{tl_version}, texlive-texmf-dvips < %{tl_version}
Obsoletes: texlive-texmf-east-asian < %{tl_version}, texlive-texmf-fonts < %{tl_version}
Obsoletes: texlive-texmf-latex < %{tl_version}, texlive-texmf-xetex < %{tl_version}
Obsoletes: texlive-texmf-errata < %{tl_version}
Obsoletes: texlive-texmf-errata-afm < %{tl_version}, texlive-texmf-errata-context < %{tl_version}
Obsoletes: texlive-texmf-errata-doc < %{tl_version}, texlive-texmf-errata-dvips < %{tl_version}
Obsoletes: texlive-texmf-errata-east-asian < %{tl_version}, texlive-texmf-errata-fonts < %{tl_version}
Obsoletes: texlive-texmf-errata-latex < %{tl_version}, texlive-texmf-errata-xetex < %{tl_version}
Conflicts: texlive-dvips = 2007
Patch1: tl-kpfix.patch
Patch2: tl-format.patch
Patch3: texlive-20150728-selinux-context.patch
Patch4: texlive-fix-system-teckit.patch
Patch100: texlive-bz979176.patch
Patch101: etex-addlanguage-fix-bz1215257.patch
Source0: %{source_name}.tar.xz
Source1: tl2rpm.c
Source2: texlive.tlpdb
Source3: texlive-licenses.tar.xz
Source4: tlpdb.patch
Source5: texlive-fedora-licenses.h
Source6: texlive.spec.template
Source7: co_source
Source8: co_archive
Source9: b_one_srpm
Source10: macros.texlive
%include _sources.spec

%description
The TeX Live software distribution offers a complete TeX system for a
variety of Unix, Macintosh, Windows and other platforms. It
encompasses programs for editing, typesetting, previewing and printing
of TeX documents in many different languages, and a large collection
of TeX macros and font libraries.

The distribution includes extensive general documentation about TeX,
as well as the documentation for the included software packages.

%package base
Summary: TeX Live filesystem, metadata and licenses shipped in text form
BuildArch: noarch
Version: %{tl_version}
Requires(pre): coreutils

%description base
TeX Live licenses shipped in text form.

%package lib
Summary: Shared libraries for TeX-related files
Provides: texlive-kpathsea-lib = %{epoch}:%{version}-%{release}
Provides: texlive-kpathsea-lib%{_isa} = %{epoch}:%{version}-%{release}
Obsoletes: texlive-kpathsea-lib < %{version}
%include _obsoletes.spec

%description lib
TeX specific shared libraries.

%package lib-devel
Summary: Development files for TeX specific shared libraries
Requires: %{name}-lib%{?_isa}
Provides: kpathsea-devel = %{epoch}:%{version}
Obsoletes: kpathsea-devel < %{version}
Provides: texlive-kpathsea-lib-devel = %{epoch}:%{version}-%{release}
Provides: texlive-kpathsea-lib-devel%{_isa} = %{epoch}:%{version}-%{release}
Obsoletes: texlive-kpathsea-lib-devel < %{version}

%description lib-devel
Development files for TeX specific shared libraries.

%include _packages.spec

%prep
%setup -q -c -T
xz -dc %{SOURCE0} | tar x
[ -e %{source_name} ] && mv %{source_name} source
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
# security fix for bz#979176
%patch100 -p0
for l in `unxz -c %{SOURCE3} | tar t`; do
ln -s %{_texdir}/licenses/$l $l
done
pushd source
./reautoconf
popd

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security"
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++03 -fno-strict-aliasing -Werror=format-security"
cd source
PREF=`pwd`/inst
mkdir -p work
cd work
../configure \
--prefix=$PREF \
--datadir=$PREF \
--libdir=$PREF/lib \
--with-system-zlib \
--with-system-libpng \
--with-system-xpdf \
--with-system-gd \
--with-system-t1lib \
--with-system-teckit \
--with-system-freetype2 \
--with-system-poppler \
--with-system-zziplib \
--with-system-cairo \
--with-system-icu \
--with-system-harfbuzz \
--with-system-graphite2 \
--with-system-libgs \
--with-system-pixman \
--with-system-libpaper \
--with-system-potrace \
--with-pic \
--with-xdvi-x-toolkit=xaw \
--with-system-mpfr \
--with-system-gmp \
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
--enable-shared \
--enable-compiler-warnings=max \
--without-cxx-runtime-hack \
--disable-native-texlive-build \
--disable-t1utils \
--disable-psutils \
--disable-biber \
--disable-ptexenc \
--disable-largefile \
%ifarch %{power64} s390 s390x aarch64
--disable-luajittex --disable-mfluajit \
%endif
--disable-rpath

# disable rpath
for i in `find . -name libtool`; do
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' $i
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' $i
done

make world %{?_smp_mflags} STRIPPROG=/bin/true STRIP=/bin/true

%install
rm -rf %{buildroot}

# create directory tree
mkdir -p %{buildroot}%{_texdir}/../texmf
mkdir -p %{buildroot}%{_texdir}/texmf-config/web2c
mkdir -p %{buildroot}%{_texmf_var}
mkdir -p %{buildroot}%{_texdir}/texmf-dist
mkdir -p %{buildroot}%{_texdir}/texmf-local
pushd %{buildroot}%{_texdir}/texmf-local
ln -s ../../texmf texmf-compat
popd
%include _mkdirs.spec
%include _unpack.spec
# nuke useless tlmgr packaging stuff and doc droppings
rm -rf %{buildroot}%{_texdir}/tlpkg/tlpobj/
rm -rf %{buildroot}%{_texdir}/texmf-dist/tlpkg/tlpobj/
rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/man/man*/*.pdf
rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/man/Makefile
rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/man/man*/Makefile
rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/info/dir

mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}/bin/i386-linux/* %{buildroot}%{_bindir}
for i in `find %{buildroot}%{_bindir} -type f`; do
[ "`file $i | grep ELF | wc -l`" == "1" ] && rm -f $i
done
rm -rf %{buildroot}/tlpkg

# install texlive.tlpdb
cp %{SOURCE2} %{buildroot}%{_texdir}

# install licenses
mkdir -p %{buildroot}%{_texdir}/licenses
pushd %{buildroot}%{_texdir}/licenses
xz -dc %{SOURCE3} | tar x
popd

# install binaries
rm -rf %{buildroot}%{_texdir}/bin/
mkdir -p %{buildroot}%{_bindir}
rm -f source/inst/bin/man
pushd source/inst/bin/
for i in *; do
if [ -x %{buildroot}%{_bindir}/$i ]; then
if [ -h $i ]; then
[ ! -h %{buildroot}%{_bindir}/$i ] && continue;
fi
fi
mv $i %{buildroot}%{_bindir}
done
popd

# install shared libs, nuke static ones
rm -rf %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}
cp -d source/inst/lib/*.so* %{buildroot}%{_libdir}
cp -a source/inst/lib/pkgconfig %{buildroot}%{_libdir}
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/*.la

# install includes
rm -rf %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_includedir}
cp -r source/inst/include/* %{buildroot}%{_includedir}

# relocate binaries to %%{_bindir} and fix relative symlinks
pushd %{buildroot}%{_bindir}
for i in `find . -type l`; do
if [ "`readlink $i | grep '\.\.' | wc -l`" == "1" ]; then
l=`readlink $i | sed s,.*texmf,/usr/share/texlive/texmf,`
rm -f $i
ln -s $l $i
fi
done
popd

# sync built/distro binaries
pushd %{buildroot}%{_bindir}
rm -f man
[ ! -e mfplain ] && ln -s mpost mfplain
[ ! -e texlua ] && ln -s luatex texlua
[ ! -e texluac ] && ln -s luatex texluac
# remove binaries we don't ship
for i in physe phyzzx installfont-tl pdfthumb ppower4 tcdialog latexmk texdiff songidx inimflua inimfluajit mflua mflua-nowin mfluajit mfluajit-nowin \
paperconf; do
rm -f $i
rm -f %{buildroot}%{_datadir}/texlive/texmf-dist/doc/man/man1/$i.*
done
rm -rf %{buildroot}%{_includedir}/ptexenc
popd

# fix symlinks
pushd %{buildroot}%{_bindir}
for i in allcm allneeded fontinst kpsetool updmap-sys ps2frag pslatex rubibtex rumakeindex dvi2fax dvired kpsewhere; do
rm -f $i
ln -s /usr/share/texlive/texmf-dist/scripts/texlive/$i.sh $i
done
for i in updmap e2pall; do
rm -f $i
ln -s /usr/share/texlive/texmf-dist/scripts/texlive/$i.pl $i
done
for i in fmtutil-sys texconfig texconfig-sys texconfig-dialog texlinks; do
rm -f $i
ln -s /usr/share/texlive/texmf-dist/scripts/texlive/$i.sh $i
done

rm -f fmtutil
ln -s /usr/share/texlive/texmf-dist/scripts/texlive/fmtutil.pl fmtutil
rm -f texmfstart
ln -s /usr/share/texlive/texmf-dist/scripts/context/ruby/texmfstart.rb texmfstart
rm -f texdoctk
ln -s /usr/share/texlive/texmf-dist/scripts/texdoctk/texdoctk.pl texdoctk
rm -f deweb
ln -s /usr/share/texlive/texmf-dist/scripts/chktex/deweb.pl deweb
rm -f ps2eps
ln -s /usr/share/texlive/texmf-dist/scripts/ps2eps/ps2eps.pl ps2eps
rm -f mkjobtexmf
ln -s /usr/share/texlive/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl mkjobtexmf
rm -f rungs
ln -s /usr/share/texlive/texmf-dist/scripts/texlive/rungs.tlu rungs
rm -f context
cat > context << EOF
\#!/bin/sh
export TEXMF=/usr/share/texlive/texmf-dist;
export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c;
export TEXMFCACHE=/var/lib/texmf;
%{_bindir}/mtxrun --script context "\\$@"
EOF
chmod 0755 context
popd

# remove all unshipped stuff
%include _remove.spec
mkdir -p %{buildroot}/%{_datadir}/
mkdir -p %{buildroot}/%{_infodir}/
cp -R %{buildroot}/%{_texdir}/texmf-dist/doc/man %{buildroot}/%{_datadir}/
find %{buildroot}/%{_texdir}/texmf-dist/doc/man -type f | xargs rm -f
mv %{buildroot}/%{_texdir}/texmf-dist/doc/info/* %{buildroot}/%{_infodir}/

# nuke useless tlmgr packaging stuff
rm -rf %{buildroot}%{_texdir}/tlpkg/tlpobj/
rm -rf %{buildroot}%{_texdir}/texmf-dist/tlpkg/tlpobj/

# link config dir to the main tree and var dir to root
pushd %{buildroot}%{_texdir}
[ ! -h texmf-var ] && ln -s %{_texmf_var} texmf-var
popd
pushd %{buildroot}%{_texdir}/texmf-config/web2c
ln -s ../../texmf-dist/web2c/updmap.cfg updmap.cfg
popd

# touch ghosts
touch %{buildroot}%{_texdir}/texmf-local/ls-R
touch %{buildroot}%{_texdir}/texmf-dist/ls-R

# configure ConTeXt
#for i in ctxtools luatools texexec texmfstart; do
# sed -i -e 's|mtxrun|export TEXMF=/usr/share/texlive/texmf-dist; export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c; export TEXMFCACHE=/var/lib/texmf; mtxrun|' %{buildroot}%{_bindir}/$i
#done

# configure texmf-local - make it visible to kpathsea
sed -i -e 's|^TEXMFLOCAL.*|TEXMFLOCAL\ =\ \$TEXMFROOT/texmf-local//|' %{buildroot}/%{_texdir}/texmf-dist/web2c/texmf.cnf

# create macro file for building texlive
mkdir -p %{buildroot}%{macrosdir}
cp -a %{SOURCE9} %{buildroot}%{macrosdir}/macros.texlive

%clean
rm -rf %{buildroot}

%pre base
rm -rf %{_texdir}/texmf-var
rm -rf %{_texmf_var}/*
:

%posttrans base
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi
:

%post lib -p /sbin/ldconfig
%postun lib -p /sbin/ldconfig

%files
%defattr(-,root,root)

%files base
%defattr(-,root,root)
%dir %{_texmf_var}
%{_texdir}/texmf-var
%dir %{_texdir}/../texmf
%dir %{_texdir}/licenses
%dir %{_texdir}/texmf-local
%{_texdir}/texmf-local/texmf-compat
%include _dirs.spec
%{_texdir}/licenses/*
%attr(0644, root, root) %verify(not md5 size mtime) %ghost %{_texdir}/texmf-dist/ls-R
%attr(0644, root, root) %verify(not md5 size mtime) %ghost %{_texdir}/texmf-local/ls-R
%{_texdir}/texlive.tlpdb
%{macrosdir}/macros.texlive

%include _files.spec

%files lib
%defattr(-,root,root)
%{_libdir}/*.so.*
%dir %{_texdir}/texmf-config
%dir %{_texdir}/texmf-config/web2c
%{_texdir}/texmf-config/web2c/updmap.cfg
%attr(0644, root, root) %verify(not md5 size mtime) %ghost %{_texdir}/texmf-config/ls-R

%files lib-devel
%defattr(-,root,root)
%dir %{_includedir}/kpathsea
%{_includedir}/kpathsea/*
%{_includedir}/synctex/
%{_includedir}/texlua52/
%{_includedir}/texluajit/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Mon Jul 18 2016 Marek Kasik <mkasik@redhat.com> - 5:2015-27.20150728_r37987
- Rebuild for poppler-0.45.0

* Tue May 3 2016 Marek Kasik <mkasik@redhat.com> - 5:2015-26.20150728_r37987
- Rebuild for poppler-0.43.0

* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 5:2015-25.20150728_r37987
- rebuild for ICU 57.1

* Mon Nov 16 2015 Than Ngo <than@redhat.com> - 5:2015-14.20150728_r37987
- fix build failure on secondary arch

* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 5:2015-13.20150728_r37987
- rebuild for ICU 56.1

* Thu Oct 08 2015 Than Ngo <than@redhat.com> - 5:2015-12.20150724
- fix build failure on s390*
- fix to use system gmp and system mpfr

* Wed Oct 7 2015 Peter Robinson <pbrobinson@fedoraproject.org> 5:2015-11.20150724
- Fix lua builds on secondary arches again

* Thu Oct 1 2015 Tom Callaway <spot@fedoraproject.org> - 5:2015-10.20150724
- fix rpm macros so that the right file is copied

* Mon Sep 28 2015 Tom Callaway <spot@fedoraproject.org> - 5:2015-9.20150724
- add Requires: tex(titlesec.sty) to savetrees (bz1266801)

* Fri Sep 25 2015 Tom Callaway <spot@fedoraproject.org> - 5:2015-8.20150724
- add Provides: tex-beamer-FUBerlin and texlive-beamer-FUBerlin to the beamer-FUBerlin-doc package
... the upstream beamer-FUBerlin tarball is empty of useful content.

* Wed Sep 16 2015 Tom Callaway <spot@fedoraproject.org> - 5:2015-7.20150724
- fix newline issue in pgf (bz1241458)
- do not require: ghostscript-devel for texlive-pdfcrop-bin (bz1229407)
- do not provide: tex(ifluatex.sty) in texlive-oberdiek (bz1146684)
... but do require: tex(ifluatex.sty) in texlive-oberdiek to ensure complete bundle
- add Requires: texlive-metafont-bin to texlive-kpathsea-bin (bz1123096)
- add Provides/Obsoletes texlive-tlwg to texlive-fonts-tlwg (bz1100984)
- add Requires: texlive-greek-fontenc and Requires: texlive-cbfonts-fd to textgreek (bz1064051)
- apply patch from Edgar Hoch to fix etex.src to permit \addlanguage to have empty params 4 & 5 (bz1215257)
- replace visible references to oriya to odia, add odia as equiv lang to oriya (bz1040337)
- use macros.texlive file as source10, add and cleanup macros (bz1054317)
- add Requires: biber to texlive-biblatex-apa (bz1048193)
- new subpackage sync
- add scriptlets for -doc subpackages so that texdoc just works
- removed yfonts-t1 subpackage due to non-free license
- fix license tags (no more Freely distributable...)
- add Requires: tex(ltxkeys.sty) to xwatermark (bz1197494)
- add Requires: tex(ifnextok.sty) to titlecaps (bz1186688)
- add Requires: tex(xetex.def) to xetex (bz1155267)
- add Requires: texlive-texconfig-bin to latex-bin-bin (bz995752)
- add Provides/Obsoletes bibexport to texlive-bibexport
add bibexport.sh symlink in /usr/bin (bz979448)
- drop incorrect versioning on Requires: texlive-metafont-bin for texlive-kpathsea-bin

* Tue Sep 15 2015 Tom Callaway <spot@fedoraproject.org> - 5:2015-6.20150724
- increment epoch to force upgrade (i hate versioning)

* Wed Sep 9 2015 Tom Callaway <spot@fedoraproject.org> - 4:2015-5.20150724
- fix incorrect Obsoletes: texlive-kpathsea-lib

* Wed Aug 26 2015 Than Ngo <than@redhat.com> - 4:2015-4.20150724
- disable luajittex on secondary arch

* Thu Aug 20 2015 Than Ngo <than@redhat.com> - 4:2015-3.20150724
- rebuilt to fix some broken dependencies

* Wed Aug 5 2015 Tom Callaway <spot@fedoraproject.org> 4:2015-2.20150724
- fix fmtutil.pl symlink, for you know, working fmtutil

* Fri Jul 24 2015 Tom Callaway <spot@fedoraproject.org> 4:2015-1.20150724
- Update to TL2015

* Wed Jul 22 2015 Marek Kasik <mkasik@redhat.com> - 4:2014-12.20140525_r34255
- Rebuild (poppler-0.34.0)

* Wed Jun 10 2015 Than Ngo <than@redhat.com> - 4:2014-11.20140525_r34255
- fix wrong selinux context

* Mon Jun 8 2015 Marek Kasik <mkasik@redhat.com> - 4:2014-10.20140525_r34255
- Rebuild (poppler-0.33.0)

* Fri Jun 5 2015 Marek Kasik <mkasik@redhat.com> - 4:2014-9.20140525_r34255
- Rebuild (poppler-0.33.0)

* Wed Apr 29 2015 Than Ngo <than@redhat.com> - 4:2014-8.20140525_r34255
- Resolves: bz#1181169, insecure use of /tmp in mktexlsr

* Wed Mar 4 2015 Ville Skyttä <ville.skytta@iki.fi> - 4:2014-7.20140525_r34255
- Install rpm macros in %%{_rpmconfidir}/macros.d where available (#1074287)

* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 4:2014-6.20140525_r34255
- rebuild for ICU 54.1

* Fri Jan 23 2015 Marek Kasik <mkasik@redhat.com> - 4:2014-5.20140525_r34255
- Rebuild (poppler-0.30.0)

* Sat Dec 27 2014 Kevin Fenzi <kevin@scrye.com> - 4:2014-4.20140525_r34255
* Drop scriptlet that touches /home. Fixes bugs: #1128240 #1047361 #1073518 #1054338

* Thu Nov 27 2014 Marek Kasik <mkasik@redhat.com> - 4:2014-3.20140525_r34255
- Rebuild (poppler-0.28.1)

* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 4:2014-2.20140525_r34255
- rebuild for ICU 53.1

* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2014-1.20140525_r34255.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Tue Jul 22 2014 Jindrich Novy <novyjindrich@gmail.com> - 2014-1-20140525
- Tex Live 2014 is out
- fix package dependencies to make update path smoother

* Sun Jun 8 2014 Jindrich Novy <novyjindrich@gmail.com> - 2014-0.1-20140525
- update to TeX Live 2014 release candidate
- conflict with ht package (#959696)

* Thu May 15 2014 Petr Pisar <ppisar@redhat.com> - 2013-12-20140512
- Do not export private perl modules (bug #1085424)
- Build-require libXi-devel for xdvik

* Wed May 14 2014 Jindrich Novy <novyjindrich@gmail.com> - 2013-11-20140512
- remove explicit ghostscript-devel dependency in dvisvgm (#1087847)
- pdftex now depends on pdftex-def (#1096535)

* Tue May 13 2014 Marek Kasik <mkasik@redhat.com> - 2013-10-20140411
- Rebuild (poppler-0.26.0)

* Fri Apr 11 2014 Jindrich Novy <novyjindrich@gmail.com> - 2013-9-20140411
- sync with upstream

* Fri Mar 21 2014 Dan Horák <dan[at]danny.cz> - 2013-8-20140305
- do not attempt to built luajittex (#1070380)

* Tue Feb 25 2014 Jindrich Novy <novyjindrich@gmail.com> - 2013-7-20140224
- sync with upstream
- fix fmt files removal

* Sat Feb 22 2014 Jindrich Novy <novyjindrich@gmail.com> - 2013-6-20140217
- sync with upstream
- remove only generated fmt files upon update

* Fri Feb 14 2014 David Tardon <dtardon@redhat.com> - 2013-5-20131226
- rebuild for new ICU

* Thu Dec 26 2013 Jindrich Novy <novyjindrich@gmail.com> - 2013-4-20131226
- sync with upstream + add BR: libpaper-devel, potrace-devel
- remove generated files upon update to avoid 'I'm stymified', etc.
- update co_source - upstream SVN checkout script
- disable Perl dependencies generation for F19 and older (#1023876)
- always have format in printf() #1037351
- fixes #921805, #952080, #1020941, #1025679, #1045794
- Merry Christmas!

* Fri Oct 25 2013 Jindrich Novy <novyjindrich@gmail.com> - 2013-3-20131021
- improve obsoletion automatism (#1022291, #1022746)

* Tue Oct 15 2013 Jindrich Novy <novyjindrich@gmail.com> - 2013-2-20131019
- fix symlinks and dependency generation

* Tue Oct 15 2013 Jindrich Novy <novyjindrich@gmail.com> - 2013-1-20131014
- sync with upstream
- fix bin->noarch package dependencies

* Fri Oct 11 2013 Jindrich Novy <novyjindrich@gmail.com> - 2013-0.6.1-20131010
- sync with upstream - fixes metapost, siunitx, latexdiff, luatex
(#1016074, #1013367, #981390, #975254, #976863)
- modify post scripts (#968573)
- fix kpathsea patch
- fix euler fonts installation (#982887)
- fix license tag OFSFLD -> OFL (#1014052)
- process perl dependencies (#1001434)
- don't ship flash files (#1000265)
- rebuild should fix rawhide poppler deps (#998696)
- fixes build of dbus-java (#993438)
- texexec no more complains about switch.rb (#993255)
- bin packages now require their counterparts (#991699, #988978, #984468)
- bibtex works fine now with spanish (#987534)
- do proper obsoletion - include epoch (#983433)
- fix build time tests

* Wed Jun 12 2013 Jindrich Novy <novyjindrich@gmail.com> - 2013-0.1-20130608
- formally switch to 2013 based on upstream
- call updmap-sys and fmtutil-sys for map and format updates
- bump epoch to be sure all noarch packages get updated

* Tue Jun 11 2013 Jon Ciesla <limburgher@gmail.com> - 2012-25-20130531
- Rebuild for new gd.

* Sun Jun 2 2013 Jindrich Novy <novyjindrich@gmail.com> - 2012-24-20130531
- fix luatex breakage (#959625)
- fix updmap-sys calls (#968573, #968573)
- fix broken dependencies for packages only shiping binaries/symlinks and nothing else
- fix update path - obsolete dvipdfm (#968358)
- pdfcrop now requires ghostscript (#964183)

* Mon May 6 2013 Jindrich Novy <novyjindrich@gmail.com> - 2012-23-20130506
- don't conflict with ht package - ht binary is now called t4ht (#959696)
- require coreutils (#928566)
- update build scripts
- update symlink references tetex -> texlive
- handle texmf -> texmf-dist upstream move
- do proper obsoletion again

* Mon Apr 29 2013 Tom Callaway <spot@fedoraproject.org> - 2012-22-20130427
- obsolete/provide ctan-musixtex-fonts and tex-musixtex

* Sat Apr 27 2013 Jindrich Novy <novyjindrich@gmail.com> - 2012-21-20130427
- add missing shebang to context script
- mark language.dat as config file (#929367)
- add scripts for checking out sources and CTAN archives

* Wed Mar 27 2013 Jindrich Novy <novyjindrich@gmail.com> - 2012-20-20130321
- bring chkweb back to life
- fix context script (#924918)
- prefer scripts installed from sources than from CTAN
- BR: ghostscript-devel because of dvisvgm (#924662)

* Tue Mar 19 2013 Jindrich Novy <novyjindrich@gmail.com> - 2012-19-20130318
- fix wrapper for context, remove chkweb man page (#910952)

* Mon Mar 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 2012-18-20130310
- Remove %%config from %%{_sysconfdir}/rpm/macros.*
(https://fedorahosted.org/fpc/ticket/259).

* Fri Mar 8 2013 Jindrich Novy <jnovy@redhat.com> 2012-17-20130310
- run updmap-sys --syncwithtrees posttrans (#915086)
- don't conflict with other packages (#913678)
- obsolete tex-cm-lgc (#907728)
- obsolete tex-kerkis (#907726)
- fix clashes with xmltex (#877690)
- use fedora latexmk instead of texlive latexmk (#914689)
- fix broken symlinks in /usr/bin (#910952)
- fmtutil doesn't print jadetex errors any more (#875266)
- fix post scriptlets

* Tue Feb 5 2013 Jindrich Novy <jnovy@redhat.com> 2012-16-20130205
- fix symlinks pointing to system utilities (#907643)
- add BR: texinfo because of makeinfo

* Mon Jan 28 2013 Jindrich Novy <jnovy@redhat.com> 2012-15-20130131
- enlarge tex(latex) dependency set, introduce tex(latex-base) (#904147)
- fix post-scriptlets (#875257)
- ship macros.texlive (#885762)
- depend directly on texlive-kpathsea-lib
- disable rpath

* Fri Jan 18 2013 Marek Kasik <mkasik@redhat.com> 2012-14-20130102
- Rebuild (poppler-0.22.0)

* Fri Jan 11 2013 Jindrich Novy <jnovy@redhat.com> 2012-13-20130102
- make dvips require latex-fonts (#879661)

* Mon Jan 7 2013 Jindrich Novy <jnovy@redhat.com> 2012-12-20130102
- fix dependencies and upgrade path (#892054, #891709)
- do not ship windows and other unneeded files

* Wed Jan 2 2013 Jindrich Novy <jnovy@redhat.com> 2012-11-20130102
- sync with CTAN
- added new buildrequires
- don't use texlive's psutils
- don't obsolete latexmk (#868996)

* Thu Dec 6 2012 Jindrich Novy <jnovy@redhat.com> 2012-10-20121205
- sync with CTAN
- compile also C++ sources with -fno-strict-aliasing
- ship adhocfilelist
- fix changelog dates

* Tue Nov 20 2012 Jindrich Novy <jnovy@redhat.com> 2012-9-20121120
- obsolete metapost-metauml (#573863)
- update BR perl-MD5 to perl(Digest::MD5) - required for updmap
- remove redundant posttrans executions in texlive-base (#865650)
- own ls-R in texmf-local directory

* Wed Nov 14 2012 Jindrich Novy <jnovy@redhat.com> 2012-8-20121115
- prevent sed from being verbose in install log when uninstalling
- be sure the old /usr/share/texmf tree is indexed and searched by
kpathsea (#876710)
- drop patch to fix build for dvisvgm, it is now applied upstream
- fix dependencies in texlive and texlive-base subpackages (#875364)

* Sat Nov 10 2012 Jindrich Novy <jnovy@redhat.com> 2012-7-20121107
- run mtxrun only once per transaction (#865650), this considerably
speeds up installation time

* Wed Nov 7 2012 Jindrich Novy <jnovy@redhat.com> 2012-6-20121107
- use -std=c++11 for all C++ apps in texlive to avoid symbol problems
(thanks to Jakub Jelinek)

* Sun Nov 4 2012 Jindrich Novy <jnovy@redhat.com> 2012-5-20121024
- don't conflict with latexmk (#868996)
- unify versioning for both binary and noarch subpackages
- remove lcdf-typetools hack for s390(x)

* Wed Oct 24 2012 Jindrich Novy <jnovy@redhat.com> 2012-3-20121024
- sync with upstream - fixes problem lcdf-typetools tests
- disable largefile support to fix pdflatex on 32bit arches (#872231)
- put compatibility TEXMF tree reference into texm-local instead
symlinking it to /usr/share/texmf directly

* Fri Oct 19 2012 Jindrich Novy <jnovy@redhat.com> 2012-3-20121019
- sync with upstream sources
- make /usr/share/texmf visible to kpathsea, make texmf-local
pointing to it (#867656, #864875)
- fix versioning of binary packages

* Tue Oct 9 2012 Jindrich Novy <jnovy@redhat.com> 2012-3-20120926
- obsolete chktex (#864211)
- make config.ps a config file (#441171)
- fix post/postun scriptlet dependencies
- all subpackages now have %%dist tag

* Sat Oct 6 2012 Jindrich Novy <jnovy@redhat.com> 2012-2-20120926
- drop relase subpackage (no more needed as TL is now in Fedora)
- fix -doc dependencies
- remove (not-built) asymtote from source tarball
- undefined catalogue version defaults to 0
- perform automatic license audit
- include also packages not part of any scheme
- don't strip binaries so that we can generate debuginfo (#863635)
- clean up depsolver

* Wed Oct 3 2012 Jindrich Novy <jnovy@redhat.com> 2012-1-20120926
- introduce TeX Live 2012 to Fedora (#488651)
- fixes: #619481, #759534, #814880, #819157

* Thu Jun 14 2012 Jindrich Novy <jnovy@redhat.com> 2012-1-20120613
- update to 2012 final
- obsolete system latexmk
- include dvisvgm back

* Mon Apr 9 2012 Jindrich Novy <jnovy@redhat.com> 2012-0.1.20120408
- temporarily disable dvisvgm due to gcc-4.7 compilation problems

* Tue Jul 26 2011 Jindrich Novy <jnovy@redhat.com> 2011-1.20110726
- update to the official TeX Live 2011 release

* Sun Mar 13 2011 Jindrich Novy <jnovy@redhat.com> 2011-0.2.20110313
- bump version to fix koma-skript versioning problem

* Mon Feb 28 2011 Jindrich Novy <jnovy@redhat.com> 2011-0.1.20110227
- fix upgrade path with old TL2007 xetex, context or dvips installed
- fix package generation bug that caused some package might be missing
from the repository
(http://www.linux.cz/pipermail/texlive/2011-February/000086.html)
- fix upstream source URLs

* Tue Jan 25 2011 Jindrich Novy <jnovy@redhat.com> 2011-0.1.20110120
- bump release to 2011 (we are using the 2011/dev SVN version)
- add more file virtual provides (TFM, TTF, TTC, PFA, PFB, PCF, OTF,
TEX, CNF, CFG, DEF, DAT, LDF, FD, ENC, MAP, VF, VPL, CLO, BUG, BUG2)

* Thu Dec 23 2010 Jindrich Novy <jnovy@redhat.com> 2010-14.20110105
- sync with upstream
- install texlive.tlpdb for autodep finder

* Wed Dec 15 2010 Jindrich Novy <jnovy@redhat.com> 2010-13.20101215
- sync with upstream as of 15th Dec
- fix dangling symlink (thanks to Michel Alexandre Salim)

* Fri Nov 12 2010 Jindrich Novy <jnovy@redhat.com> 2010-13.20101112
- temporarily disable dvi2tty because of failing test suite
- package /etc/texmf and point texmf-config there

* Fri Nov 5 2010 Jindrich Novy <jnovy@redhat.com> 2010-13.20101102
- make release package part of the main build

* Mon Oct 18 2010 Jindrich Novy <jnovy@redhat.com> 2010-12.20101016
- texlive-jadetex-bin obsoletes jadetex

* Fri Oct 8 2010 Jindrich Novy <jnovy@redhat.com> 2010-12.20101007
- fix symlinks in /usr/bin so that they are not pointing to wrong location

* Thu Oct 7 2010 Jindrich Novy <jnovy@redhat.com> 2010-11.20101007
- sync with the latest TL2010 sources
- don't make redundant copies of binaries, symlink them
- fix symlinks to perl utilities

* Wed Aug 25 2010 Jindrich Novy <jnovy@redhat.com> 2010-10.20100814
- add obsolete of dvisvgm to allow smooth updates

* Mon Aug 23 2010 Jindrich Novy <jnovy@redhat.com> 2010-9.20100814
- fix file attributes and rpmlint warnings
- define libdir when calling configure
- rebuild against new poppler

* Thu Jul 15 2010 Jindrich Novy <jnovy@redhat.com> 2010-8.20100715
- move all the licenses and base directory hierarchy to texlive-base
noarch subpackage
- add automatic licensing code

* Fri Jun 4 2010 Jindrich Novy <jnovy@redhat.com> 2010-7.20100604
- sync with upstream (introducing mptopdf)
- compile C source with -fno-strict-aliasing

* Mon May 31 2010 Jindrich Novy <jnovy@redhat.com> 2010-7.20100531
- switch to "tlpretest" source tree
- add lua and ruby dependencies to packages requiring them
- generate global package database "texlive.tlpdb" directly from
tlpobj files shipped with each package

* Wed May 19 2010 Jindrich Novy <jnovy@redhat.com> 2010-6.20100521
- disable chktex so that build passes
- fix dist tags in releases in binary packages

* Fri Apr 30 2010 Jindrich Novy <jnovy@redhat.com> 2010-5.20100430
- add dependencies resolution among biblatex files
- another %%postun scriptlets fix

* Wed Apr 21 2010 Jindrich Novy <jnovy@redhat.com> 2010-4.20100421
- add Requires(posttrans) to the main package

* Mon Apr 19 2010 Jindrich Novy <jnovy@redhat.com> 2010-3.20100419
- bump version of binaries because of the kpathsea soname increase

* Fri Apr 16 2010 Jindrich Novy <jnovy@redhat.com> 2010-0.1.20100416
- sync with upstream, remove ptex stuff for now

* Fri Apr 09 2010 Jindrich Novy <jnovy@redhat.com> 2010-0.1.20100329
- use 2010 prefix
- do not ship/build asymptote (#548761)

* Fri Mar 26 2010 Jindrich Novy <jnovy@redhat.com> 2009-3.20100326
- declare fmutil.cnf, updmap.cfg, context.cnf and texmf.cnf as config files
so that they don't get overwritten with texlive-kpathsea update
- move man and info pages to the main packages, not -doc

* Fri Feb 19 2010 Jindrich Novy <jnovy@redhat.com> 2009-3.20100219
- blacklist a4wide.sty because of bad (noinfo) license

* Tue Nov 10 2009 Jindrich Novy <jnovy@redhat.com> 2009-2
- install man and info pages into proper locations visible
by man and info
- update scriptlets
- remove xindy bits

* Mon Nov 09 2009 Jindrich Novy <jnovy@redhat.com> 2009-1
- update to oficcially released TeX Live 2009
- enable large file support

* Sun Nov 01 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.13
- remove postun scriptlet to avoid accidential removal of texmf bits
when not removing the package

* Fri Oct 23 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.12
- tighten kpathsea devel dependency

* Tue Oct 20 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.11
- fix generation of packages that ships only documentation
- fix versioning of packages without version but with revision
- fix heuristics for gathering .sty files dependencies
- include packages under GFSL license
- make files in old texmf tree from previous installs visible
- do not obsolete old kpathsea, try to coexist
- remove dvipdfm, dvipdfmx,depend of Fedora ones

* Sun Oct 18 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.10
- TL2007 compatibility fixes:
- create /usr/share/texmf symlink
- clean all in post scriptlets

* Fri Oct 02 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.9
- fix kpathsea Provides/Obsoletes

* Tue Sep 29 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.8
- sync with latest upstream

* Sat Sep 12 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.7
- make kpathsea independent on the main texlive package

* Thu Sep 10 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.6
- remove packages under GFSL non-free license (tex-gyre)

* Thu Sep 3 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.5
- fix dependencies to hyphenation packages
- fix provides/obsoletes

* Mon Aug 31 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.4
- require recommended LaTeX bits, the installation of pure
scheme-basic is too minimalistic

* Tue Aug 25 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.3
- require system psutils and t1utils and don't build the TL ones
- correctly obsolete old kpathsea
- binaries now have -bin postfix
- support for Fedora fonts

* Thu Aug 20 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.2
- add tetex-* virtual provides
- fix unversioned requires
- filter out unwanted libs and utilities from source

* Wed Aug 12 2009 Jindrich Novy <jnovy@redhat.com> 2009-0.1
- update to TeX Live 2009 - pretest

* Mon Jun 29 2009 Jindrich Novy <jnovy@redhat.com> 2008-0.2
- update to today's svn sources of binaries from upstream
- fix directory -> symlink conversion
- add ly1 (#488651)

* Thu Aug 14 2008 Jindrich Novy <jnovy@redhat.com> 2008-0.1
- initial packaging for TeX Live 2008
- wrote tl2rpm.c to autogenerate packages and post scriptlets
from TeX Live metadata
- fix kpathsea default search path

186556
SOURCES/texlive.tlpdb

File diff suppressed because it is too large Load Diff

2405
SOURCES/tl2rpm.c

File diff suppressed because it is too large Load Diff

305
SOURCES/tlpdb.patch

@ -0,0 +1,305 @@ @@ -0,0 +1,305 @@
--- texlive.tlpdb.orig 2015-09-16 16:29:17.024436938 -0400
+++ texlive.tlpdb 2015-09-16 16:29:17.050436761 -0400
@@ -10317,7 +10317,7 @@
catalogue-license pd
catalogue-version 1.0a
-name Asana-Math
+name asana-math
category Package
revision 37556
shortdesc A font to typeset maths in Xe(La)TeX and Lua(La)TeX.
@@ -16060,40 +16060,6 @@
catalogue-date 2012-04-10 13:05:36 +0200
catalogue-license gpl
-name biber
-category Package
-revision 37851
-shortdesc A BibTeX replacement for users of biblatex.
-longdesc Biber is a BibTeX replacement for users of biblatex. Biber
-longdesc supports full UTF-8, can (re)-encode input and output, supports
-longdesc highly configurable sorting, dynamic bibliography sets and many
-longdesc other features. The CTAN distribution offers a compressed tar
-longdesc archive of the sources, etc., together with "binary"
-longdesc distributions for a variety of platforms. Note: on SourceForge
-longdesc biber is formally named "biblatex-biber", to distinguish it
-longdesc from an earlier (now apparently moribund) project called
-longdesc "biber".
-depend biber.ARCH
-docfiles size=84
- texmf-dist/doc/bibtex/biber/biber.pdf
-srcfiles size=543
- texmf-dist/source/bibtex/biber/Changes
- texmf-dist/source/bibtex/biber/biblatex-biber.tar.gz
- texmf-dist/source/bibtex/biber/utf8-macro-map.html
-catalogue-also bibtex crosstex biblatex
-catalogue-ctan /biblio/biber
-catalogue-date 2015-05-08 00:12:35 +0200
-catalogue-license artistic
-catalogue-topics biblio
-catalogue-version 2.1
-
-name biber.i386-linux
-category Package
-revision 37327
-shortdesc i386-linux files of biber
-binfiles arch=i386-linux size=4284
- bin/i386-linux/biber
-
name bibexport
category Package
revision 29349
@@ -33039,7 +33005,6 @@
depend tex
depend texconfig
depend texlive-common
-depend texlive-docindex
depend texlive-en
depend texlive-msg-translations
depend texlive-scripts
@@ -33287,7 +33252,7 @@
shortdesc Additional fonts
relocated 1
depend collection-basic
-depend Asana-Math
+depend asana-math
depend academicons
depend accanthis
depend adforn
@@ -33434,7 +33399,7 @@
depend librebaskerville
depend librecaslon
depend libris
-depend linearA
+depend lineara
depend lobster2
depend lxfonts
depend ly1
@@ -35721,7 +35686,7 @@
depend m-tx
depend musixguit
depend musixtex
-depend musixtex-fonts
+depend musixtex-fnts
depend musixtnt
depend piano
depend pmx
@@ -36253,25 +36218,6 @@
depend xymtex
depend youngtab
-name collection-texworks
-category Collection
-revision 36934
-shortdesc TeXworks editor; TL includes only the Windows binary
-relocated 1
-longdesc See http://tug.org/texworks.
-depend collection-basic
-depend texworks
-
-name collection-wintools
-category Collection
-revision 30307
-shortdesc Windows-only support programs
-relocated 1
-longdesc Utilities for Windows, since they are not readily available
-longdesc there: chktex, unzip, wget, xpdf, and the dviout previewer.
-depend wintools.win32
-depend dviout.win32
-
name collection-xetex
category Collection
revision 38257
@@ -47514,7 +47460,7 @@
texmf-dist/source/support/dosepsbin/install-sh
catalogue-ctan /support/dosepsbin
catalogue-date 2014-10-16 20:09:26 +0200
-catalogue-license artistic
+catalogue-license gpl
catalogue-version 1.2
name dosepsbin.i386-linux
@@ -79894,13 +79840,6 @@
catalogue-license lppl
catalogue-version v1.7
-name installfont.i386-linux
-category Package
-revision 19743
-shortdesc i386-linux files of installfont
-binfiles arch=i386-linux size=1
- bin/i386-linux/installfont-tl
-
name interactiveworkbook
category Package
revision 15878
@@ -91373,7 +91312,7 @@
catalogue-ctan /macros/latex/contrib/labels
catalogue-date 2011-12-16 16:22:52 +0100
catalogue-license lppl1.2
-catalogue-version .13
+catalogue-version 13
name labyrinth
category Package
@@ -93004,72 +92943,6 @@
catalogue-license gpl
catalogue-version 2.1.19.1
-name latexmk
-category Package
-revision 36353
-shortdesc Fully automated LaTeX document generation.
-longdesc Latexmk completely automates the process of generating a LaTeX
-longdesc document. Given the source files for a document, latexmk issues
-longdesc the appropriate sequence of commands to generate a .dvi, .ps,
-longdesc .pdf or hardcopy version of the document. An important feature
-longdesc is the "preview continuous mode", where the script watches all
-longdesc of the source files (primary file and included TeX and graphics
-longdesc files), and reruns LaTeX, etc., whenever a source file has
-longdesc changed. Thus a previewer can offer a display of the document's
-longdesc latest state.
-depend latexmk.ARCH
-runfiles size=86
- texmf-dist/scripts/latexmk/latexmk.pl
-docfiles size=185
- texmf-dist/doc/man/man1/latexmk.1
- texmf-dist/doc/man/man1/latexmk.man1.pdf
- texmf-dist/doc/support/latexmk/CHANGES
- texmf-dist/doc/support/latexmk/COPYING
- texmf-dist/doc/support/latexmk/INSTALL
- texmf-dist/doc/support/latexmk/README
- texmf-dist/doc/support/latexmk/example_rcfiles/README-rcfiles
- texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/clean_pattern_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/exceltex_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/lualatex_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/nomenclature_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/pdflatexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/pythontex-latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/sagetex_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/sweave_latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/tex4ht-latexmkrc
- texmf-dist/doc/support/latexmk/example_rcfiles/xelatex_latexmkrc
- texmf-dist/doc/support/latexmk/extra-scripts/README-scripts
- texmf-dist/doc/support/latexmk/extra-scripts/dvipdfm_call
- texmf-dist/doc/support/latexmk/extra-scripts/dvipdfm_call.bat
- texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call
- texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call.bat
- texmf-dist/doc/support/latexmk/extra-scripts/htlatexonly
- texmf-dist/doc/support/latexmk/extra-scripts/kickxdvi
- texmf-dist/doc/support/latexmk/extra-scripts/l1
- texmf-dist/doc/support/latexmk/extra-scripts/l2
- texmf-dist/doc/support/latexmk/extra-scripts/myhtlatex2
- texmf-dist/doc/support/latexmk/extra-scripts/pst2pdf_for_latexmk
- texmf-dist/doc/support/latexmk/extra-scripts/pst2pdf_for_latexmk_README.txt
- texmf-dist/doc/support/latexmk/extra-scripts/startacroread
- texmf-dist/doc/support/latexmk/latexmk.pdf
- texmf-dist/doc/support/latexmk/latexmk.txt
-srcfiles size=1
- texmf-dist/source/support/latexmk/latexmk.bat
-catalogue-ctan /support/latexmk
-catalogue-date 2015-02-22 07:47:38 +0100
-catalogue-license gpl2
-catalogue-version 4.43a
-
-name latexmk.i386-linux
-category Package
-revision 10937
-shortdesc i386-linux files of latexmk
-binfiles arch=i386-linux size=1
- bin/i386-linux/latexmk
-
name latexmp
category Package
revision 15878
@@ -98324,7 +98197,7 @@
catalogue-date 2012-04-03 18:09:05 +0200
catalogue-license lppl
-name linearA
+name lineara
category Package
revision 15878
shortdesc Linear A script fonts.
@@ -109422,7 +109295,7 @@
texmf-dist/source/generic/mkjobtexmf/install-sh
catalogue-ctan /support/mkjobtexmf
catalogue-date 2011-11-16 11:07:17 +0100
-catalogue-license artistic
+catalogue-license gpl
catalogue-version 0.8
name mkjobtexmf.i386-linux
@@ -111632,7 +111505,7 @@
catalogue-license lppl1.3
catalogue-version 1.2.2
-name musixtex-fonts
+name musixtex-fnts
category Package
revision 37762
shortdesc Fonts used by MusixTeX.
@@ -123189,6 +123062,7 @@
longdesc LuaTeX).
depend kpathsea
depend pdftex.ARCH
+depend pdftex-def
execute AddFormat name=pdftex engine=pdftex patterns=language.def options="-translate-file=cp227.tcx *pdfetex.ini"
execute AddFormat name=etex engine=pdftex patterns=language.def options="-translate-file=cp227.tcx *etex.ini"
execute AddFormat name=pdfetex engine=pdftex patterns=language.def options="-translate-file=cp227.tcx *pdfetex.ini"
@@ -131343,7 +131217,7 @@
catalogue-ctan /graphics/pstricks/contrib/pst-layout
catalogue-date 2014-02-26 23:03:13 +0100
catalogue-license lppl
-catalogue-version .95
+catalogue-version 95
name pst-lens
category Package
@@ -144593,7 +144467,7 @@
depend kurier
depend poltawski
depend xits
-depend Asana-Math
+depend asana-math
depend gentium-tug
depend pxfonts
depend txfonts
@@ -159412,7 +159286,7 @@
texmf-dist/doc/man/man1/texdirflatten.man1.pdf
catalogue-ctan /support/texdirflatten
catalogue-date 2014-02-26 23:03:13 +0100
-catalogue-license artistic
+catalogue-license gpl
catalogue-version 1.1
name texdirflatten.i386-linux
@@ -161016,7 +160890,6 @@
revision 29741
shortdesc i386-linux files of texlive-scripts
binfiles arch=i386-linux size=2
- bin/i386-linux/man
bin/i386-linux/rungs
name texlive-sr
@@ -166717,7 +166590,7 @@
catalogue-ctan /macros/latex209/contrib/trees/tree-dvips
catalogue-date 2012-01-20 11:26:32 +0100
catalogue-license lppl1
-catalogue-version .91
+catalogue-version 91
name treetex
category Package
@@ -179710,7 +179583,6 @@
revision 37261
shortdesc i386-linux files of xetex
binfiles arch=i386-linux size=6435
- bin/i386-linux/teckit_compile
bin/i386-linux/xdvipdfmx
bin/i386-linux/xelatex
bin/i386-linux/xetex

53547
SPECS/texlive.spec

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save