]> git.pld-linux.org Git - packages/gfontview.git/blob - gfontview.spec
887ca23bfc532ae9a688e3a31ecb3b524b807ee1
[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.5.0
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications
8 Source0:        ftp://download.sourceforge.net/pub/sourceforge/gfontview/%{name}-%{version}.tar.gz
9 Source1:        %{name}.desktop
10 Patch0:         %{name}-autoconf.patch
11 Icon:           gfontview.xpm
12 URL:            http://gfontview.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  freetype1-devel
16 BuildRequires:  gettext-devel
17 BuildRequires:  gtk+-devel >= 1.2.6
18 BuildRequires:  libungif-devel
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  t1lib-devel >= 1.0.0
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _prefix         /usr/X11R6
24
25 %description
26 gfontview is a Font Viewer for outline fonts (PostScript Type 1 and
27 TrueType). It displays all fonts present in the chosen directory in a
28 list, with a preview of the font in the main window. It also allows
29 you to display a particular character or string of a font in an own
30 window, this character or string can be antialiased (smoothed). The
31 displayed character or string can be saved in GIF format. You can also
32 print a sample of a font. The program can also print a longer text in
33 the selected font, thus allowing you to get an impresion of how a text
34 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
40 oddzielnych oknach. Posiada mo¿liwo¶æ wyg³adzania czcionek
41 (antialiasing), drukowania przyk³adów kroju w postaci pojedyñczych
42 znaków, linii jak równie¿ wiêkszych partii tekstu, co pozwala na
43 zorientowanie siê, jak wygl±da ca³a strona z wykorzystaniem wybranej
44 czcionki. Program umo¿liwia tak¿e zapisanie znaku lub fragmentu tekstu
45 w formacie GIF.
46
47 %prep
48 %setup -q
49 %patch -p1
50
51 %build
52 gettextize --copy --force
53 aclocal -I .
54 automake -a -c -f
55 autoconf
56 autoheader
57 CXXFLAGS="%{rpmcflags} -I/usr/include/freetype \
58         -fno-rtti -fno-exceptions -fno-implicit-templates"
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 %find_lang %{name}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files -f %{name}.lang
81 %defattr(644,root,root,755)
82 %doc {README,ChangeLog,AUTHORS,NEWS,TODO}.gz
83 %attr(755,root,root) %{_bindir}/gfontview
84
85 %config(noreplace) %verify(not size mtime md5) %{_datadir}/misc/gfontviewrc
86 %{_applnkdir}/Utilities/gfontview.desktop
This page took 0.047218 seconds and 2 git commands to generate.