4508f74
%define archivename     MgOpen
4508f74
%define fontdir         %{_datadir}/fonts/mgopen
4508f74
%define upstream_date   20050515
4508f74
4508f74
Name:      mgopen-fonts
4508f74
Version:   0.%{upstream_date}
a8a0d6d
Release:   5%{?dist}
4508f74
Summary:   Truetype greek fonts
4508f74
Group:     User Interface/X
4508f74
License:   Redistributable, with restrictions
4508f74
URL:       http://www.ellak.gr/fonts/mgopen/
4508f74
Source0:   %{archivename}-%{upstream_date}.tar.gz
4508f74
# Upstream tarball is not versioned http://www.ellak.gr/fonts/mgopen/files/%{archivename}.tar.gz
4508f74
Source1:   %{archivename}-%{upstream_date}-doc.tar.gz
4508f74
# Tarball of the documentation on the site http://www.ellak.gr/fonts/mgopen/
4508f74
# The LICENCE file is an excerpt from the html page
4508f74
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
4508f74
BuildArch: noarch
b446807
Conflicts: fontconfig < 2.3.93
4508f74
4508f74
4508f74
%description
4508f74
The MgOpen fonts are a font family that includes Latin and Greek glyphs.
4508f74
The fonts have been released under a liberal license, similar to the
4508f74
license covering the Bitstream Vera fonts.
4508f74
4508f74
4508f74
%prep
4508f74
%setup -q -c -a1 -n %{archivename}-%{version}
4508f74
4508f74
%build
4508f74
4508f74
%install
4508f74
/bin/rm -rf $RPM_BUILD_ROOT
4508f74
install -d -m 0755 $RPM_BUILD_ROOT%{fontdir}
4508f74
install -m 0644 *.ttf  $RPM_BUILD_ROOT%{fontdir}
4508f74
4508f74
4508f74
%clean
4508f74
/bin/rm -rf $RPM_BUILD_ROOT
4508f74
4508f74
4508f74
%post
4508f74
if [ -x %{_bindir}/fc-cache ]; then 
4508f74
  %{_bindir}/fc-cache %{_datadir}/fonts
4508f74
fi
4508f74
4508f74
%postun
4508f74
if [ "$1" = "0" ]; then
4508f74
  if [ -x %{_bindir}/fc-cache ]; then 
4508f74
    %{_bindir}/fc-cache %{_datadir}/fonts
4508f74
  fi
4508f74
fi
4508f74
4508f74
4508f74
%files
4508f74
%defattr(0644,root,root,0755)
4508f74
%doc LICENCE mgopen.html _files/
4508f74
%dir %{fontdir}
4508f74
%{fontdir}/*.ttf
4508f74
4508f74
4508f74
%changelog
a8a0d6d
* Tue Aug 29 2006 Sarantis Paskalis <paskalis@di.uoa.gr> 0.20050515-5
a8a0d6d
- Rebuild for FC6.
a8a0d6d
9d0fccf
* Mon Feb 20 2006 Sarantis Paskalis <paskalis@di.uoa.gr> 0.20050515-4
9d0fccf
- Rebuild for FC5.
9d0fccf
b446807
* Sat Jan 28 2006 Sarantis Paskalis <paskalis@di.uoa.gr> 0.20050515-3
b446807
- remove ghosting of %{fontdir}/fonts.cache-{1,2} for new fontconfig
b446807
5f84f06
* Mon Oct 31 2005 Sarantis Paskalis <paskalis@di.uoa.gr> 0.20050515-2
5f84f06
- add %{fontdir}/fonts.cache-2 to %ghost files.
5f84f06
4508f74
* Thu Jul  6 2005 Sarantis Paskalis <paskalis@di.uoa.gr> 0.20050515-1
4508f74
- Fix spelling in the description.  Import it to Fedora Extras.
4508f74
4508f74
* Tue Jun 14 2005 Sarantis Paskalis <paskalis@di.uoa.gr>
4508f74
- Use date-versioned sources
4508f74
4508f74
* Wed May 25 2005 Sarantis Paskalis <paskalis@di.uoa.gr>
4508f74
- Initial package spec (based on bitstream-vera-fonts)