]> git.pld-linux.org Git - packages/gfontview.git/blob - gfontview.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/gfontview.git] / gfontview.spec
1 #
2 # Conditional build:
3 # _without_gnome - without GNOME support
4 #
5 Summary:        A font viewer for Type 1 and TrueType fonts
6 Summary(pl):    Przegl±darka czcionek Type 1 i TrueType
7 Name:           gfontview
8 Version:        0.5.0
9 Release:        3
10 License:        GPL
11 Group:          X11/Applications
12 Source0:        http://dl.sourceforge.net/gfontview/%{name}-%{version}.tar.gz
13 Source1:        %{name}.desktop
14 Patch0:         %{name}-autoconf.patch
15 Icon:           gfontview.xpm
16 URL:            http://gfontview.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  freetype1-devel
20 BuildRequires:  gettext-devel
21 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
22 BuildRequires:  gtk+-devel >= 1.2.6
23 BuildRequires:  libungif-devel
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  t1lib-devel >= 1.0.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28
29 %description
30 gfontview is a Font Viewer for outline fonts (PostScript Type 1 and
31 TrueType). It displays all fonts present in the chosen directory in a
32 list, with a preview of the font in the main window. It also allows
33 you to display a particular character or string of a font in an own
34 window, this character or string can be antialiased (smoothed). The
35 displayed character or string can be saved in GIF format. You can also
36 print a sample of a font. The program can also print a longer text in
37 the selected font, thus allowing you to get an impresion of how a text
38 page looks like in the selected font.
39
40 %description -l pl
41 gfontview jest przegl±dark± czcionek (PostScrpit Type 1 i TrueType).
42 Wy¶wietla listê wszystkich czcionek z wybranego katalogu i umo¿liwia
43 podgl±d ka¿dej z nich zarówno w g³ównym oknie programu, jak i w
44 oddzielnych oknach. Posiada mo¿liwo¶æ wyg³adzania czcionek
45 (antialiasing), drukowania przyk³adów kroju w postaci pojedyñczych
46 znaków, linii jak równie¿ wiêkszych partii tekstu, co pozwala na
47 zorientowanie siê, jak wygl±da ca³a strona z wykorzystaniem wybranej
48 czcionki. Program umo¿liwia tak¿e zapisanie znaku lub fragmentu tekstu
49 w formacie GIF.
50
51 %prep
52 %setup -q
53 %patch -p1
54
55 %build
56 rm -f missing
57 %{__gettextize}
58 %{__aclocal} -I .
59 %{__automake}
60 %{__autoconf}
61 %{__autoheader}
62 CXXFLAGS="%{rpmcflags} -I/usr/include/freetype \
63         -fno-rtti -fno-exceptions -fno-implicit-templates"
64 %configure \
65         --with-libungif \
66         --with-fontdir=/usr/share/fonts/Type1 \
67         %{?_without_gnome:--disable-gnome}
68
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_datadir}/misc,%{_applnkdir}/Utilities}
74
75 %{__make} install DESTDIR=$RPM_BUILD_ROOT
76
77 install gfontviewrc $RPM_BUILD_ROOT%{_datadir}/misc/gfontviewrc
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
79
80 %find_lang %{name}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc README ChangeLog AUTHORS NEWS TODO
88 %attr(755,root,root) %{_bindir}/gfontview
89 %config(noreplace) %verify(not size mtime md5) %{_datadir}/misc/gfontviewrc
90 %{_applnkdir}/Utilities/gfontview.desktop
91 %{_pixmapsdir}/gfontview.png
This page took 0.182156 seconds and 3 git commands to generate.