packages: grub2-fonts-unifont/grub2-fonts-unifont.spec (NEW) - initial rele...

w.kier w.kier at pld-linux.org
Mon Nov 16 23:48:36 CET 2009


Author: w.kier                       Date: Mon Nov 16 22:48:36 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial release
- 4 sizes for different resolutions

---- Files affected:
packages/grub2-fonts-unifont:
   grub2-fonts-unifont.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/grub2-fonts-unifont/grub2-fonts-unifont.spec
diff -u /dev/null packages/grub2-fonts-unifont/grub2-fonts-unifont.spec:1.1
--- /dev/null	Mon Nov 16 23:48:36 2009
+++ packages/grub2-fonts-unifont/grub2-fonts-unifont.spec	Mon Nov 16 23:48:31 2009
@@ -0,0 +1,69 @@
+# TODO - find and test other unicode fonts for grub2.
+
+%define	 _enable_debug_packages 0
+%define _snap	20080907
+%define	_sizes	{12 18 24 32}
+%define _fontname unifont
+%define _destdir  /grub2/fonts
+Summary:	Unifont font for grub2 gfxterm mode
+Summary(pl.UTF-8):	Czcinka unifont do trybu graficznego bootloadera grub2
+Name:		grub2-fonts-%{_fontname}
+Version:	5.1
+Release:	1
+License:	GNU GPL v.2
+Group:		Fonts
+Source0:	http://unifoundry.com/%{_fontname}-%{version}.%{_snap}.ttf.gz
+# Source0-md5:	708a693e340902779ec9ad13acae279a	
+Source1:	simple_convert
+# Source1-md5:	16c93d8d30db1fab7c2f204eec29d25c
+URL:		http://unifoundry.com/unifont.html
+BuildRequires:	grub2
+BuildRequires:	freetype1-tools-ttf2bdf
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildArch:	noarch
+
+%description
+Unifont font for grub2 gfxterm mode.
+
+%description -l pl.UTF-8
+Czcinka unifont do trybu graficznego bootloadera grub2.
+
+%prep
+%setup -cT %{name}-%{version}
+cp %{SOURCE0} ./
+cp %{SOURCE1} ./
+gzip -d %{_fontname}-%{version}.%{_snap}.ttf.gz
+mv %{_fontname}-%{version}.%{_snap}.ttf %{_fontname}.ttf
+
+%build
+for i in %{_sizes}; do
+# /usr/bin/ttf2bdf -v -r 75 -p $i -o %{_fontname}$i.bdf -t %{_fontname} %{_fontname}.ttf
+#/sbin/grub-mkfont --output=%{_fontname}$i.pf2 %{_fontname}$i.bdf
+sh simple_convert $i %{_fontname}
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}%{_destdir}
+#gzip -9 *.pf2
+cp *.pf2* $RPM_BUILD_ROOT%{_datadir}%{_destdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+echo "Heare you are (%{_sizes})pt/75dpi fonts.
+Copy one somewhere under /boot location and set in grub.cfg.
+To get other sizes rebuild package setting desired _sizes."
+
+#%post -l pl.UTF-8
+#echo "To są czcionki o wielkościach  (%{_sizes})pt/75dpi.
+#Skopiuj którąś do katalogu /boot i wskaż w grub.cfg.
+#Żeby uzyskać inne wielkości przebuduj pakiet zmieniając parametr _sizes."
+
+%files
+%defattr(644,root,root,755)
+%{_datadir}%{_destdir}
+
+
================================================================


More information about the pld-cvs-commit mailing list