6a3bc11
%global	fontname	beteckna
6a3bc11
%global common_desc \
6a3bc11
This font is available from beteckna.se, it is a geometric sans-serif \
6a3bc11
typeface inspired by Paul Renners popular type, Futura. It was drawn by \
6a3bc11
Johan Mattsson in Maj 2007. The font is free, licensed under terms of the \
6a3bc11
GNU GPL. This version supports English and a few nordic languages. \
6a3bc11
Special character ✈ ( ✈ ) depicts two cats.
6a3bc11
6a3bc11
%global fontconf	60-%{fontname}-fonts
6a3bc11
6a3bc11
Name:		%{fontname}-fonts
6a3bc11
Version:	0.3
4c83106
Release:	6%{?dist}
6a3bc11
Summary:	Beteckna sans-serif fonts
6a3bc11
6a3bc11
Group:		User Interface/X
6a3bc11
License:	GPLv2
6a3bc11
URL:		http://gnu.ethz.ch/linuks.mine.nu/beteckna/
6a3bc11
Source0:	http://gnu.ethz.ch/linuks.mine.nu/beteckna/beteckna-0.3.tar.gz
6a3bc11
Source1:	%{name}-fontconfig.conf
6a3bc11
Source2:	%{name}-lower-case-fontconfig.conf
6a3bc11
Source3:	%{name}-small-caps-fontconfig.conf
6a3bc11
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
6a3bc11
6a3bc11
BuildArch:	noarch
6a3bc11
BuildRequires:	fontforge, fontpackages-devel
4c83106
Requires:	%{name}-common = %{version}-%{release}
6a3bc11
6a3bc11
%description
6a3bc11
%common_desc
6a3bc11
6a3bc11
%_font_pkg -f %{fontconf}.conf Beteckna.otf
6a3bc11
6a3bc11
%package	common
6a3bc11
Summary:	Common files of %{name}
6a3bc11
Requires:	fontpackages-filesystem
6a3bc11
6a3bc11
%description common
6a3bc11
%common_desc
6a3bc11
6a3bc11
This package consists of files used by other %{name} packages.
6a3bc11
6a3bc11
6a3bc11
# 1 Lower Case
6a3bc11
%package -n	%{fontname}-lower-case-fonts
6a3bc11
Summary:	Beteckna lower case sfd fonts
6a3bc11
Requires:	%{name}-common = %{version}-%{release}
6a3bc11
6a3bc11
%description -n	%{fontname}-lower-case-fonts
6a3bc11
%common_desc
6a3bc11
6a3bc11
These are lower case Beteckna Fonts.
6a3bc11
6a3bc11
%_font_pkg -f  %{fontconf}-lower-case.conf -n lower-case BetecknaLowerCase*.otf
6a3bc11
6a3bc11
6a3bc11
# 1 Small Caps
6a3bc11
%package -n	%{fontname}-small-caps-fonts
6a3bc11
Summary:	Beteckna small caps sfd fonts
6a3bc11
Requires:	%{name}-common = %{version}-%{release}
6a3bc11
6a3bc11
%description -n	%{fontname}-small-caps-fonts
6a3bc11
%common_desc
6a3bc11
6a3bc11
These are small caps Beteckna Fonts.
6a3bc11
6a3bc11
%_font_pkg -n small-caps -f  %{fontconf}-small-caps.conf BetecknaSmallCaps.otf
6a3bc11
6a3bc11
%prep
6a3bc11
%setup -q -n beteckna-0.3
6a3bc11
6a3bc11
fold -s CHANGELOG > CHANGELOG.new
6a3bc11
sed -i 's/\r//' CHANGELOG.new
6a3bc11
touch -r CHANGELOG CHANGELOG.new
6a3bc11
mv CHANGELOG.new CHANGELOG
6a3bc11
6a3bc11
6a3bc11
%build
6a3bc11
fontforge -lang=ff -script "-" Beteckna*.sfd << EOF
6a3bc11
i = 1
6a3bc11
while ( i < \$argc )
6a3bc11
	Open (\$argv[i], 1)
6a3bc11
	otfile = \$fontname + ".otf"
6a3bc11
	Generate(otfile,"otf")
6a3bc11
	Close()
6a3bc11
	i++
6a3bc11
endloop
6a3bc11
EOF
6a3bc11
6a3bc11
%install
6a3bc11
rm -fr %{buildroot}
6a3bc11
6a3bc11
install -m 0755 -d %{buildroot}%{_fontdir}
6a3bc11
install -m 0644 -p *.otf %{buildroot}%{_fontdir}
6a3bc11
6a3bc11
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
6a3bc11
6a3bc11
6a3bc11
install -m 0644 -p %{SOURCE1} \
6a3bc11
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
6a3bc11
install -m 0644 -p %{SOURCE2} \
6a3bc11
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-small-caps.conf
6a3bc11
install -m 0644 -p %{SOURCE3} \
6a3bc11
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-lower-case.conf
6a3bc11
6a3bc11
for fconf in %{fontconf}.conf %{fontconf}-lower-case.conf %{fontconf}-small-caps.conf ; 
6a3bc11
do
6a3bc11
	ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
6a3bc11
done
6a3bc11
6a3bc11
%clean
6a3bc11
rm -rf %{buildroot}
6a3bc11
6a3bc11
%files common
6a3bc11
%defattr(0644,root,root,0755)
6a3bc11
%doc AUTHORS LICENSE CHANGELOG readme.html
6a3bc11
6a3bc11
%changelog
4c83106
* Thu Jul 08 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3-6
4c83106
- Rebuilt in accordance with new licensing guidelines
4c83106
38ff3d6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5
38ff3d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
38ff3d6
6a3bc11
* Tue Mar 17 2009 Ankur Sinha <ankursinha AT fedoraproject.org>
6a3bc11
- 0.3-4
6a3bc11
- Rebuilt and tested with mock in accordance with #476720
6a3bc11
* Mon Feb 16 2009 Ankur Sinha <ankursinha AT fedoraproject DOT org>
6a3bc11
- 0.3-3
6a3bc11
- Rebuilt using Multi spec
6a3bc11
6a3bc11