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