]> git.pld-linux.org Git - packages/gallery.git/blob - gallery.spec
Updated to 3.1.
[packages/gallery.git] / gallery.spec
1 Name:           gallery
2 Version:        3.1
3 Release:        1
4 License:        GPL
5 Source0:        ftp://ftp.pld.org.pl/software/trash/%{name}-%{version}.tar.gz
6 Summary:        SVGALib JPEG/GIF/PNG/... picture viewer.
7 Summary(pl):    Bazowana na SVGALibie przegl±darka do obrazków
8 Group:          Applications/Graphics
9 Group(de):      Applikationen/Grafik
10 Group(pl):      Aplikacje/Grafika
11 Vendor:         Micha³ Moskal <malekith@pld.org.pl>
12 URL:            http://malekith.topnet.pl/
13 BuildRequires:  sed
14 BuildRequires:  svgalib-devel
15 BuildRequires:  aalib-devel
16 BuildRequires:  libpng-devel
17 BuildRequires:  libtiff-devel
18 BuildRequires:  libstdc++-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Picture viewer for several gfx formats (PNG, GIF, JPEG, TIFF, PCX,
23 XPM, BMP, P?M, IFF-{IL,P}BM and othres). No X supported nor needed.
24 Feauters include scaling, quantizing, sliedeshows and a *lot* of
25 useless options. Even mouse is supported, it can be used for scaling
26 and scrolling. Gallery can also display images in text-mode, using
27 aalib.
28
29 %description -l pl
30 Przegl±darka do obrazków w sporej liczbie formatów formatach (PNG,
31 GIF, JPEG, TIFF, PCX, XPM, BMP, P?M, IFF-{IL,P}BM i inne). ¯adnych
32 Xów. Obrazki mo¿na skalowaæ, kwantyzowaæ, robiæ slideshowy i wiele
33 innych bezsensownych rzeczy. Gallery obs³uguje mysz. Mo¿e równie¿
34 wy¶wietlaæ obrazki w trybie textowym u¿ywaj±c aaliba.
35
36 %prep
37 %setup -q
38
39 %build
40 %configure \
41         --without-debug \
42         --without-gziped-man \
43         --with-polish-man \
44         --with-aalib
45 %{__make}
46
47 %install
48
49 rm -rf $RPM_BUILD_ROOT
50
51 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,pl/man1}
52 install -d $RPM_BUILD_ROOT%{_bindir}
53 install -d $RPM_BUILD_ROOT%{_libdir}/gallery
54
55 install doc/gallery.man         $RPM_BUILD_ROOT%{_mandir}/man1/gallery.1
56 install doc/gallery-pl.man      $RPM_BUILD_ROOT%{_mandir}/pl/man1/gallery.1
57 install -m 755 src/gallery      $RPM_BUILD_ROOT%{_bindir}
58 install lib/*                   $RPM_BUILD_ROOT%{_libdir}/gallery
59 %{__make}                       prefix=$RPM_BUILD_ROOT%{_prefix} -C po install
60
61 rm -f $RPM_BUILD_ROOT%{_libdir}/gallery/Makefile*
62
63 gzip -9nf doc/{AUTHORS,BETA-TESTERS,BUGS,CREDITS,INSTALL,NEWS} \
64           doc/{README,README.pl,TODO}
65
66 %find_lang %{name}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files -f %{name}.lang
72 %defattr(644,root,root,755)
73 %doc doc/{AUTHORS,BETA-TESTERS,BUGS,CREDITS,INSTALL,NEWS,README,TODO}.gz
74 %doc %lang(pl) doc/README.pl.gz
75
76 %attr(755, root, root) %{_bindir}/*
77 %{_mandir}/man1/*
78 %dir %{_libdir}/gallery
79 %{_libdir}/gallery/message.jpg
80 %attr(755, root, root) %{_libdir}/gallery/config-lynx
81 %attr(755, root, root) %{_libdir}/gallery/gallery-bugreport
82 %attr(755, root, root) %{_libdir}/gallery/lsd
This page took 0.070796 seconds and 4 git commands to generate.