Blob Blame History Raw
%define culmus_version 0.101

Name: fonts-hebrew-fancy
Version: 0.101
Release: 2%{?dist}
License: GPL
Source0: http://culmus.sourceforge.net/fancy/comix.tar.gz
Source1: http://culmus.sourceforge.net/fancy/dorian.tar.gz
Source2: http://culmus.sourceforge.net/fancy/gan.tar.gz
Source3: http://culmus.sourceforge.net/fancy/gladia.tar.gz
Source4: http://culmus.sourceforge.net/fancy/ktav-yad.tar.gz
Source5: http://culmus.sourceforge.net/fancy/ozrad.tar.gz
Source6: http://culmus.sourceforge.net/fancy/anka.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Group: User Interface/X
Summary: Fancy fonts for Hebrew
Summary(he): גופנים מקושטים לעברית
URL: http://culmus.sourceforge.net/fancy
 
%description
The fonts-hebrew-fancy package contains fancy (non-standard) Hebrew fonts 
from the Culmus project by Maxim Iorsh.

%description -l he
החבילה fonts-hebrew-fancy כוללת גופנים מקושטים (לא סטנדרטיים) לעברית,
מפרויקט קולמוס של מקסים יורש.

%prep
%setup -c
%setup -T -D -a 1
%setup -T -D -a 2
%setup -T -D -a 3
%setup -T -D -a 4
%setup -T -D -a 5
%setup -T -D -a 6

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/hebrew-fancy
cp *.pfa *.afm $RPM_BUILD_ROOT%{_datadir}/fonts/hebrew-fancy
# %%ghost the fonts.cache-1 file
touch $RPM_BUILD_ROOT%{_datadir}/fonts/hebrew-fancy/fonts.cache-{1,2}

%clean
rm -rf $RPM_BUILD_ROOT

%post
fc-cache %{_datadir}/fonts/hebrew-fancy

%postun
if [ "$1" = "0" ]; then
	fc-cache %{_datadir}/fonts
fi

%files
%defattr(-,root,root,-)
%doc GNU-GPL
%dir %{_datadir}/fonts/hebrew-fancy
%{_datadir}/fonts/hebrew-fancy/*.pfa
%{_datadir}/fonts/hebrew-fancy/*.afm
%ghost %verify(not md5 size mtime) %{_datadir}/fonts/hebrew-fancy/fonts.cache-1
%ghost %verify(not md5 size mtime) %{_datadir}/fonts/hebrew-fancy/fonts.cache-2

%changelog
* Tue Nov 22 2005 Dan Kenigsberg <danken@cs.technion.ac.il> - 0.101-2
- Clean things according to the review of mpeters AT mac.com
* Tue Nov 22 2005 Dan Kenigsberg <danken@cs.technion.ac.il> - 0.101-1
- Take fonts-hebrew.spec and change it for the fancy fonts.