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