274eb8a
## Dependency: WebKit SVN 29723+
274eb8a
## This is the EVR for its sufficient Fedora package.
274eb8a
%global	webkit_min_version	1.0.0-0.6.svn30667
274eb8a
274eb8a
Name:		midori
274eb8a
Version:	0.0.17
274eb8a
Release:	2%{?dist}
274eb8a
Summary:	A lightweight GTK+ web browser 
274eb8a
274eb8a
Group:		Applications/Internet
274eb8a
License:	LGPLv2.1+
274eb8a
URL:		http://software.twotoasts.de/?page=midori
274eb8a
274eb8a
Source0:	http://software.twotoasts.de/media/%{name}/%{name}-%{version}.tar.gz
274eb8a
274eb8a
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
274eb8a
274eb8a
BuildRequires:	WebKit-gtk-devel >= %{webkit_min_version}  
274eb8a
BuildRequires:	libsexy-devel
274eb8a
BuildRequires:	libxml2-devel
274eb8a
BuildRequires:	desktop-file-utils
274eb8a
274eb8a
Requires:	WebKit-gtk >= %{webkit_min_version}
274eb8a
274eb8a
%description
274eb8a
Midori is a lightweight web browser, and has many features expected of a
274eb8a
modern browser, including:
274eb8a
* Full integration with GTK+2.
274eb8a
* Fast rendering with WebKit.
274eb8a
* Tabs, windows and session management.
274eb8a
* Bookmarks are stored with XBEL.
274eb8a
* Searchbox based on OpenSearch.
274eb8a
* Custom context menu actions.
274eb8a
* User scripts and user styles support.
274eb8a
* Extensible via Lua scripts.
274eb8a
274eb8a
The project is currently in an early alpha state. The features are still being
274eb8a
implemented, and some are still quite incomplete.
274eb8a
274eb8a
%prep
274eb8a
%setup -q
274eb8a
chmod a-x src/main.c
274eb8a
274eb8a
274eb8a
%build
274eb8a
%configure
274eb8a
make %{?_smp_mflags}
274eb8a
274eb8a
274eb8a
%install
274eb8a
rm -rf %{buildroot}
274eb8a
make install DESTDIR=%{buildroot}
274eb8a
desktop-file-install					\
274eb8a
	--vendor fedora					\
274eb8a
	--delete-original				\
274eb8a
	--dir %{buildroot}%{_datadir}/applications	\
274eb8a
	%{buildroot}%{_datadir}/applications/%{name}.desktop
274eb8a
274eb8a
274eb8a
%clean
274eb8a
rm -rf %{buildroot}
274eb8a
274eb8a
274eb8a
%files
274eb8a
%defattr(-,root,root,-)
274eb8a
%doc AUTHORS ChangeLog COPYING README TODO
274eb8a
%{_bindir}/midori
274eb8a
%{_datadir}/applications/fedora-%{name}.desktop
274eb8a
274eb8a
274eb8a
%changelog
274eb8a
* Mon Mar 03 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-2
274eb8a
- Cleanups from review (bug 435661):
274eb8a
  (1) Fix consistency of tabs/spaces usage.
274eb8a
  (2) Fix source permissions.
274eb8a
  (3) Add desktop-file-utils build dependency.
274eb8a
274eb8a
* Sun Mar 02 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-1
274eb8a
- Initial packaging for Fedora.