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