- fix NoSource-md5 lines
[packages/chromium-browser-bin.git] / chromium-browser-bin.spec
CommitLineData
88dc1673
ER
1# NOTES:
2# - to look for new tarball, use update-source.sh script
741c7b60 3%define svnrev 117846
896f8072 4%define rel 2
836c9fbc
ER
5Summary: A WebKit powered web browser
6Name: chromium-browser-bin
741c7b60 7Version: 18.0.1010.0
611042d5 8Release: %{svnrev}.%{rel}
836c9fbc
ER
9License: BSD, LGPL v2+ (ffmpeg)
10Group: X11/Applications/Networking
d5dc1917 11# sh get_sources.sh
e0ca2098 12Source0: chromium-browser32-r%{svnrev}.zip
5f30e26b 13# NoSource0-md5:
e0ca2098 14Source1: chromium-browser64-r%{svnrev}.zip
5f30e26b 15# NoSource1-md5:
611042d5
ER
16NoSource: 0
17NoSource: 1
836c9fbc
ER
18Source2: chromium-browser.sh
19Source3: chromium-browser.desktop
20Source4: find-lang.sh
88dc1673 21Source5: update-source.sh
79fc7904 22BuildRequires: rpmbuild(macros) >= 1.453
a4446336 23BuildRequires: unzip
836c9fbc 24Requires: browser-plugins >= 2.0
4ef5ae7c 25Requires: libpng12 >= 1:1.2.42-2
836c9fbc
ER
26Requires: nspr
27Requires: nss
e5f0ca38 28Requires: xdg-utils >= 1.0.2-4
836c9fbc 29Provides: wwwbrowser
f85b15d8 30Conflicts: chromium-browser
05bb3b3c 31Obsoletes: %{name}-bookmark_manager
46c199b6 32ExclusiveArch: %{ix86} %{x8664}
836c9fbc
ER
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
836c9fbc
ER
35%define find_lang sh find-lang.sh %{buildroot}
36
7278b74d 37%define _enable_debug_packages 0
8859158d 38%define no_install_post_strip 1
7278b74d
ER
39
40%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so
41%define nspr_caps libnspr4.so libplc4.so libplds4.so
2c9f410e 42%define ffmpeg_caps libffmpegsumo.so
7278b74d
ER
43
44# list of script capabilities (regexps) not to be used in Provides
8eef7dee 45%define _noautoprov %{nss_caps} %{nspr_caps} %{ffmpeg_caps}
4ef5ae7c 46%define _noautoreq %{_noautoprov}
7278b74d 47
836c9fbc
ER
48%description
49Chromium is an open-source web browser, powered by WebKit.
50
73e56db3
ER
51%package inspector
52Summary: Page inspector for the chromium-browser
53Group: Development/Tools
54Requires: %{name} = %{version}-%{release}
55
56%description inspector
57Chromium is an open-source browser project that aims to build a safer,
58faster, and more stable way for all Internet users to experience the
59web.
60
61This package contains 'inspector', allowing web developpers to inspect
62any element of a web page at runtime (html, javascript, css, ..)
63
64%package l10n
65Summary: chromium-browser language packages
66Group: I18n
67Requires: %{name} = %{version}-%{release}
68
69%description l10n
70Chromium is an open-source browser project that aims to build a safer,
71faster, and more stable way for all Internet users to experience the
72web.
73
74This package contains language packages for 50 languages:
75
76ar, bg, bn, ca, cs, da, de, el, en-GB, es-419, es, et, fi, fil, fr,
77gu, he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, ml, mr, nb, nl, or,
78pl, pt-BR, pt-PT, ro, ru, sk, sl, sr, sv, ta, te, th, tr, uk, vi,
79zh-CN, zh-TW
80
836c9fbc 81%prep
46c199b6
ER
82%ifarch %{ix86}
83%setup -qcT -a0
84%endif
85%ifarch %{x8664}
86%setup -qcT -a1
87%endif
836c9fbc
ER
88%{__sed} -e 's,@localedir@,%{_libdir}/%{name},' %{SOURCE4} > find-lang.sh
89
90mv chrome-linux/product_logo_48.png .
8eef7dee 91mv chrome-linux/chrome.1 chromium-browser.1
836c9fbc
ER
92mv chrome-linux/chrome-wrapper .
93mv chrome-linux/{chrome,chromium-browser}
94chmod a+x chrome-linux/lib*.so*
95
e5f0ca38
ER
96# xdg-utils >= 1.0.2-4 satisfies these
97rm chrome-linux/xdg-settings
98rm chrome-linux/xdg-mime
99
836c9fbc
ER
100%install
101rm -rf $RPM_BUILD_ROOT
a9f00b64 102install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/plugins,%{_mandir}/man1,%{_pixmapsdir},%{_desktopdir},%{_libdir}/%{name}/themes}
836c9fbc
ER
103
104install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/chromium-browser
105%{__sed} -i -e 's,@libdir@,%{_libdir}/%{name},' $RPM_BUILD_ROOT%{_bindir}/chromium-browser
106cp -a chrome-linux/* $RPM_BUILD_ROOT%{_libdir}/%{name}
e5f0ca38
ER
107cp -p chromium-browser.1 $RPM_BUILD_ROOT%{_mandir}/man1
108cp -p product_logo_48.png $RPM_BUILD_ROOT%{_pixmapsdir}/chromium-browser.png
109cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
836c9fbc 110
79fc7904
ER
111%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
112
836c9fbc
ER
113# nspr symlinks
114for a in libnspr4.so libplc4.so libplds4.so; do
115 ln -s %{_libdir}/$a $RPM_BUILD_ROOT%{_libdir}/%{name}/$a.0d
116done
117# nss symlinks
118for a in libnss3.so libnssutil3.so libsmime3.so libssl3.so; do
119 ln -s %{_libdir}/$a $RPM_BUILD_ROOT%{_libdir}/%{name}/$a.1d
120done
121
122# find locales
123%find_lang %{name}.lang
73e56db3 124%{__sed} -i -e '/en-US.pak/d' %{name}.lang
836c9fbc
ER
125
126%clean
127rm -rf $RPM_BUILD_ROOT
128
79fc7904
ER
129%post
130%update_browser_plugins
131
132%postun
133if [ "$1" = 0 ]; then
134 %update_browser_plugins
135fi
136
73e56db3 137%files
836c9fbc 138%defattr(644,root,root,755)
79fc7904
ER
139
140%{_browserpluginsconfdir}/browsers.d/%{name}.*
141%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
142
836c9fbc
ER
143%attr(755,root,root) %{_bindir}/chromium-browser
144%{_mandir}/man1/chromium-browser.1*
145%{_pixmapsdir}/chromium-browser.png
146%{_desktopdir}/*.desktop
147%dir %{_libdir}/%{name}
eb192217 148%{_libdir}/%{name}/resources.pak
836c9fbc
ER
149%{_libdir}/%{name}/chrome.pak
150%dir %{_libdir}/%{name}/locales
73e56db3 151%{_libdir}/%{name}/locales/en-US.pak
79fc7904 152%dir %{_libdir}/%{name}/plugins
73e56db3 153%dir %{_libdir}/%{name}/resources
a9f00b64 154%{_libdir}/%{name}/themes
836c9fbc 155%attr(755,root,root) %{_libdir}/%{name}/chromium-browser
06604578 156
836c9fbc
ER
157# These unique permissions are intentional and necessary for the sandboxing
158%attr(4555,root,root) %{_libdir}/%{name}/chrome_sandbox
159
65589e46
CM
160# Native Client plugin, to use launch with --enable-nacl
161%attr(755,root,root) %{_libdir}/%{name}/libppGoogleNaClPluginChrome.so
72dcf251 162#%{_libdir}/%{name}/nacl_irt_x86_64.nexe
65589e46 163
836c9fbc 164# ffmpeg libs
bc0a4b46 165%attr(755,root,root) %{_libdir}/%{name}/libffmpegsumo.so
836c9fbc
ER
166
167# nspr/nss symlinks
79fc7904
ER
168%attr(755,root,root) %{_libdir}/%{name}/libnspr4.so.0d
169%attr(755,root,root) %{_libdir}/%{name}/libplc4.so.0d
170%attr(755,root,root) %{_libdir}/%{name}/libplds4.so.0d
171%attr(755,root,root) %{_libdir}/%{name}/libnss3.so.1d
172%attr(755,root,root) %{_libdir}/%{name}/libnssutil3.so.1d
173%attr(755,root,root) %{_libdir}/%{name}/libsmime3.so.1d
174%attr(755,root,root) %{_libdir}/%{name}/libssl3.so.1d
175
73e56db3
ER
176%files inspector
177%defattr(644,root,root,755)
178%{_libdir}/%{name}/resources/inspector
179
180%files l10n -f %{name}.lang
181%defattr(644,root,root,755)
This page took 0.072916 seconds and 4 git commands to generate.