Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > 511a0ce37943ef540eb13d953ccf2b55 > files > 15

fonts-ttf-dustismo-2.0-5mdk.src.rpm

Summary:	A small collection of Truetype fonts (GPL)
Name:		fonts-ttf-dustismo
Version:	2.0
Release:	5mdk

Source0:	Dustismo.tgz
Source1:	Abogada_loco.zip
Source2:	balker.zip
Source3:	Domestic_Manners.zip
Source4:	El_Abogado_Loco.zip
Source5:	flatline.zip
Source6:	ItWasntMe.zip
Source7:	Junkyard.zip
Source8:	MarkedFool.zip
Source9:	PenguinAttack.zip
Source10:	Progenisis.zip
Source11:	Swift.zip
Source12:	Wargames.zip
Source13:	Winks.zip
License:	GPL
Group:		System/Fonts/True type
URL:		http://www.dustismo.com
BuildRoot:	%_tmppath/%name-%version-%release-root
BuildArch:	noarch
Obsoletes:	dustismo-fonts
Provides:	dustismo-fonts
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
Requires(post):		chkfontpath
Requires(postun):	chkfontpath
Requires(post): fontconfig
Requires(postun): fontconfig

%description 
A small collection of Truetype fonts released under the GPL.
One of the fonts included is Dustismo. The aim is to create a standard,
high quality, all purpose, sans serif font.

%prep
%setup -q -c %name-%version
unzip -o %SOURCE2 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE3 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE4 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE5 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE6 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE7 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE8 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE9 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE10 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE11 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE12 -d $RPM_BUILD_DIR/%name-%version
unzip -o %SOURCE13 -d $RPM_BUILD_DIR/%name-%version

mv "It wasn't me.ttf" It_wasn_t_me.ttf

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/Dustismo

cp -f *.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/Dustismo

{
    pushd $RPM_BUILD_ROOT/usr/share/fonts/Dustismo
    ttmkfdir > fonts.dir
    cp fonts.dir fonts.scale
    popd
}

%post
[ -x %_sbindir/chkfontpath ] && %{_sbindir}/chkfontpath -q -a %{_datadir}/fonts/Dustismo
[ -x %_bindir/fc-cache ] && %{_bindir}/fc-cache 

%postun
if [ "$1" = "0" ]; then
  [ -x %_sbindir/chkfontpath ] && %{_sbindir}/chkfontpath -q -r %{_datadir}/fonts/Dustismo
  [ -x %_bindir/fc-cache ] && %{_bindir}/fc-cache 
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%doc installation.txt license.txt
%dir %_datadir/fonts/Dustismo
%config(noreplace) %{_datadir}/fonts/Dustismo/fonts.dir
%config(noreplace) %{_datadir}/fonts/Dustismo/fonts.scale
%{_datadir}/fonts/Dustismo/*.ttf

%changelog
* Wed Feb 08 2006 Frederic Crozat <fcrozat@mandriva.com> 2.0-5mdk
- Don't package fontconfig cache file
- Fix prereq

* Thu Apr 28 2005 Marcel Pol <mpol@mandriva.org> 2.0-4mdk
- add more fonts

* Thu Apr 28 2005 Marcel Pol <mpol@mandriva.org> 2.0-3mdk
- rebuild and smal spec cleanup

* Fri Apr 30 2004 Marcel Pol <mpol@mandrake.org> 2.0-2mdk
- rebuild for bot happiness

* Sun Mar 23 2003 Marcel Pol <mpol@gmx.net> 2.0-1mdk
- 2.0

* Wed Feb 19 2003 Marcel Pol <mpol@gmx.net> 1.92-1mdk
- changed name of the rpm
- use real versioning: 1.92

* Fri Jan 24 2003 Marcel Pol <mpol@gmx.net> 20030111-1mdk
- initial mandrake rpm
- run fc-cache in %post, so fc-list can see them
- can't seem to get the bold and italic fonts right...