Summary: FSViewer is a NeXT FileViewer lookalike for Window Maker
-Summary(pl): FSViewer jest przegl±dark± plików dla WindowMakera
+Summary(pl): FSViewer jest przegl±dark± plików dla Window Makera
Name: FSViewer
-Version: 0.2.3
-Release: 4
+Version: 0.2.5
+Release: 2
License: GPL
Group: X11/Window Managers/Tools
-# newer (0.2.4), unofficial? versions:
-#Source0: http://www.bayernline.de/~gscholz/linux/fsviewer/%{name}.app-%{version}.tar.gz
-Source0: http://www.blackraven.cx/%{name}.app-%{version}.tar.gz
-# Source0-md5: 2e89029686126f9d519a67e0716ab5ff
-Source1: http://www.blackraven.cx/icons.tar.gz
-# Source1-md5: f07c9c1da6e87b7017ba5288a8fd5312
+Source0: http://www.bayernline.de/~gscholz/linux/fsviewer/%{name}.app-%{version}.tar.gz
+# Source0-md5: d1f849d1f955c35b18201860e485d332
Source2: %{name}.desktop
-Patch0: %{name}-ac_am15.patch
-Patch1: %{name}-WINGs.patch
-Patch2: %{name}-debian.patch
-Patch3: %{name}-no_libnsl.patch
+# for WindowMaker 0.81.0 (not released yet? so for future use)
+#Patch0: http://www.bayernline.de/~gscholz/linux/fsviewer/FSViewer.app-0.2.5-WM-0.81.0.patch.gz
+Patch1: %{name}-no_libnsl.patch
+#Patch1: %{name}-ac_am15.patch
+#Patch2: %{name}-WINGs.patch
+#Patch3: %{name}-debian.patch
URL: http://www.bayernline.de/~gscholz/linux/fsviewer/
-BuildRequires: WindowMaker-devel >= 0.62.1
+BuildRequires: WindowMaker-devel >= 0.70.0
BuildRequires: XFree86-devel
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
-BuildRequires: libPropList-devel >= 0.9.1
+BuildRequires: gettext-devel
+# the rest is required for libwraster (but not all libs from WindowMaker-devel):
+BuildRequires: Hermes-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng >= 1.0.8
BuildRequires: libtiff-devel
BuildRequires: libungif-devel
-Requires: WindowMaker >= 0.61.0
+# the end of libwraster deps
+Requires: WindowMaker >= 0.70.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# well, WindowMaker-like, not gnustep*-like - because:
+# - it requires WindowMaker, not gnustep-*
+# - it doesn't follow gnustep-* hierarchy inside *.app
+%define gsappsdir %{_libdir}/GNUstep/Apps
%description
FSViewer is a NeXT FileViewer lookalike for Window Maker. Viewing is
the WINGs library.
%description -l pl
-FSViewer jest przegl±dark± plików dla WindowMakera wygl±daj±c± jak
+FSViewer jest przegl±dark± plików dla Window Makera wygl±daj±c± jak
NeXT FileViewer.
%prep
-%setup -q -a1 -n FSViewer.app-%{version}
-%patch0 -p1
+%setup -q -n FSViewer.app-%{version}
+#%patch0 -p1
%patch1 -p1
-%patch2 -p1
-%patch3 -p1
%build
-rm -f missing
+%{__gettextize}
%{__aclocal}
%{__autoconf}
+%{__autoheader}
%{__automake}
-%configure
+%configure \
+ --with-appspath=%{gsappsdir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_prefix}/GNUstep/Apps/FSViewer.app/{xpm,tiff} \
- $RPM_BUILD_ROOT%{_applnkdir}/Utilities
+install -d $RPM_BUILD_ROOT%{_desktopdir}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install defs/chdef $RPM_BUILD_ROOT%{_prefix}/GNUstep/Apps/FSViewer.app
-install xpm/*.xpm $RPM_BUILD_ROOT%{_prefix}/GNUstep/Apps/FSViewer.app/xpm
-install tiff/* $RPM_BUILD_ROOT%{_prefix}/GNUstep/Apps/FSViewer.app/tiff
-install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
+install defs/chdef $RPM_BUILD_ROOT%{gsappsdir}/FSViewer.app
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
-%dir %{_prefix}/GNUstep/Apps/FSViewer.app
-%attr(755,root,root) %{_prefix}/GNUstep/Apps/FSViewer.app/FSViewer
-%attr(755,root,root) %{_prefix}/GNUstep/Apps/FSViewer.app/chdef
-%{_prefix}/GNUstep/Apps/FSViewer.app/MagicFiles
-%{_prefix}/GNUstep/Apps/FSViewer.app/xpm
-%{_prefix}/GNUstep/Apps/FSViewer.app/tiff
-
-%{_applnkdir}/Utilities/FSViewer.desktop
+%dir %{gsappsdir}/FSViewer.app
+%attr(755,root,root) %{gsappsdir}/FSViewer.app/FSViewer
+%attr(755,root,root) %{gsappsdir}/FSViewer.app/chdef
+%{gsappsdir}/FSViewer.app/MagicFiles
+%{gsappsdir}/FSViewer.app/xpm
+%{gsappsdir}/FSViewer.app/tiff
+%{_desktopdir}/FSViewer.desktop