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