Name: gallery
Version: 3.0
-Release: 0
-Copyright: GPL
-Source: http://malekith.cnc.pl/bin/%{name}-%{version}.tar.gz
-BuildRoot: /tmp/%{name}-%{version}-root
-Summary: SVGALib JPEG/GIF/PNG/... picture viewer.
+Release: 1
+License: GPL
+Source0: http://malekith.cnc.pl/bin/%{name}-%{version}.tar.gz
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Summary: SVGALib JPEG/GIF/PNG/... picture viewer.
Summary(pl): Bazowana na SVGALibie przegl±darka do obrazków
Group: Applications/Graphics
+Group(de): Applikationen/Grafik
Group(pl): Aplikacje/Grafika
URL: http://malekith.topnet.pl/
BuildRequires: svgalib-devel
BuildRequires: aalib-devel
+Vendor: Micha³ Moskal <malekith@pld.org.pl>
%description
-Picture viewer for several gfx formats (PNG, GIF, JPEG, TIFF, PCX, XPM,
-BMP, P?M, IFF-{IL,P}BM and othres). No X supported nor needed.
-Feauters include scaling, quantizing, sliedeshows and a *lot* of useless
-options. Even mouse is supported, it can be used for scaling and
-scrolling. Gallery can also display images in text-mode, using aalib.
+Picture viewer for several gfx formats (PNG, GIF, JPEG, TIFF, PCX,
+XPM, BMP, P?M, IFF-{IL,P}BM and othres). No X supported nor needed.
+Feauters include scaling, quantizing, sliedeshows and a *lot* of
+useless options. Even mouse is supported, it can be used for scaling
+and scrolling. Gallery can also display images in text-mode, using
+aalib.
%description -l pl
-Przegl±darka do obrazków w sporej liczbie formatów formatach (PNG, GIF,
-JPEG, TIFF, PCX, XPM, BMP, P?M, IFF-{IL,P}BM i inne). ¯adnych Xów. Obrazki
-mo¿na skalowaæ, kwantyzowaæ, robiæ slideshowy i wiele innych bezsensownych
-rzeczy. Gallery obs³uguje mysz. Mo¿e równie¿ wy¶wietlaæ obrazki
-w trybie textowym u¿ywaj±c aaliba.
+Przegl±darka do obrazków w sporej liczbie formatów formatach (PNG,
+GIF, JPEG, TIFF, PCX, XPM, BMP, P?M, IFF-{IL,P}BM i inne). ¯adnych
+Xów. Obrazki mo¿na skalowaæ, kwantyzowaæ, robiæ slideshowy i wiele
+innych bezsensownych rzeczy. Gallery obs³uguje mysz. Mo¿e równie¿
+wy¶wietlaæ obrazki w trybie textowym u¿ywaj±c aaliba.
%prep
-%setup
+%setup -q
%build
%configure --without-debug --with-gziped-man --with-polish-man --with-aalib
-make
+%{__make}
%install
install -d $RPM_BUILD_ROOT%{_libdir}/gallery
install lib/* $RPM_BUILD_ROOT%{_libdir}/gallery
rm -f $RPM_BUILD_ROOT%{_libdir}/gallery/Makefile*
-make prefix=$RPM_BUILD_ROOT/usr -C po install
+%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} -C po install
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(644, root, root, 755)
+%defattr(644,root,root,755)
%attr(755, root, root) %{_bindir}/*
%{_mandir}/man1/*
%dir %{_libdir}/gallery
%attr(755, root, root) %{_libdir}/gallery/gallery-bugreport
%attr(755, root, root) %{_libdir}/gallery/lsd
-%lang(pl) /usr/share/locale/pl/LC_MESSAGES/gallery.mo
+%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/gallery.mo
%lang(pl) %{_mandir}/pl/man1/*
%doc doc/{AUTHORS,BETA-TESTERS,BUGS,CREDITS,INSTALL,NEWS,README,TODO}.gz