]> git.pld-linux.org Git - packages/epiphany.git/blob - epiphany.spec
0cbe10df335d953075e7ce5ceb82719109a9a94d
[packages/epiphany.git] / epiphany.spec
1 #
2 #Conditional build:
3 %bcond_with     webkit          # Build with experimental webkit support instead of xulrunner
4 #
5 %define         basever         2.26
6 Summary:        Epiphany - gecko-based GNOME web browser
7 Summary(es.UTF-8):      Epiphany - navigador Web de GNOME basado en gecko
8 Summary(pl.UTF-8):      Epiphany - przeglądarka WWW dla GNOME
9 Name:           epiphany
10 Version:        2.26.3
11 Release:        1
12 License:        GPL v2
13 Group:          X11/Applications/Networking
14 Source0:        http://ftp.gnome.org/pub/GNOME/sources/epiphany/2.26/%{name}-%{version}.tar.bz2
15 # Source0-md5:  16f44012bc376077e1443e049d725847
16 Patch0:         %{name}-pld-homepage.patch
17 Patch1:         %{name}-configure.patch
18 Patch2:         %{name}-ti-agent.patch
19 Patch3:         %{name}-agent.patch
20 Patch4:         %{name}-lt.patch
21 Patch5:         %{name}-libxul.patch
22 Patch7:         %{name}-build_date.patch
23 Patch8:         %{name}-xulrunner-plugins-dir.patch
24 URL:            http://www.gnome.org/projects/epiphany/
25 BuildRequires:  GConf2-devel >= 2.26.0
26 BuildRequires:  NetworkManager-devel
27 BuildRequires:  autoconf >= 2.59
28 BuildRequires:  automake >= 1:1.9
29 BuildRequires:  avahi-gobject-devel >= 0.6
30 BuildRequires:  dbus-glib-devel >= 0.73
31 BuildRequires:  enchant-devel >= 1.0
32 BuildRequires:  gettext-devel
33 BuildRequires:  gnome-common >= 2.20.0
34 BuildRequires:  gnome-desktop-devel >= 2.26.0
35 BuildRequires:  gnome-doc-utils >= 0.12.0
36 BuildRequires:  gtk+2-devel >= 2:2.16.0
37 BuildRequires:  gtk-doc >= 1.8
38 %if %{with webkit}
39 BuildRequires:  gtk-webkit-devel
40 BuildRequires:  libssh2-devel
41 %endif
42 BuildRequires:  intltool >= 0.40.0
43 BuildRequires:  iso-codes >= 0.53
44 BuildRequires:  libcanberra-gtk-devel >= 0.3
45 BuildRequires:  libglade2-devel >= 1:2.6.2
46 BuildRequires:  libgnomeui-devel >= 2.24.0
47 BuildRequires:  libnotify-devel >= 0.4
48 BuildRequires:  libtool
49 BuildRequires:  libxml2-devel >= 1:2.6.28
50 BuildRequires:  libxslt-devel >= 1.1.20
51 BuildRequires:  pkgconfig
52 BuildRequires:  python-gnome-devel >= 2.20.0
53 BuildRequires:  python-pygtk-devel >= 2:2.12.0
54 BuildRequires:  rpm >= 4.4.9-56
55 BuildRequires:  rpmbuild(find_lang) >= 1.23
56 BuildRequires:  rpmbuild(macros) >= 1.364
57 BuildRequires:  scrollkeeper
58 BuildRequires:  startup-notification-devel >= 0.8
59 %if %{without webkit}
60 BuildRequires:  xulrunner
61 BuildRequires:  xulrunner-devel >= 1.9.0.1-1
62 %endif
63 Requires(post,postun):  desktop-file-utils
64 Requires(post,postun):  gtk+2
65 Requires(post,postun):  hicolor-icon-theme
66 Requires(post,postun):  scrollkeeper
67 Requires(post,preun):   GConf2
68 Requires:       dbus >= 1.0.2
69 Requires:       gnome-icon-theme >= 2.26.0
70 Requires:       libgnomeui >= 2.24.0
71 Provides:       wwwbrowser
72 %if %{without webkit}
73 Requires:       browser-plugins >= 2.0
74 Requires:       browser-plugins(%{_target_base_arch})
75 %requires_eq    xulrunner
76 %endif
77 Obsoletes:      python-epiphany
78 # sr@Latn vs. sr@latin
79 Conflicts:      glibc-misc < 6:2.7
80 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82 %if %{without webkit}
83 # can be provided by mozilla or mozilla-embedded
84 %define         _noautoreqdep   libgtkembedmoz.so libgtksuperwin.so libxpcom.so
85 # we have strict deps for it
86 %define         _noautoreq      libxpcom.so
87 %endif
88
89 %description
90 GNOME browser based on Gecko (Mozilla rendering engine).
91
92 %description -l es.UTF-8
93 Navigador Web de GNOME basado en Gecko (el engine plasmante de
94 Mozilla).
95
96 %description -l pl.UTF-8
97 Epiphany jest przeglądarką WWW bazującą na Gecko (mechanizmie
98 interpretacji stron Mozilli).
99
100 %package devel
101 Summary:        Epiphany header files
102 Summary(es.UTF-8):      Ficheros de cabecera de Epiphany
103 Summary(pl.UTF-8):      Pliki nagłówkowe Epiphany
104 Group:          X11/Applications/Networking
105 # doesn't require base
106 Requires:       gtk+2-devel >= 2:2.16.0
107 Requires:       libxml2-devel >= 1:2.6.28
108
109 %description devel
110 Epiphany header files for plugin development.
111
112 %description devel -l es.UTF-8
113 Ficheros de cabecera de Epiphany para desarrollar plug-ins.
114
115 %description devel -l pl.UTF-8
116 Pliki nagłówkowe Epiphany do tworzenia wtyczek.
117
118 %package apidocs
119 Summary:        Epiphany API documentation
120 Summary(pl.UTF-8):      Dokumentacja API Epiphany
121 Group:          Documentation
122 Requires:       gtk-doc-common
123
124 %description apidocs
125 Epiphany API documentation.
126
127 %description apidocs -l pl.UTF-8
128 Dokumentacja API Epiphany.
129
130 %prep
131 %setup -q
132 %patch0 -p1
133 %patch1 -p1
134 %if "%{pld_release}" == "ti"
135 %patch2 -p1
136 %else
137 %patch3 -p1
138 %endif
139 %patch4 -p1
140 %patch5 -p1
141 %patch7 -p1
142 %patch8 -p1
143
144 %build
145 %{__gnome_doc_prepare}
146 %{__gnome_doc_common}
147 %{__glib_gettextize}
148 %{__intltoolize}
149 %{__libtoolize}
150 %{__aclocal} -I m4
151 %{__autoheader}
152 %{__automake}
153 %{__autoconf}
154 %configure \
155         --disable-schemas-install \
156         --enable-dbus \
157         %{!?with_webkit:--enable-gtk-doc} \
158         --enable-network-manager \
159         --enable-python \
160 %if %{with webkit}
161         --with-engine=webkit \
162 %else
163         --with-gecko=libxul-embedding \
164 %endif
165         --with-html-dir=%{_gtkdocdir}
166 %{__make}
167
168 %install
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/%{basever}/extensions
171
172 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/%{basever}/plugins
173
174 %{__make} install \
175         DESTDIR=$RPM_BUILD_ROOT \
176         HTML_DIR=%{_gtkdocdir}
177
178 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/%{basever}/plugins/*.la
179 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/LowContrastLargePrint
180
181 %find_lang %{name} --with-gnome --with-omf
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %post
187 %gconf_schema_install epiphany-fonts.schemas
188 %gconf_schema_install epiphany-lockdown.schemas
189 %gconf_schema_install epiphany-pango.schemas
190 %gconf_schema_install epiphany.schemas
191 %scrollkeeper_update_post
192 %update_desktop_database_post
193 %update_icon_cache hicolor
194 %if %{without webkit}
195 %update_browser_plugins
196 %endif
197
198 %preun
199 %gconf_schema_uninstall epiphany-fonts.schemas
200 %gconf_schema_uninstall epiphany-lockdown.schemas
201 %gconf_schema_uninstall epiphany-pango.schemas
202 %gconf_schema_uninstall epiphany.schemas
203
204 %postun
205 %scrollkeeper_update_postun
206 %update_desktop_database_postun
207 %update_icon_cache hicolor
208 %if %{without webkit}
209 if [ "$1" = 0 ]; then
210         %update_browser_plugins
211 fi
212 %endif
213
214 %files -f %{name}.lang
215 %defattr(644,root,root,755)
216 %doc AUTHORS ChangeLog NEWS README
217
218 %if %{without webkit}
219 # browser plugins v2
220 %{_browserpluginsconfdir}/browsers.d/%{name}.*
221 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
222 %endif
223
224 %attr(755,root,root) %{_bindir}/*
225 %{_datadir}/dbus-1/services/*.service
226 %{_datadir}/%{name}
227 %{_desktopdir}/*.desktop
228 %{_iconsdir}/*/*/apps/*.*
229 %{_sysconfdir}/gconf/schemas/epiphany-fonts.schemas
230 %{_sysconfdir}/gconf/schemas/epiphany-lockdown.schemas
231 %{_sysconfdir}/gconf/schemas/epiphany-pango.schemas
232 %{_sysconfdir}/gconf/schemas/epiphany.schemas
233 %dir %{_libdir}/%{name}
234 %dir %{_libdir}/%{name}/%{basever}
235 %dir %{_libdir}/%{name}/%{basever}/extensions
236 %if %{without webkit}
237 %dir %{_libdir}/%{name}/%{basever}/plugins
238 %attr(755,root,root) %{_libdir}/epiphany/%{basever}/plugins/*.so*
239 %endif
240 %{_mandir}/man1/*
241
242 %files devel
243 %defattr(644,root,root,755)
244 %{_aclocaldir}/*
245 %{_includedir}/epiphany
246 %{_pkgconfigdir}/*.pc
247 %{_datadir}/pygtk/*/defs/epiphany.defs
248
249 %files apidocs
250 %defattr(644,root,root,755)
251 %{_gtkdocdir}/*
This page took 0.060212 seconds and 2 git commands to generate.