]> git.pld-linux.org Git - packages/gfontview.git/blob - gfontview.spec
04f77b418ce6c207a5eb52cc17fb09c8074083d5
[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}-0_3_2.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:  XFree86-devel
15 BuildRequires:  xpm-devel
16 BuildRequires:  gtk+-devel >= 1.2.6
17 BuildRequires:  glib-devel >= 1.2.6
18 BuildRequires:  t1lib-devel >= 1.0.0
19 BuildRequires:  freetype-devel
20 BuildRequires:  libungif-devel
21 BuildRequires:  libstdc++-devel
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 TrueType).
28 It displays all fonts present in the chosen directory in a list, with a preview
29 of the font in the main window. It also allows you to display a particular
30 character or string of a font in an own window, this character or string can be
31 antialiased (smoothed). The displayed character or string can be saved in GIF
32 format. You can also print a sample of a font.  The program can also print a
33 longer text in the selected font, thus allowing you to get an impresion of how
34 a text 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 podgl±d
39 ka¿dej z nich zarówno w g³ównym oknie programu, jak i w oddzielnych oknach.
40 Posiada mo¿liwo¶æ wyg³adzania czcionek (antialiasing), drukowania przyk³adów
41 kroju w postaci pojedyñczych znaków, linii jak równie¿ wiêkszych partii
42 tekstu, co pozwala na zorientowanie siê, jak wygl±da ca³a strona z
43 wykorzystaniem wybranej czcionki. Program umo¿liwia tak¿e zapisanie znaku
44 lub fragmentu tekstu 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.112007 seconds and 3 git commands to generate.