File dipbrowser.spec of Package dipbrowser
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name:		dipbrowser
Version:	1.0
Release:	1%{?dist}
Summary:	A WebKit web browser with integrated weather and Google features
Group:		Applications/Internet
License:	MPL
URL:		http://dipconsultants.com/
Source0:	http://dipconsultants.com/browser/source/%{version}/%{name}-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	desktop-file-utils
BuildRequires:	libtool
BuildRequires:	python-devel
Requires:	/bin/sh
Requires:	dbus-python
Requires:	dbus-x11
Requires:	hicolor-icon-theme
Requires:	pygtk2-libglade
Requires:	pyxdg
%description
DIP Secure Browser is a cross-platfrom PyGTK web browser.  On Windows it 
renders using IE and on Linux it uses webkit-gtk.  It is light, fast
and includes weather integration, as well as Gmail integration for new
email alerts.  It has Google Phishing protection as well many other
features.
%prep
%setup -qn "dipbrowser-%{version}"
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	--copy-name-to-generic-name	\
	--delete-original \
	%{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc LICENSE 
%{python_sitearch}/%{name}/
%{python_sitearch}/%{name}-%{version}-py2.5.egg-info
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%post
update-desktop-database &>/dev/null ||:
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
fi
%postun
update-desktop-database &> /dev/null ||:
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
fi
%changelog
* Tue Apr 29 2008 Marcos Pinto <markybob@gmail.com> - 1.0-1
- Update to new upstream release (1.0)