File xirod.spec of Package xirod

Name: xirod
Summary: The free xirod font by larabie fonts
Version: 0.2
Release: 0.mh.0
License: Other
Group: System/X11/Fonts
Source0: xirod.tar.bz2
BuildRoot: %{_tmppath}/build-root-%{name}
#Packager: Mathias Homann <admin@eregion.de>
Distribution: SuSE 11.1
Prefix: /usr/share/fonts/truetype
Url: http://www.myfont.de/fonts/infos/3673-Xirod.html
BuildArch: noarch



%description
(C) 2004 Ray Larabie. Freeware - see attached text file. Visit www.larabiefonts.com then www.typodermic.com

%prep
#rm -rf $RPM_BUILD_ROOT 
#mkdir $RPM_BUILD_ROOT
echo nothing to do here

%setup -q -n %{name}
echo nothing to do here

%build
echo nothing to do here
#rm mtsorts_.ttf

%install
mkdir -p $RPM_BUILD_ROOT/%{prefix}
cp  *.ttf $RPM_BUILD_ROOT/%{prefix}


cd $RPM_BUILD_ROOT

#find .%{prefix} -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
echo $RPM_BUILD_ROOT/%{prefix} > $RPM_BUILD_DIR/file.list.%{name}.dirs
find .%{prefix} -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files
find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/file.list.%{name}
rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp
rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs

%files -f ../file.list.%{name}
%defattr(-,root,root,0755)
%doc readme.html
%dir /usr/share/fonts/truetype

%changelog
* Thu Jan 01 2009 - Mathias Homann <admin@eregion.de>
- import into build tree