# # Conditional build: # _without_gnome - without GNOME support # Summary: A font viewer for Type 1 and TrueType fonts Summary(pl): Przeglądarka czcionek Type 1 i TrueType Name: gfontview Version: 0.5.0 Release: 3 License: GPL Group: X11/Applications Source0: http://dl.sourceforge.net/gfontview/%{name}-%{version}.tar.gz Source1: %{name}.desktop Patch0: %{name}-autoconf.patch Icon: gfontview.xpm URL: http://gfontview.sourceforge.net/ BuildRequires: autoconf BuildRequires: automake BuildRequires: freetype1-devel BuildRequires: gettext-devel %{!?_without_gnome:BuildRequires: gnome-libs-devel} BuildRequires: gtk+-devel >= 1.2.6 BuildRequires: libungif-devel BuildRequires: libstdc++-devel BuildRequires: t1lib-devel >= 1.0.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description gfontview is a Font Viewer for outline fonts (PostScript Type 1 and TrueType). It displays all fonts present in the chosen directory in a list, with a preview of the font in the main window. It also allows you to display a particular character or string of a font in an own window, this character or string can be antialiased (smoothed). The displayed character or string can be saved in GIF format. You can also print a sample of a font. The program can also print a longer text in the selected font, thus allowing you to get an impresion of how a text page looks like in the selected font. %description -l pl gfontview jest przeglądarką czcionek (PostScrpit Type 1 i TrueType). Wyświetla listę wszystkich czcionek z wybranego katalogu i umożliwia podgląd każdej z nich zarówno w głównym oknie programu, jak i w oddzielnych oknach. Posiada możliwość wygładzania czcionek (antialiasing), drukowania przykładów kroju w postaci pojedyńczych znaków, linii jak również większych partii tekstu, co pozwala na zorientowanie się, jak wygląda cała strona z wykorzystaniem wybranej czcionki. Program umożliwia także zapisanie znaku lub fragmentu tekstu w formacie GIF. %prep %setup -q %patch -p1 %build rm -f missing %{__gettextize} %{__aclocal} -I . %{__automake} %{__autoconf} %{__autoheader} CXXFLAGS="%{rpmcflags} -I/usr/include/freetype \ -fno-rtti -fno-exceptions -fno-implicit-templates" %configure \ --with-libungif \ --with-fontdir=/usr/share/fonts/Type1 \ %{?_without_gnome:--disable-gnome} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_datadir}/misc,%{_applnkdir}/Utilities} %{__make} install DESTDIR=$RPM_BUILD_ROOT install gfontviewrc $RPM_BUILD_ROOT%{_datadir}/misc/gfontviewrc install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc README ChangeLog AUTHORS NEWS TODO %attr(755,root,root) %{_bindir}/gfontview %config(noreplace) %verify(not size mtime md5) %{_datadir}/misc/gfontviewrc %{_applnkdir}/Utilities/gfontview.desktop %{_pixmapsdir}/gfontview.png