File LinuxLibertine.spec of Package LinuxLibertine
#
# spec file for package LinuxLibertine (Version 4.7.5)
#
# Copyright (c) 2010 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: LinuxLibertine
%define fontdir /usr/share/fonts/truetype
License: GPLv2+
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Version: 4.7.5
Release: 1
Summary: Free Serif Fonts
Source: http://surfnet.dl.sourceforge.net/sourceforge/linuxlibertine/LinLibertineFont-%{version}-2.tar.bz2
Url: http://linuxlibertine.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Free serif fonts from the LinuxLibertine project. These might be useful
when exchanging documents using Times fonts.
Authors:
--------
PhilTheLion@users.sourceforge.net
%prep
%setup -q -n LinLibertine
chmod a-x *.txt
%build
%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
for font in Fonts/*.otf; do
mv -v $font $(basename $font | sed -e "{s/-[0-9].\+$//gi}").otf
done
install -m 0644 *.otf $RPM_BUILD_ROOT%{fontdir}
%clean
rm -rf %{buildroot}
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-,root,root,755)
%doc Bugs.txt ChangeLog.txt GPL.txt LICENCE.txt OFL.txt Readme.txt Readme-TEX.txt
%{fontdir}
%changelog