Summary: Previewer for GNUstep
+Summary(pl): Program do podgl±dania plików dla GNUstepa
Name: ViewIt
Version: 0.5
Release: 1
URL: http://mac.wms-network.de/gnustep/viewit/viewit.html
BuildRequires: gnustep-gui-devel >= 0.8.7
Requires: gnustep-gui >= 0.8.7
+Requires: ghotscript
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define libcombo gnu-gnu-gnu
# also s/alpha.*/alpha/, but we use only "alpha" arch for now
%define gscpu %{_target_cpu}
%endif
-%define appdir %{_libdir}/GNUstep/System/Applications/CodeEditor.app
-%define supportdir %{_libdir}/GNUstep/System/Library/ApplicationSupport/CodeEditorView
+%define appdir %{_libdir}/GNUstep/System/Applications/%{name}.app
%description
-ViewIt, is a simple file previewer application for GNUstep.
+ViewIt is a simple file previewer application for GNUstep.
+
+%description -l pl
+ViewIt jest prost± aplikacj± do podgl±dania plików przeznaczon± dla
+GNUstepa.
%prep
%setup -q -n %{name}
%install
rm -rf $RPM_BUILD_ROOT
-. %{_prefix}/System/Library/Makefiles/GNUstep.sh
+. %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
%{__make} install \
GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_libdir}/GNUstep/System
%files
%defattr(644,root,root,755)
-%doc ChangeLog README
+%doc README
%dir %{appdir}
%attr(755,root,root) %{appdir}/%{name}
-%dir %{_prefix}/System/Applications/ImageViewer.app/Resources
%dir %{appdir}/Resources
%{appdir}/Resources/*.desktop
%{appdir}/Resources/*.plist
%{appdir}/Resources/*.tiff
%{appdir}/Resources/*.gorm
-%{appdir}/Resources/Scripts
+#%{appdir}/Resources/Scripts
%dir %{appdir}/%{gscpu}
%dir %{appdir}/%{gscpu}/%{gsos}
%dir %{appdir}/%{gscpu}/%{gsos}/%{libcombo}
%attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/%{name}
%{appdir}/%{gscpu}/%{gsos}/%{libcombo}/*.openapp
+%attr(755,root,root) %{_libdir}/GNUstep/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/*