1 |
%define git 0 |
2 |
%define rel 1 |
3 |
|
4 |
%define url_ver %(echo %{version} | cut -c 1-3) |
5 |
|
6 |
%if %git |
7 |
%define release %mkrel 0.%git.%rel |
8 |
%define distname %name-%git.tar.lzma |
9 |
%define dirname %name |
10 |
%else |
11 |
%define release %mkrel %rel |
12 |
%define distname %name-%version.tar.bz2 |
13 |
%define dirname %name-%version |
14 |
%endif |
15 |
|
16 |
Summary: Web browser based on WebKitGtk |
17 |
Name: midori |
18 |
Version: 0.2.9 |
19 |
Release: %{release} |
20 |
License: LGPLv2+ |
21 |
Group: Networking/WWW |
22 |
URL: http://www.twotoasts.de/index.php?/pages/midori_summary.html |
23 |
# For git: git clone http://software.twotoasts.de/media/midori.git |
24 |
Source0: http://archive.xfce.org/src/apps/midori/%{url_ver}/%{distname} |
25 |
# (tpg) set default homepage |
26 |
Patch0: midori-0.2.4-default-homepage.patch |
27 |
BuildRequires: webkitgtk-devel >= 1.1.1 |
28 |
BuildRequires: libsexy-devel |
29 |
BuildRequires: icu-devel |
30 |
BuildRequires: jpeg-devel |
31 |
BuildRequires: sqlite3-devel |
32 |
BuildRequires: libgtksourceview-2.0-devel |
33 |
BuildRequires: libxslt-devel |
34 |
BuildRequires: intltool |
35 |
BuildRequires: python-devel |
36 |
BuildRequires: librsvg |
37 |
BuildRequires: unique-devel >= 0.9 |
38 |
BuildRequires: libsoup-devel >= 2.25.2 |
39 |
BuildRequires: libxml2-devel |
40 |
BuildRequires: python-docutils |
41 |
BuildRequires: waf |
42 |
BuildRequires: vala |
43 |
Provides: webclient |
44 |
Requires: indexhtml |
45 |
Requires: xdg-utils |
46 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
47 |
|
48 |
%description |
49 |
Midori is a lightweight GTK+ 2 web browser based on WebKitGtk. It |
50 |
features tabs, windows and session management, bookmarks stored with |
51 |
XBEL, searchbox based on OpenSearch, and user scripts support. |
52 |
|
53 |
%package vala |
54 |
Group: Networking/WWW |
55 |
Summary: vala supported extensions for %{name} |
56 |
Requires: %{name} = %{version} |
57 |
|
58 |
%description vala |
59 |
This package contains files needed when building vala supported extensions for %{name}. |
60 |
|
61 |
%prep |
62 |
%setup -q -n %{dirname} |
63 |
%patch0 -p1 |
64 |
|
65 |
%build |
66 |
# (tpg) got broken since 0.1.7 |
67 |
%define _disable_ld_no_undefined 1 |
68 |
#export CFLAGS="%{optflags}" |
69 |
#export CXXFLAGS="%{optflags}" |
70 |
#export LDFLAGS="%{ldflags}" |
71 |
|
72 |
# (tpg) fix module naming |
73 |
sed -i -e 's/import UnitTest/import unittest/g' wscript |
74 |
|
75 |
%configure_waf \ |
76 |
--enable-addons \ |
77 |
--enable-libidn |
78 |
|
79 |
%waf |
80 |
|
81 |
%install |
82 |
rm -rf %{buildroot} |
83 |
%waf_install |
84 |
|
85 |
%find_lang %{name} |
86 |
|
87 |
%if %mdkversion < 200900 |
88 |
%post |
89 |
%{update_menus} |
90 |
%{update_icon_cache hicolor} |
91 |
%endif |
92 |
|
93 |
%if %mdkversion < 200900 |
94 |
%postun |
95 |
%{clean_menus} |
96 |
%{clean_icon_cache hicolor} |
97 |
%endif |
98 |
|
99 |
%clean |
100 |
rm -rf %{buildroot} |
101 |
|
102 |
%files -f %{name}.lang |
103 |
%defattr(-,root,root) |
104 |
%doc AUTHORS ChangeLog README |
105 |
%{_bindir}/%{name} |
106 |
%{_libdir}/%{name} |
107 |
%{_datadir}/applications/%{name}.desktop |
108 |
%{_iconsdir}/hicolor/*/*/* |
109 |
%{_datadir}/%{name} |
110 |
%{_sysconfdir}/xdg/midori |
111 |
|
112 |
%files vala |
113 |
%defattr(-,root,root) |
114 |
%{_includedir}/%{name}-0.2 |
115 |
%{_datadir}/vala/vapi/history-list.deps |
116 |
%{_datadir}/vala/vapi/history-list.vapi |
117 |
|
118 |
|