Sophie

Sophie

distrib > Mageia > 8 > i586 > by-pkgid > 0acf06e4db0ad2667d89404608038789 > files > 2

cmsuper-0.3.3-18.mga8.src.rpm

%define	texmfdir	%{_datadir}/texmf

Summary:	The CM-Super font set
Name:		cmsuper
Version:	0.3.3
Release:	%mkrel 18
License:	GPL
Group:		Publishing
Source0:	ftp://ftp.dante.de/pub/tex/fonts/ps-type1/cm-super.tar.bz2
BuildArch:	noarch
Requires(post): texlive
Requires(preun): texlive
Requires(postun): texlive
Requires:	dvips >= 3.0
Requires:	dvipdfm >= 3.0
Requires:	ghostscript

%description
The CM-Super package contains Type 1 fonts converted from METAFONT
fonts and covers entire EC/TC, ECC and LH fonts (Computer Modern font
families). All European and Cyrillic writings are covered. Each Type 1
font program contains ALL glyphs from the following standard LaTeX
font encodings: T1, TS1, T2A, T2B, T2C, X2, and also Adobe
StandardEncoding (585 glyphs per non-SC font and 468 glyphs per SC
font), and could be reencoded to any of these encodings using standard
dvips or pdftex facilities (the corresponding support files are also
included).

%prep
%setup -q -n cm-super

%build
gzip -d afm/*.afm.gz

%install
mkdir -p $RPM_BUILD_ROOT%{texmfdir}/fonts/{afm,type1}/public/cm-super \
	$RPM_BUILD_ROOT%{texmfdir}/fonts/enc/dvips/cm-super \
	$RPM_BUILD_ROOT%{texmfdir}/fonts/map/dvips/cm-super \
	$RPM_BUILD_ROOT%{_bindir}
 
install -m 644 pfb/*.pfb \
	$RPM_BUILD_ROOT%{texmfdir}/fonts/type1/public/cm-super

install -m 644 afm/*.afm \
	$RPM_BUILD_ROOT%{texmfdir}/fonts/afm/public/cm-super

install -m 644 dvips/*.enc $RPM_BUILD_ROOT%{texmfdir}/fonts/enc/dvips/cm-super
install -m 644 dvips/*.map $RPM_BUILD_ROOT%{texmfdir}/fonts/map/dvips/cm-super

cat > $RPM_BUILD_ROOT%{_bindir}/addfonts-cmsuper <<EOF
#!/bin/sh
if [ -x %_bindir/updmap-sys ]; then
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t1.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t1.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-ts1.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t2a.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t2b.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t2c.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-x2.map
fi
EOF

cat > $RPM_BUILD_ROOT%{_bindir}/removefonts-cmsuper <<EOF
#!/bin/sh
%_bindir/updmap-sys --quiet --disable cm-super-t1.map
%_bindir/updmap-sys --quiet --disable cm-super-t1.map
%_bindir/updmap-sys --quiet --disable cm-super-ts1.map
%_bindir/updmap-sys --quiet --disable cm-super-t2a.map
%_bindir/updmap-sys --quiet --disable cm-super-t2b.map
%_bindir/updmap-sys --quiet --disable cm-super-t2c.map
%_bindir/updmap-sys --quiet --disable cm-super-x2.map
EOF

%post
[ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
if [ -x %_bindir/updmap-sys ]; then
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t1.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t1.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-ts1.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t2a.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t2b.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-t2c.map
	%_bindir/updmap-sys --quiet --enable Map=cm-super-x2.map
fi
exit 0

%preun
if [ "$1" = "0" ]; then
	%_bindir/updmap-sys --quiet --disable cm-super-t1.map
	%_bindir/updmap-sys --quiet --disable cm-super-t1.map
	%_bindir/updmap-sys --quiet --disable cm-super-ts1.map
	%_bindir/updmap-sys --quiet --disable cm-super-t2a.map
	%_bindir/updmap-sys --quiet --disable cm-super-t2b.map
	%_bindir/updmap-sys --quiet --disable cm-super-t2c.map
	%_bindir/updmap-sys --quiet --disable cm-super-x2.map
fi
exit 0

%postun
[ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
exit 0

%triggerin -- texlive
if [ "$2" -ge 1 ]; then
	if [ -x %_bindir/updmap-sys ]; then
		%_bindir/updmap-sys --quiet
	fi
fi
exit 0

%triggerpostun -- texlive
if [ "$2" -ge 1 ]; then
	if [ -x %_bindir/updmap-sys ]; then
		%_bindir/updmap-sys --quiet
	fi
fi
exit 0

%files
%doc ChangeLog COPYING FAQ INSTALL README TODO
%attr(755,root,root) %{_bindir}/*
%{texmfdir}/fonts/enc/dvips/cm-super/*
%{texmfdir}/fonts/map/dvips/cm-super/*
%{texmfdir}/fonts/afm/public/cm-super/*.afm
%{texmfdir}/fonts/type1/public/cm-super/*.pfb




%changelog
* Tue Feb 11 2020 umeabot <umeabot> 0.3.3-18.mga8
+ Revision: 1489446
- Mageia 8 Mass Rebuild

* Tue Sep 18 2018 umeabot <umeabot> 0.3.3-17.mga7
+ Revision: 1260495
- Mageia 7 Mass Rebuild

* Mon Feb 08 2016 umeabot <umeabot> 0.3.3-16.mga6
+ Revision: 946814
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 0.3.3-15.mga5
+ Revision: 739317
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.3.3-14.mga5
+ Revision: 678451
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.3.3-13.mga4
+ Revision: 503417
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 0.3.3-12.mga3
+ Revision: 347951
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Mar 04 2011 boklm <boklm> 0.3.3-11.mga1
+ Revision: 64133
- imported package cmsuper


* Fri Mar  4 2011 Nicolas Vigier <boklm@mars-attacks.org> 0.3.3-11
- Update for texlive. Rename package to cmsuper.

* Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.3.3-10mdv2009.0
+ Revision: 225674
- rebuild

* Wed Feb 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.3.3-9mdv2008.1
+ Revision: 162905
- rebuild because of missing i586 package
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Wed Aug 29 2007 Oden Eriksson <oeriksson@mandriva.com> 0.3.3-8mdv2008.0
+ Revision: 74248
- fix prereq-use


* Sun Feb 18 2007 Giuseppe Ghibò <ghibo@mandriva.com> 0.3.3-8mdv2007.0
+ Revision: 122326
- Rebuilt.

* Sun Feb 18 2007 Giuseppe Ghibò <ghibo@mandriva.com> 0.3.3-7mdv2007.1
+ Revision: 122301
- Import tetex-cmsuper

* Fri Sep 15 2006 Giuseppe Ghibò <ghibo@mandriva.com> 0.3.3-7mdv2007.0
- force exit 0 to triggers.

* Fri Sep 08 2006 Giuseppe Ghibò <ghibo@mandriva.com> 0.3.3-6mdv2007.0
- Added trigger for rebuilding the updmap when the package tetex is updated.

* Fri Feb 18 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.3.3-5mdk
- Fixed bug #13756.

* Wed Feb 16 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.3.3-4mdk
- Changed .map|.enc path for tetex-3.0.

* Sat Feb 28 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.3.3-3mdk
- Added tetex in PreReq.