File mgopen-fonts.spec of Package mgopen-fonts

#
# spec file for package mgopen-fonts (Version 0.20050518)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# 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:        Bistream Vera-like. Freely redistributable. Change name on modification
Group:          System/X11/Fonts
Provides:       scalable-font-el
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(el)
Version:        0.20050518
Release:        181
Url:            http://www.ellak.gr/fonts/mgopen/index.en
Source0:        http://www.ellak.gr/fonts/mgopen/files/MgOpen.tar.bz2
# The file README contains the license and was created with
# w3m -dump http://www.ellak.gr/fonts/mgopen/index.en > README
Source1:        README
BuildArch:      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
rm -rf $RPM_BUILD_ROOT

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc README
%dir %{fontdir}
%{fontdir}/*.ttf

%changelog
* Wed Aug 09 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
  (openSUSE 10.2 will use X11R7).
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(el)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed May 18 2005 mfabian@suse.de
- new package, version 0.20050518
openSUSE Build Service is sponsored by