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