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