]> git.pld-linux.org Git - packages/gfontview.git/blob - gfontview.spec
b0dbf78e9da68edf155b8aa3a35c5e968d231609
[packages/gfontview.git] / gfontview.spec
1 Summary:        A font viewer for Type 1 and TrueType fonts
2 Summary(pl):    Przegl±darka czcionek Type 1 i TrueType
3 Name:           gfontview
4 Version:        0.3.1
5 Release:        1
6 Copyright:      GPL
7 Group:          X11/Utilities
8 Group(pl):      X11/Narzêdzia
9 Source0:        http://www.geocities.com/SiliconValley/Foothills/1458/%{name}-0_3_1.tgz
10 Source1:        gfontview.desktop
11 Patch:          gfontview-config.patch
12 Icon:           gfontview.xpm
13 URL:            http://www.geocities.com/SiliconValley/Foothills/1458/index.html
14 BuildRequires:  XFree86-devel
15 BuildRequires:  xpm-devel
16 BuildRequires:  gtk+-devel >= 1.2.0
17 BuildRequires:  glib-devel >= 1.2.0
18 BuildRequires:  t1lib-devel
19 BuildRequires:  freetype-devel
20 BuildRequires:  libungif-devel
21 BuildRequires:  libstdc++-devel
22 BuildRoot:      /tmp/%{name}-%{version}-root
23
24 %define         _prefix         /usr/X11R6
25 %define         _applnkdir      %{_datadir}/applnk
26
27 %description
28 gfontview is a Font Viewer for outline fonts (PostScript Type 1 and TrueType). 
29 It displays all fonts present in the chosen directory in a list, with 
30 a preview of the font in the main window. It also allows you to display 
31 a particular character or string of a font in an own window, this character 
32 or string can be antialiased (smoothed). The displayed character or string 
33 can be saved in GIF format. You can also print a sample of a font. 
34 The program can also print a longer text in the selected font, thus allowing 
35 you to get an impresion of how a text page looks like in the selected font.
36
37
38 %description -l pl
39 gfontview jest przegl±dark± czcionek (PostScrpit Type 1 i TrueType).
40 Wy¶wietla listê wszystkich czcionek z wybranego katalogu i umo¿liwia
41 podgl±d ka¿dej z nich zarówno w g³ównym oknie programu, jak i w oddzielnych
42 oknach. Posiada mo¿liwo¶æ wyg³adzania czcionek (antialiasing), drukowania
43 przyk³adów kroju w postaci pojedyñczych znaków, linii jak równie¿ wiêkszych
44 partii tekstu, co pozwala na zorientowanie siê, jak wygl±da ca³a strona 
45 z wykorzystaniem wybranej czcionki. Program umo¿liwia tak¿e zapisanie
46 znaku lub fragmentu tekstu w formacie GIF.
47
48 %prep
49 %setup -q
50 %patch -p0
51
52 %build
53 CXXFLAGS="$RPM_OPT_FLAGS"; LDFLAGS="-s"
54 export LDFLAGS CXXFLAGS
55 %configure \
56         --with-libungif \
57         --with-fontdir=/usr/share/fonts/Type1
58 make
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_datadir}/misc,%{_applnkdir}/Utilities}
63
64 make install DESTDIR=$RPM_BUILD_ROOT
65
66 install .gfontviewrc $RPM_BUILD_ROOT%{_datadir}/misc/gfontviewrc
67 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
68
69 gzip -9nf README ChangeLog AUTHORS NEWS TODO
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc {README,ChangeLog,AUTHORS,NEWS,TODO}.gz
77 %attr(755,root,root) %{_bindir}/gfontview
78
79 %config(noreplace) %verify(not size mtime md5) %{_datadir}/misc/gfontviewrc
80 %{_applnkdir}/Utilities/gfontview.desktop
This page took 0.160715 seconds and 3 git commands to generate.