diff --git a/.cvsignore b/.cvsignore index e69de29..71a8848 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +beteckna-0.3.tar.gz diff --git a/beteckna-fonts-fontconfig.conf b/beteckna-fonts-fontconfig.conf new file mode 100644 index 0000000..1b8bf86 --- /dev/null +++ b/beteckna-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + fantasy + + Beteckna + + + + Beteckna + + fantasy + + + diff --git a/beteckna-fonts-lower-case-fontconfig.conf b/beteckna-fonts-lower-case-fontconfig.conf new file mode 100644 index 0000000..e1a26d2 --- /dev/null +++ b/beteckna-fonts-lower-case-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + fantasy + + Beteckna Lower Case + + + + Beteckna Lower Case + + fantasy + + + diff --git a/beteckna-fonts-small-caps-fontconfig.conf b/beteckna-fonts-small-caps-fontconfig.conf new file mode 100644 index 0000000..3e4b888 --- /dev/null +++ b/beteckna-fonts-small-caps-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + fantasy + + Beteckna Small Caps + + + + Beteckna Small Caps + + fantasy + + + diff --git a/beteckna-fonts.spec b/beteckna-fonts.spec new file mode 100644 index 0000000..5e10d67 --- /dev/null +++ b/beteckna-fonts.spec @@ -0,0 +1,125 @@ +%global fontname beteckna +%global common_desc \ +This font is available from beteckna.se, it is a geometric sans-serif \ +typeface inspired by Paul Renners popular type, Futura. It was drawn by \ +Johan Mattsson in Maj 2007. The font is free, licensed under terms of the \ +GNU GPL. This version supports English and a few nordic languages. \ +Special character ✈ ( ✈ ) depicts two cats. + +%global fontconf 60-%{fontname}-fonts + +Name: %{fontname}-fonts +Version: 0.3 +Release: 4%{?dist} +Summary: Beteckna sans-serif fonts + +Group: User Interface/X +License: GPLv2 +URL: http://gnu.ethz.ch/linuks.mine.nu/beteckna/ +Source0: http://gnu.ethz.ch/linuks.mine.nu/beteckna/beteckna-0.3.tar.gz +Source1: %{name}-fontconfig.conf +Source2: %{name}-lower-case-fontconfig.conf +Source3: %{name}-small-caps-fontconfig.conf +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildArch: noarch +BuildRequires: fontforge, fontpackages-devel + +%description +%common_desc + +%_font_pkg -f %{fontconf}.conf Beteckna.otf + +%package common +Summary: Common files of %{name} +Requires: fontpackages-filesystem + +%description common +%common_desc + +This package consists of files used by other %{name} packages. + + +# 1 Lower Case +%package -n %{fontname}-lower-case-fonts +Summary: Beteckna lower case sfd fonts +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-lower-case-fonts +%common_desc + +These are lower case Beteckna Fonts. + +%_font_pkg -f %{fontconf}-lower-case.conf -n lower-case BetecknaLowerCase*.otf + + +# 1 Small Caps +%package -n %{fontname}-small-caps-fonts +Summary: Beteckna small caps sfd fonts +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-small-caps-fonts +%common_desc + +These are small caps Beteckna Fonts. + +%_font_pkg -n small-caps -f %{fontconf}-small-caps.conf BetecknaSmallCaps.otf + +%prep +%setup -q -n beteckna-0.3 + +fold -s CHANGELOG > CHANGELOG.new +sed -i 's/\r//' CHANGELOG.new +touch -r CHANGELOG CHANGELOG.new +mv CHANGELOG.new CHANGELOG + + +%build +fontforge -lang=ff -script "-" Beteckna*.sfd << EOF +i = 1 +while ( i < \$argc ) + Open (\$argv[i], 1) + otfile = \$fontname + ".otf" + Generate(otfile,"otf") + Close() + i++ +endloop +EOF + +%install +rm -fr %{buildroot} + +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir} + + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf +install -m 0644 -p %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-small-caps.conf +install -m 0644 -p %{SOURCE3} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-lower-case.conf + +for fconf in %{fontconf}.conf %{fontconf}-lower-case.conf %{fontconf}-small-caps.conf ; +do + ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf +done + +%clean +rm -rf %{buildroot} + +%files common +%defattr(0644,root,root,0755) +%doc AUTHORS LICENSE CHANGELOG readme.html + +%changelog +* Tue Mar 17 2009 Ankur Sinha +- 0.3-4 +- Rebuilt and tested with mock in accordance with #476720 +* Mon Feb 16 2009 Ankur Sinha +- 0.3-3 +- Rebuilt using Multi spec + + diff --git a/import.log b/import.log new file mode 100644 index 0000000..156feae --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +beteckna-fonts-0_3-4_fc10:HEAD:beteckna-fonts-0.3-4.fc10.src.rpm:1237704399 diff --git a/sources b/sources index e69de29..4a68765 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c2580a2271ffe186c079b6aa89e57899 beteckna-0.3.tar.gz