-Summary: DILLO - The GTK Web Browser
-Summary(pl): DILLO - przegladarka web
+# TODO gettext support
+Summary: DILLO - The GTK+ Web Browser
+Summary(pl): DILLO - przegl±darka WWW
Name: dillo
-Version: 0.5.1
-Release: 1
+Version: 0.8.6
+Release: 0.1
License: GPL
Group: X11/Applications/Networking
-Group(de): X11/Applikationen/Netzwerkwesen
-Group(pl): X11/Aplikacje/Sieciowe
-Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-BuildRequires: libjpeg-devel
+Source0: http://www.dillo.org/download/%{name}-%{version}.tar.bz2
+# Source0-md5: b65233d368bbd265a55effcf2c17f84b
+Source1: %{name}.desktop
+Source2: %{name}.png
+Patch0: %{name}-gzip_fallback.patch
+Patch1: %{name}-0.7.0-alt-asp-charset-encodings-sysconfdir.patch
+URL: http://www.dillo.org/
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: gtk+-devel >= 1.2.0
-Buildrequires: libpng-devel >= 1.0.9
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel >= 1.0.9
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
+%define _sysconfdir /etc/dillo
%description
-Dillo is small, fast, based on GTK+ library web browser written in C.
+Dillo is a small GTK+ based (GNOME is NOT required!) web browser.
+Dillo aims to be a multi-platform browser alternative that's small,
+stable, developer-friendly, usable, fast, and extensible.
%description -l pl
-Dillo jest mala, szybka, bazujaca na bibliotece GTK+ przegladarka
-sieci.
+Dillo jest ma³±, opart± na bibliotece GTK+ (GNOME nie jest wymagany)
+przegl±dark± WWW. Dillo ma byæ wieloplatformow± alternatywn±
+przegl±dark±, która jest ma³a, stabilna, przyjazna dla developerów,
+u¿yteczna, szybka i rozszerzalna.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
-%configure
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ --enable-cookies \
+ --enable-ipv6 \
+ --disable-dlgui
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+install encodings $RPM_BUILD_ROOT%{_sysconfdir}
-gzip -9nf doc/{*.txt,README} AUTHORS ChangeLog
+#%%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
+#%%files -f %{name}.lang
%files
%defattr(644,root,root,755)
-%doc *.gz doc/*.gz
-%attr(755,root,root) %{_bindir}/dillo
+%doc AUTHORS ChangeLog dillorc encodings doc/{*.txt,README}
+%attr(755,root,root) %{_bindir}/*
+%{_desktopdir}/*
+%{_pixmapsdir}/*
+%dir %{_libdir}/dillo
+%attr(755,root,root) %{_libdir}/dillo/*
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*