]> git.pld-linux.org Git - packages/gfontview.git/blob - gfontview.spec
fba459382b199d8fe78c513c81a688f6eaf258fa
[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.4.1
5 Release:        1
6 License:        GPL
7 Group:          X11/Utilities
8 Group(pl):      X11/Narzêdzia
9 Source0:        ftp://download.sourceforge.net/pub/sourceforge/gfontview/%{name}-%{version}.tar.gz
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:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  freetype-devel
17 BuildRequires:  gettext-devel
18 BuildRequires:  gtk+-devel >= 1.2.6
19 BuildRequires:  libungif-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  t1lib-devel >= 1.0.0
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
28 TrueType). It displays all fonts present in the chosen directory in a
29 list, with a preview of the font in the main window. It also allows
30 you to display a particular character or string of a font in an own
31 window, this character or string can be antialiased (smoothed). The
32 displayed character or string can be saved in GIF format. You can also
33 print a sample of a font. The program can also print a longer text in
34 the selected font, thus allowing you to get an impresion of how a text
35 page looks like in the selected font.
36
37 %description -l pl
38 gfontview jest przegl±dark± czcionek (PostScrpit Type 1 i TrueType).
39 Wy¶wietla listê wszystkich czcionek z wybranego katalogu i umo¿liwia
40 podgl±d ka¿dej z nich zarówno w g³ównym oknie programu, jak i w
41 oddzielnych oknach. Posiada mo¿liwo¶æ wyg³adzania czcionek
42 (antialiasing), drukowania przyk³adów kroju w postaci pojedyñczych
43 znaków, linii jak równie¿ wiêkszych partii tekstu, co pozwala na
44 zorientowanie siê, jak wygl±da ca³a strona z wykorzystaniem wybranej
45 czcionki. Program umo¿liwia tak¿e zapisanie znaku lub fragmentu tekstu
46 w formacie GIF.
47
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 LDFLAGS="-s"
60 CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/freetype -fno-rtti -fno-exceptions -fno-implicit-templates"
61 export LDFLAGS CXXFLAGS
62 %configure \
63         --with-libungif \
64         --with-fontdir=/usr/share/fonts/Type1
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_datadir}/misc,%{_applnkdir}/Utilities}
70
71 %{__make} install DESTDIR=$RPM_BUILD_ROOT
72
73 install .gfontviewrc $RPM_BUILD_ROOT%{_datadir}/misc/gfontviewrc
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
75
76 gzip -9nf README ChangeLog AUTHORS NEWS TODO
77
78 %find_lang %{name}
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc {README,ChangeLog,AUTHORS,NEWS,TODO}.gz
86 %attr(755,root,root) %{_bindir}/gfontview
87
88 %config(noreplace) %verify(not size mtime md5) %{_datadir}/misc/gfontviewrc
89 %{_applnkdir}/Utilities/gfontview.desktop
This page took 0.299491 seconds and 2 git commands to generate.