c377bee
Name:		midori
Kevin Fenzi dfe6b38
Version:	0.2.9
Kevin Fenzi 2b2546e
Release:	4%{?dist}
4aa2467
Summary:	A lightweight GTK+ web browser 
4aa2467
4aa2467
Group:		Applications/Internet
90f748b
License:	LGPLv2+
4aa2467
URL:		http://software.twotoasts.de/?page=midori
4aa2467
d24099c
Source0:	http://archive.xfce.org/src/apps/%{name}/0.2/%{name}-%{version}.tar.bz2
4aa2467
97507ae
## Fedora-specific: Set the default homepage to start.fedoraproject.org
97507ae
## instead of Google.
97507ae
Patch0: 	%{name}-fedora-homepage.patch
Kevin Fenzi e8338f7
Patch1:         midori-0.2.9-libnotify.patch
aef7acc
# FIXME: Remove this patch in 0.2.10 because is has recently been fixed in git
aef7acc
# Upstream bug: http://www.twotoasts.de/bugs/index.php?do=details&task_id=1007
aef7acc
Patch2:		midori-0.2.9-docdir.patch
Kevin Fenzi 2b2546e
# Already upstreamed in git
Kevin Fenzi 2b2546e
# http://git.xfce.org/apps/midori/commit/?id=97a7ae9955d4264f922452d6933f3a0e1e4b03f6
Kevin Fenzi 2b2546e
Patch3:		midori-0.2.9-crasher.patch
97507ae
4aa2467
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4aa2467
b3a46eb
BuildRequires:	desktop-file-utils
b3a46eb
BuildRequires:	gettext
63fa7c7
BuildRequires:	gtk-doc
ac3da1f
BuildRequires:	gtksourceview2-devel
9ce7122
BuildRequires:	intltool
5802796
BuildRequires:	libidn-devel
abb74d2
BuildRequires:  libnotify-devel
4aa2467
BuildRequires:	libsexy-devel
9ce7122
BuildRequires:	librsvg2
69368d1
BuildRequires:	libsoup-devel >= 2.25.2
cf65f34
BuildRequires:	libtool
4aa2467
BuildRequires:	libxml2-devel
b3a46eb
BuildRequires:	perl(XML::Parser)
05b2925
BuildRequires:	python-docutils
05b2925
BuildRequires:	sqlite-devel
ac3da1f
BuildRequires:	unique-devel
63fa7c7
BuildRequires:	vala
69368d1
BuildRequires:	waf >= 1.5
b34e809
BuildRequires:	webkitgtk-devel >= 1.1.1
4aa2467
4aa2467
%description
4aa2467
Midori is a lightweight web browser, and has many features expected of a
4aa2467
modern browser, including:
4aa2467
* Full integration with GTK+2.
4aa2467
* Fast rendering with WebKit.
4aa2467
* Tabs, windows and session management.
4aa2467
* Bookmarks are stored with XBEL.
4aa2467
* Searchbox based on OpenSearch.
4aa2467
* Custom context menu actions.
4aa2467
* User scripts and user styles support.
4aa2467
* Extensible via Lua scripts.
4aa2467
4aa2467
The project is currently in an early alpha state. The features are still being
4aa2467
implemented, and some are still quite incomplete.
4aa2467
63fa7c7
%package	devel
63fa7c7
Summary:	Development files for %{name}
63fa7c7
Group:		Development/Libraries
63fa7c7
Requires:	%{name} = %{version}-%{release}
63fa7c7
Requires:	vala
63fa7c7
63fa7c7
%description	devel
63fa7c7
The %{name}-devel package contains libraries and header files for
63fa7c7
developing extensions for %{name}.
63fa7c7
63fa7c7
4aa2467
%prep
4aa2467
%setup -q
9ce7122
## Use the system-provided waf, instead of the in-tarball copy.
d24099c
#rm -rf waf
76c1480
%patch0 -b .fedora-homepage
aef7acc
%if 0%{?fedora} >= 15
aef7acc
%patch1 -p1 -b .libnotify-0.7.0
aef7acc
%endif
aef7acc
%patch2 -p1 -b .docdir
Kevin Fenzi 2b2546e
%patch3 -p1 -b .crasher
4aa2467
4aa2467
%build
9ce7122
export CFLAGS="%{optflags}"
d24099c
## Currently does not build against Fedora waf
d24099c
#waf	--prefix=%{_usr}			\
d24099c
./waf	--prefix=%{_usr}			\
05b2925
	--docdir=%{_docdir}/%{name}-%{version}	\
05b2925
	--libdir=%{_libdir}			\
63fa7c7
	--enable-apidocs			\
490e887
	configure
d24099c
#waf %{?_smp_mflags} build
d24099c
./waf %{?_smp_mflags} build
4aa2467
d24099c
 
4aa2467
%install
4aa2467
rm -rf %{buildroot}
d24099c
#waf --destdir=%{buildroot} install
d24099c
./waf --destdir=%{buildroot} install
b3a46eb
%find_lang %{name}
4aa2467
desktop-file-install					\
4aa2467
	--vendor fedora					\
4aa2467
	--delete-original				\
4aa2467
	--dir %{buildroot}%{_datadir}/applications	\
4aa2467
	%{buildroot}%{_datadir}/applications/%{name}.desktop
63fa7c7
# needed because of a bug in the waf files, remove when fixed
63fa7c7
mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/%{name}
63fa7c7
install -Dpm 644 _build_/docs/api/midori/html/* \
63fa7c7
	%{buildroot}%{_datadir}/gtk-doc/html/%{name}
4aa2467
4aa2467
4aa2467
%clean
4aa2467
rm -rf %{buildroot}
4aa2467
4aa2467
8c9b650
%post
76c1480
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
8c9b650
8c9b650
8c9b650
%postun
76c1480
if [ $1 -eq 0 ] ; then
76c1480
	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
76c1480
	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
8c9b650
fi
8c9b650
8c9b650
76c1480
%posttrans
76c1480
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
76c1480
76c1480
b3a46eb
%files -f %{name}.lang
4aa2467
%defattr(-,root,root,-)
05b2925
%doc %{_docdir}/%{name}-%{version}/
4aa2467
%{_bindir}/midori
4aa2467
%{_datadir}/applications/fedora-%{name}.desktop
ac3da1f
%{_datadir}/icons/*/*/apps/%{name}.*
9ce7122
%{_datadir}/icons/*/*/categories/extension.*
9ce7122
%{_datadir}/icons/*/*/status/news-feed.*
05b2925
%{_datadir}/%{name}/
05b2925
%{_libdir}/%{name}/
8b6716a
%{_sysconfdir}/xdg/%{name}/
d24099c
#%config(noreplace) %{_sysconfdir}/%{name}/extensions/*/config
d24099c
#%{_sysconfdir}/%{name}/
4aa2467
63fa7c7
%files devel
63fa7c7
%defattr(-,root,root,-)
63fa7c7
%doc %{_datadir}/gtk-doc/
352d0a5
%{_includedir}/*
63fa7c7
%{_datadir}/vala/vapi/*
63fa7c7
4aa2467
4aa2467
%changelog
Kevin Fenzi 2b2546e
* Sun Jan 09 2011 Kevin Fenzi <kevin@tummy.com> - 0.2.9-4
Kevin Fenzi 2b2546e
- Add patch to fix crasher on links. 
Kevin Fenzi 2b2546e
aef7acc
* Sat Jan 08 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.9-3
aef7acc
- Add docdir patch again, problem was not fixed properly upstream
aef7acc
Kevin Fenzi e8338f7
* Fri Nov 05 2010 Kevin Fenzi <kevin@tummy.com> - 0.2.9-2
Kevin Fenzi e8338f7
- Add patch for new libnotify
Kevin Fenzi e8338f7
Kevin Fenzi dfe6b38
* Sun Oct 31 2010 Kevin Fenzi <kevin@tummy.com> - 0.2.9-1
Kevin Fenzi dfe6b38
- Update to 0.2.9
Kevin Fenzi dfe6b38
Jesse Keating a39c049
* Wed Sep 29 2010 jkeating - 0.2.8-2
Jesse Keating a39c049
- Rebuilt for gcc bug 634757
Jesse Keating a39c049
5b3ba23
* Mon Sep 20 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.8-1
5b3ba23
- Update to 0.2.8
5b3ba23
2523872
* Tue Aug 24 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.7-1
2523872
- Update to 0.2.7
63fa7c7
- Build separate devel package
63fa7c7
- BuildRequire vala
63fa7c7
- Include gtk-doc
2523872
f0404b2
* Tue Jul 06 2010 Peter Gordon <peter@thecodergeek.com> - 0.2.6-2
f0404b2
- Rebuild for WebKitGTK+ ABI bump.
f0404b2
58bb6f8
* Mon May 24 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.2.6-1
58bb6f8
- Update to 0.2.6
58bb6f8
abb74d2
* Tue May 18 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.5
abb74d2
- Update to 0.2.5
abb74d2
76c1480
* Sun Mar 21 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.4-1
76c1480
- Update to 0.2.4
76c1480
- Fix docs location (#523778)
76c1480
- Update gtk icon cache scriptlets
76c1480
d24099c
* Sat Feb 20 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.2.3-1
d24099c
- Update to 0.2.3 - spec patch by Kevin Fenzi <kevin@tummy.com>
76c1480
97507ae
* Fri Jan 29 2010 Peter Gordon <peter@thecodergeek.com> - 0.2.2-2
97507ae
- Apply patch to set the Fedora-specific default homepage
97507ae
  (start.fedoraproject.org), for consistency with other browser packages such
97507ae
  as Firefox and Epiphany.
97507ae
  + fedora-homepage.patch
97507ae
- Resolves: #559740 (Home page is not start.fedoraproject.org)
97507ae
0e71e2f
* Wed Dec 16 2009 Adam Miller <maxamillion@fedoraproject.org> - 0.2.2-1
0e71e2f
- Update to new upstream release (0.2.2)
0e71e2f
393eea8
* Wed Dec 02 2009 Adam Miller <maxamillion@fedoraproject.org> - 0.2.1-1
0e71e2f
- Update to new upstream release (0.2.1)
393eea8
777dd0a
* Tue Oct 20 2009 Peter Gordon <peter@thecodergeek.com> - 0.2.0-1
777dd0a
- Update to new upstream release (0.2.0): Drag-scroll on touchscreen devices,
777dd0a
  Speed Dial fixes, faster AdBlock (for all WebKitGTK+ versions), updated DNS
777dd0a
  and IDN handling, new form history extension, various bookmark and history
777dd0a
  fixes.
777dd0a
b0df284
* Tue Sep 15 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.10-1
b0df284
- Update to new upstream release (0.1.10): Updated AdBlock for WebKitGTK+
b0df284
  1.1.14, improved address completion, fixes for tab and feed handling, better
b0df284
  desktop integration, and Undo/Redo support - among other bugfixes and
b0df284
  enhancements.
b0df284
69368d1
* Wed Aug 05 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.9-1
69368d1
- Update to new upstream release (0.1.9): lots of fixes and updates for tab
69368d1
  functionality and the tab panel, as well as menu fixes, and enhancements
f73683c
  for deleting private data with just a few simple clicks!
69368d1
- Revert to using the system waf, now that it no longer causes Python errors
69368d1
  when compiling.
69368d1
8d931e3
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
8d931e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8d931e3
a9eeefc
* Wed Jun 03 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.7-1
a9eeefc
- Update to new upstream release (0.1.7): Implements saving activation state
a9eeefc
  of extensions, ignore mouse buttons used for horizontal scrolling, panel
a9eeefc
  handling improvements, adds "Feed Panel" extension, friendlier error pages,
a9eeefc
  and spell checking support; libnotify support for finished transfers,
a9eeefc
  introduces basic @-moz-document user style support, and additional tabs/font
a9eeefc
  preferences.
a9eeefc
  
490e887
* Mon Apr 20 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.6-2
490e887
- Re-enable libunique support, thanks to it being updated accordingly.
490e887
1baa73a
* Sun Apr 19 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.6-1
1baa73a
- Update to new upstream release (0.1.6): Implements "Clear private data,"
1baa73a
  "Default" search engine, support "mailto:" links and news feeds with external
1baa73a
  aggregators, "data:" URIs, and external download manager, and a new Cookie
1baa73a
  Manager extension. Also fixes several memory leaks and performance bugs.
1baa73a
b34e809
* Sat Apr 11 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.5-2
b34e809
- Update to new upstream release (0.1.5): download support (with WebKitGTK
b34e809
  1.1.3+), a new "Colorful Tabs" extension, and saving of extension settings.
b34e809
- Temporarily switch to building using the in-tarball waf (FTBFS otherwise).
b34e809
- Temporarily disable libunique (single-instance) support, as it's broken
b34e809
  with libunique 1.0.4 (which is the current in rawhide).
b34e809
5802796
* Tue Mar 10 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.4-2
5802796
- Build against the recently-updated libidn for proper IDN support.
5802796
6630ab4
* Mon Mar 09 2009 Peter Gordon <peter@thecodergeek.com>
6630ab4
- Add TODO note about libidn support. (Thanks to Kevin Fenzi via IRC.)
6630ab4
cc5ec51
* Sat Mar 07 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.4-1
cc5ec51
- Update to new upstream release (0.1.4): mostly small usability fixes and
cc5ec51
  related improvements.
cc5ec51
- Drop upstreamed no-git patch.
cc5ec51
  - no-git.patch
cc5ec51
866f641
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
866f641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
866f641
8b6716a
* Sun Feb 22 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.3-1
8b6716a
- Update to new upstream release (0.1.3): support for bookmark folders,
8b6716a
  full image zoom, and "Find as you type" (among other enhancements).
8b6716a
- Add patch to remove git build-time dependency:
8b6716a
  + no-git.patch
8b6716a
c20ebc2
* Sat Jan 31 2009 Peter Gordon <peter@thecodergeek.com> - 0.1.2-1
8b6716a
- Update to new upstream release (0.1.2): support for bookmarklets
c20ebc2
  ("javascript:foo" URLs and bookmarks), better persistent cookie support,
c20ebc2
  preference changes saved dynamically. Lots of startup fixes for speed
c20ebc2
  issues, too. :)
c20ebc2
05b2925
* Sat Dec 20 2008 Peter Gordon <peter@thecodergeek.com> - 0.1.1-1
05b2925
- Update to new upstream release (0.1.1): contains many enhancements and
05b2925
  bugfixes - including error pages, basic documentation, panel history
05b2925
  support, icon caching, libsoup integration, support for WebKit's Inspector
05b2925
  functionality, and the beginnings of support for runtime extensions (in C).
05b2925
99b4308
* Tue Sep 09 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.21-1
99b4308
- Update to new upstream release (0.0.21): contains updated translations,
99b4308
  fixes for GVFS-->GIO regressions, and various aesthetic enhancements.
99b4308
  (See the included ChangeLog for full details.)
99b4308
- Update Source0 URL.
99b4308
8c9b650
* Sun Sep 07 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.20-2
8c9b650
- Add scriplets for GTK+ icon cache.
8c9b650
9ce7122
* Sun Sep 07 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.20-1
ac3da1f
- Update to new upstream release (0.0.20): adds support for single instances,
ac3da1f
  some userscripts and Greasemonkey scripting, zooming and printing, as well as
ac3da1f
  enhanced news feed detection and session-saving (among other improvements).
9ce7122
- Switch to WAF build system.
ac3da1f
90f748b
* Fri Aug  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.0.18-2
90f748b
- fix license tag
90f748b
b3a46eb
* Sat May 24 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.18-1
b3a46eb
- Update to new upstream release (0.0.18), adds some translations and
b3a46eb
  a lot of bug-fixes.
b3a46eb
- Alphabetize dependency list (aesthetic-only change).
b3a46eb
3ef54dc
* Sat Apr 12 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-3
3ef54dc
- Rebuild for updated WebKit library so-name and include directory.
3ef54dc
4aa2467
* Mon Mar 03 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-2
4aa2467
- Cleanups from review (bug 435661):
4aa2467
  (1) Fix consistency of tabs/spaces usage.
4aa2467
  (2) Fix source permissions.
4aa2467
  (3) Add desktop-file-utils build dependency.
4aa2467
4aa2467
* Sun Mar 02 2008 Peter Gordon <peter@thecodergeek.com> - 0.0.17-1
90f748b
- Initial packaging for Fedora.