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