]> git.pld-linux.org Git - packages/gfontview.git/blob - gfontview.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/gfontview.git] / gfontview.spec
1 #
2 # Conditional build:
3 %bcond_with     gnome1  # with GNOME (1.x) support
4 #
5 Summary:        A font viewer for Type 1 and TrueType fonts
6 Summary(pl.UTF-8):      Przeglądarka czcionek Type 1 i TrueType
7 Name:           gfontview
8 Version:        0.5.0
9 Release:        7
10 License:        GPL
11 Group:          X11/Applications
12 Source0:        http://dl.sourceforge.net/gfontview/%{name}-%{version}.tar.gz
13 # Source0-md5:  f06e0e9d67f7d8b3af251fa593e83eeb
14 Source1:        %{name}.desktop
15 Patch0:         %{name}-autoconf.patch
16 Patch1:         %{name}-gcc33.patch
17 Patch2:         %{name}-po.patch
18 Patch3:         %{name}-gcc4.patch
19 URL:            http://gfontview.sourceforge.net/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  freetype1-devel
23 BuildRequires:  gettext-devel
24 BuildRequires:  giflib-devel
25 %{?with_gnome1:BuildRequires:   gnome-libs-devel}
26 BuildRequires:  gtk+-devel >= 1.2.6
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  t1lib-devel >= 1.0.0
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 gfontview is a Font Viewer for outline fonts (PostScript Type 1 and
33 TrueType). It displays all fonts present in the chosen directory in a
34 list, with a preview of the font in the main window. It also allows
35 you to display a particular character or string of a font in an own
36 window, this character or string can be antialiased (smoothed). The
37 displayed character or string can be saved in GIF format. You can also
38 print a sample of a font. The program can also print a longer text in
39 the selected font, thus allowing you to get an impresion of how a text
40 page looks like in the selected font.
41
42 %description -l pl.UTF-8
43 gfontview jest przeglądarką czcionek (PostScrpit Type 1 i TrueType).
44 Wyświetla listę wszystkich czcionek z wybranego katalogu i umożliwia
45 podgląd każdej z nich zarówno w głównym oknie programu, jak i w
46 oddzielnych oknach. Posiada możliwość wygładzania czcionek
47 (antialiasing), drukowania przykładów kroju w postaci pojedynczych
48 znaków, linii jak również większych partii tekstu, co pozwala na
49 zorientowanie się, jak wygląda cała strona z wykorzystaniem wybranej
50 czcionki. Program umożliwia także zapisanie znaku lub fragmentu tekstu
51 w formacie GIF.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p1
58 %patch3 -p1
59
60 %build
61 %{__gettextize}
62 %{__aclocal} -I .
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 CXXFLAGS="%{rpmcflags} -I/usr/include/freetype \
67         -fno-rtti -fno-exceptions -fno-implicit-templates"
68 %configure \
69         SPOOLER="/usr/bin/lpr" \
70         --with-fontdir=/usr/share/fonts/Type1 \
71         %{!?with_gnome1:--disable-gnome}
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_datadir}/misc,%{_desktopdir}}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 install gfontviewrc $RPM_BUILD_ROOT%{_datadir}/misc/gfontviewrc
83 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
84
85 %find_lang %{name}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc README ChangeLog AUTHORS NEWS TODO
93 %attr(755,root,root) %{_bindir}/gfontview
94 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/misc/gfontviewrc
95 %{_desktopdir}/gfontview.desktop
96 %{_pixmapsdir}/gfontview.png
This page took 0.07328 seconds and 3 git commands to generate.