- binary build, based on chromium-browser.spec
[packages/chromium-browser-bin.git] / chromium-browser-bin.spec
1 %define         svnver  26865
2 %define         rel             0.1
3 Summary:        A WebKit powered web browser
4 Name:           chromium-browser-bin
5 Version:        4.0.212.0
6 Release:        0.%{svnver}.%{rel}
7 License:        BSD, LGPL v2+ (ffmpeg)
8 Group:          X11/Applications/Networking
9 Source0:        http://build.chromium.org/buildbot/snapshots/chromium-rel-linux-64/%{svnver}/chrome-linux.zip
10 # NoSource0-md5:        e071fd30aa2de0eec10bcf5e16ca917b
11 NoSource:       0
12 Source2:        chromium-browser.sh
13 Source3:        chromium-browser.desktop
14 Source4:        find-lang.sh
15 Requires:       browser-plugins >= 2.0
16 Requires:       nspr
17 Requires:       nss
18 Provides:       wwwbrowser
19 ExclusiveArch:  %{x8664}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _enable_debug_packages  0
23 %define         find_lang       sh find-lang.sh %{buildroot}
24
25 %description
26 Chromium is an open-source web browser, powered by WebKit.
27
28 %prep
29 %setup -qc
30 %{__sed} -e 's,@localedir@,%{_libdir}/%{name},' %{SOURCE4} > find-lang.sh
31
32 mv chrome-linux/product_logo_48.png .
33 mv chrome-linux/xdg-settings .
34 mv chrome-linux/chromium-browser.1 .
35 mv chrome-linux/chrome-wrapper .
36 mv chrome-linux/{chrome,chromium-browser}
37 chmod a+x chrome-linux/lib*.so*
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_mandir}/man1,%{_pixmapsdir},%{_desktopdir}}
42
43 install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/chromium-browser
44 %{__sed} -i -e 's,@libdir@,%{_libdir}/%{name},' $RPM_BUILD_ROOT%{_bindir}/chromium-browser
45 cp -a chrome-linux/* $RPM_BUILD_ROOT%{_libdir}/%{name}
46 cp -a chromium-browser.1 $RPM_BUILD_ROOT%{_mandir}/man1
47 cp -a product_logo_48.png $RPM_BUILD_ROOT%{_pixmapsdir}/chromium-browser.png
48 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
49
50 # nspr symlinks
51 for a in libnspr4.so libplc4.so libplds4.so; do
52         ln -s %{_libdir}/$a $RPM_BUILD_ROOT%{_libdir}/%{name}/$a.0d
53 done
54 # nss symlinks
55 for a in libnss3.so libnssutil3.so libsmime3.so libssl3.so; do
56         ln -s %{_libdir}/$a $RPM_BUILD_ROOT%{_libdir}/%{name}/$a.1d
57 done
58
59 # find locales
60 %find_lang %{name}.lang
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files -f %{name}.lang
66 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/chromium-browser
68 %{_mandir}/man1/chromium-browser.1*
69 %{_pixmapsdir}/chromium-browser.png
70 %{_desktopdir}/*.desktop
71 %dir %{_libdir}/%{name}
72 %{_libdir}/%{name}/chrome.pak
73 %dir %{_libdir}/%{name}/locales
74 %{_libdir}/%{name}/resources
75 %{_libdir}/%{name}/themes
76 %attr(755,root,root) %{_libdir}/%{name}/chromium-browser
77 # These unique permissions are intentional and necessary for the sandboxing
78 %attr(4555,root,root) %{_libdir}/%{name}/chrome_sandbox
79
80 # ffmpeg libs
81 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libavcodec.so.52
82 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libavformat.so.52
83 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libavutil.so.50
84
85 # nspr/nss symlinks
86 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libnspr4.so.0d
87 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libplc4.so.0d
88 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libplds4.so.0d
89 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libnss3.so.1d
90 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libnssutil3.so.1d
91 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libsmime3.so.1d
92 %attr(755,root,root) %{_libdir}/chromium-browser-bin/libssl3.so.1d
This page took 0.036308 seconds and 3 git commands to generate.