-Summary: ASCII-Art image browser and animation player
-Summary(pl): Przegl±darka obrazków i animacji w formacie ASCII
-Name: aview
-Version: 1.2
-Release: 2
-Copyright: GPL
-Group: Applications/Graphics
-Group(pl): Aplikacje/Grafika
-Source: ftp://ftp.ta.jcu.cz/pub/aa/%{name}-%{version}.tar.gz
-BuildPrereq: aalib-devel
-BuildPrereq: gpm-devel
-BuildPrereq: ncurses-devel
-BuildPrereq: XFree86-libs
-BuildRoot: /tmp/%{name}-%{version}-root
+Summary: ASCII-Art image browser and animation player
+Summary(pl.UTF-8): Przeglądarka obrazków i animacji jako ASCII Art
+Name: aview
+Version: 1.3.0rc1
+Release: 6
+License: GPL v2
+Group: Applications/Graphics
+Source0: http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz
+# Source0-md5: 093f298e7787591e229b59d039c72f4d
+Patch0: asciiview-lame_bashizm.patch
+URL: http://aa-project.sourceforge.net/aview/
+BuildRequires: aalib-devel
+BuildRequires: autoconf
+BuildRequires: gpm-devel
+BuildRequires: ncurses-devel >= 5.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
aview is an high quality ascii-art image(pnm) browser and
-animation(fli/flc) player usefull especially with lynx browser.
+animation(fli/flc) player useful especially with lynx browser.
Supports: stdio, curses, slang, X11, gpm, linux-console.
Features: Save into many formats (html, text, ansi, more/less etc...),
-Contrast, Bright, Gamma control,Image zooming/unzooming, Three dithering
-modes, Hidden "bonus" features :), Inversion, Support for bright, dim,
-inverse attributes/extended character set
+Contrast, Bright, Gamma control,Image zooming/unzooming, Three
+dithering modes, Hidden "bonus" features :), Inversion, Support for
+bright, dim, inverse attributes/extended character set
-%description -l pl
-aview jest wysokiej jako¶ci przegl±dark± obrazków (pnm) i animacji (fli/flc)
-w formacie ASCII, u¿yteczn± zw³aszcza w po³±czeniu z przegl±dark± lynx.
+%description -l pl.UTF-8
+aview jest wysokiej jakości przeglądarką obrazków (pnm) i animacji
+(fli/flc) w formacie ASCII, użyteczną zwłaszcza w połączeniu z
+przeglądarką lynx.
Wspiera: stdio, curses, slang, X11, gpm, linux-console.
-Opcje: zapisywanie w wielu formatach (html, txt, ansi, more/less, etc...),
-mo¿liwo¶æ ustawienia kontrastu, jasno¶ci i nasycenia, zoom, trzy poziomy
-ditheringu, itp. oraz ukryte opcje "bonusowe" :)
+Opcje: zapisywanie w wielu formatach (html, txt, ansi, more/less,
+etc...), możliwość ustawienia kontrastu, jasności i nasycenia, zoom,
+trzy poziomy ditheringu, itp. oraz ukryte opcje "bonusowe" :)
%prep
-%setup -q
+%setup -q -n %{name}-1.3.0
+%patch0 -p0
%build
+%{__autoconf}
%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
-make install \
- bindir=$RPM_BUILD_ROOT%{_bindir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf README ANNOUNCE README.flip ChangeLog TODO
+# groff link instead of full copy
+echo ".so aview.1" > $RPM_BUILD_ROOT%{_mandir}/man1/asciiview.1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc {README,ANNOUNCE,README.flip,ChangeLog,TODO}.gz
+%doc ANNOUNCE AUTHORS ChangeLog NEWS README README.flip TODO
%attr(755,root,root) %{_bindir}/*
-
-%changelog
-* Mon Jun 21 1999 Piotr Czerwiñski <pius@pld.org.pl>
- [1.2-2]
-- spec file rewritten for PLD use,
-- based on spec file from unknown source.
+%{_mandir}/man1/*