File mgopen-fonts.spec of Package mgopen-fonts
# norootforbuild
Name: mgopen-fonts
%if %suse_version > 910
BuildRequires: xorg-x11-devel
%else
BuildRequires: XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/truetype
%else
%define fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: Other License(s), see package, Other uncritical OpenSource License
Group: System/X11/Fonts
Provides: scalable-font-el
Autoreqprov: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(el)
Version: 0.20080903
Release: 1
URL: http://www.ellak.gr/fonts/mgopen/
Source0: MgOpen.tar.bz2
# The file README contains the license and was created with
# w3m -dump http://www.ellak.gr/fonts/mgopen/ > README
Source1: README
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Free High-Quality Greek Fonts
%description
Free high-quality Greek fonts created by Magenta Ltd.
Authors:
--------
MAGENTA Ltd. <fonts@ellak.gr>
%prep
%setup -c %{name} -n %{name}
cp $RPM_SOURCE_DIR/README .
%build
%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{fontdir}/
%clean
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc README
%dir %{fontdir}
%{fontdir}/*.ttf
%changelog -n mgopen-fonts