-Summary: GTKstereograph, an advanced stereogram generator
-Name: GTKstereograph
-%define version 0.11a
-Version: %{version}
-Release: 1
-Group: Applications/Graphics
-Copyright: GPL
-Source: GTKstereograph-%{version}.tar.gz
-URL: http://home2.ecore.net/januszewski/linux/stereograph.html
+Summary: GTKstereograph, an advanced stereogram generator
+Summary(pl): GTKstereograph, zaawansowany generator stereogramów
+Name: GTKstereograph
+Version: 0.17a
+Release: 2
+License: GPL
+Group: X11/Applications/Graphics
+Source0: http://download.sourceforge.net/stereograph/%{name}-%{version}.tar.gz
+Patch0: %{name}-am_lt.patch
+URL: http://stereograph.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gtk+-devel >= 1.2.0
+BuildRequires: libpng >= 1.0.8
+BuildRequires: libtool
+BuildRequires: zlib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
%description
-GTKstereograph is a graphical user interface for the current stereograph
-renderer.
-Stereograph is a stereogram generator. In detail it is a single image
-stereogram (SIS) generator. That's a program that produces twodimensional
-images that seem to be threedimensional (surely you know the famous works of
-"The Magic Eye", Stereograph produces the same output). You do _not_ need
-any pair of colored spectacles to regard them - everyone can learn it.
+GTKstereograph is a graphical user interface for the current
+stereograph renderer. Stereograph is a stereogram generator. In detail
+it is a single image stereogram (SIS) generator. That's a program that
+produces twodimensional images that seem to be threedimensional
+(surely you know the famous works of "The Magic Eye", Stereograph
+produces the same output). You do _not_ need any pair of colored
+spectacles to regard them - everyone can learn it.
Authors:
---------
- Fabian Januszewski <fabian.linux@januszewski.de>
+- -------- Fabian Januszewski <fabian.linux@januszewski.de>
+
+%description -l pl
+GTKstereograph jest graficznym interfejsem u¿ytkownika do aktualnego
+generatora stereogramów. Stereograph jest generatorem stereogramów.
+Dok³adniej jest to generator pojedynczych obrazów stereogramowych (SIS).
+Program ten produkuje dwuwymiarowe obrazy, które wydaj± siê byæ
+trójwymiarowe (surely you know the famous works of "The Magic Eye",
+Stereograph produces the same output). NIE potrzebujesz wcale pary
+ró¿nokolorowych okularów, aby to zobaczyæ - (prawie) ka¿dy mo¿e siê
+tego nauczyæ.
+
+Autorzy:
+- -------- Fabian Januszewski <fabian.linux@januszewski.de>
%prep
-%setup
+%setup -q
+%patch0 -p1
%build
-./configure
-make
+rm -f missing
+%{__libtoolize}
+aclocal
+%{__automake}
+%{__autoconf}
+%configure
+%{__make}
%install
-make install
+rm -rf $RPM_BUILD_ROOT
-%files
-/usr/local/bin/GTKstereograph
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
-%doc AUTHORS COPYING ChangeLog NEWS README
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/GTKstereograph