069bbeb
%global fontname ns-bola
069bbeb
%global fontconf 64-%{fontname}.conf
069bbeb
069bbeb
069bbeb
Name:           %{fontname}-fonts
069bbeb
Version:        20080203
88331e1
Release:        7%{?dist}
069bbeb
Summary:        Chunky Geometric Fonts
069bbeb
069bbeb
Group:          User Interface/X
069bbeb
License:        OFL
069bbeb
URL:            http://www.nuevostudio.com/project/bola/
069bbeb
Source0:        http://www.nuevostudio.com/files/downloads/bola.zip
069bbeb
Source1:        %{name}-fontconfig.conf
069bbeb
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
069bbeb
069bbeb
BuildArch:      noarch
069bbeb
BuildRequires:  fontpackages-devel
069bbeb
Requires:       fontpackages-filesystem
069bbeb
069bbeb
%description
069bbeb
A chunky geometric font like many others out there!
069bbeb
It supports diacritics in addition to the basic latin set of characters.
069bbeb
The font was created by Pablo Caro.
069bbeb
069bbeb
%prep
069bbeb
%setup -q -c -T
069bbeb
unzip -j -L -q %{SOURCE0}
069bbeb
chmod 0644 *.txt
069bbeb
for txt in *.txt ; do
069bbeb
   fold -s $txt > $txt.new
069bbeb
   sed -i 's/\r//' $txt.new
069bbeb
   touch -r $txt $txt.new
069bbeb
   mv $txt.new $txt
069bbeb
done
069bbeb
069bbeb
069bbeb
069bbeb
%build
069bbeb
069bbeb
069bbeb
%install
069bbeb
rm -fr %{buildroot}
069bbeb
069bbeb
install -m 0755 -d %{buildroot}%{_fontdir}
069bbeb
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
069bbeb
069bbeb
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
069bbeb
                   %{buildroot}%{_fontconfig_confdir}
069bbeb
069bbeb
install -m 0644 -p %{SOURCE1} \
069bbeb
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
069bbeb
ln -s %{_fontconfig_templatedir}/%{fontconf} \
069bbeb
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
069bbeb
069bbeb
069bbeb
%clean
069bbeb
rm -fr %{buildroot}
069bbeb
069bbeb
069bbeb
%_font_pkg -f %{fontconf} *.ttf
069bbeb
069bbeb
%doc
069bbeb
069bbeb
069bbeb
%changelog
88331e1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080203-7
88331e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
88331e1
ac1b0b9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080203-6
ac1b0b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ac1b0b9
211e7b0
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080203-5
211e7b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
211e7b0
d70648b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080203-4
d70648b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d70648b
63cde35
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080203-3
63cde35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
63cde35
069bbeb
* Tue Nov 10 2009 TK009 <john.brown009@gmail.com>
069bbeb
- 20080203-2
069bbeb
- correction to spec
069bbeb
069bbeb
* Sat Nov 07 2009 TK009 <john.brown009@gmail.com>
069bbeb
- 20080203-1
069bbeb
- initial packaging
069bbeb