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