]> git.pld-linux.org Git - packages/opera.git/blame - opera.spec
update to 31.0.1889.174
[packages/opera.git] / opera.spec
CommitLineData
a79ddb02
AM
1# BRANCHES:
2# - HEAD - stable version
3# - DEVEL - development version
083d2812 4# - WEEKLY - weekly development version
ad7d3ceb 5# - NEXT - opera next
083d2812
AM
6#
7# NOTE: to avoid creating unreadable/unmaintainable spec:
8# - don't put static version here, create STATIC branch for that for example
9# - don't create useless bconds that for example limit SourceX: to current arch only
10#
edbbe593 11
ecc19257 12Summary: Opera browser
048a8afa 13Summary(hu.UTF-8): A világ leggyorsabb webböngészője
0580138e 14Summary(pl.UTF-8): Najszybsza przeglądarka WWW na świecie
40d43d2d 15Name: opera
ecc19257
ER
16Version: 31.0.1889.174
17Release: 0.2
94132831 18Epoch: 2
ae712f51 19License: Distributable
40d43d2d 20Group: X11/Applications/Networking
ecc19257
ER
21Source10: ftp://ftp.opera.com/pub/opera/desktop/%{version}/linux/%{name}-stable_%{version}_amd64.deb
22# Source10-md5: 71d13017ca60bbf4619dc3faf58fd94e
083d2812 23Source0: %{name}.desktop
c0208be9 24Source1: %{name}.sh
25718300 25Patch1: %{name}-desktop.patch
8cb331c2 26URL: http://www.opera.com/
55fc796b 27BuildRequires: rpm >= 4.4.9-56
f6dbdb8e 28BuildRequires: rpmbuild(macros) >= 1.356
6eebcb83 29BuildRequires: sed >= 4.0
f486f8e4 30BuildRequires: xz
ea04865f
AF
31Requires(post,postun): gtk-update-icon-cache
32Requires(post,postun): hicolor-icon-theme
9c325492 33Requires(post,postun): shared-mime-info
f6dbdb8e 34Requires: browser-plugins >= 2.0
c33af227 35Requires: desktop-file-utils
3b8cc5d5 36Provides: wwwbrowser
37147bb6 37Obsoletes: opera-i18n
ecc19257 38ExclusiveArch: %{x8664}
8cb331c2 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1e3271ab 40
0539d577 41%define _enable_debug_packages 0
ecc19257 42%define no_install_post_strip 1
8cb331c2 43
44%description
45Opera is world fastest web browser. It supports most of nowaday
55fc796b
ER
46extensions of HTML. And it is quite stable. This version is linked
47with shared version of Qt.
8cb331c2 48
048a8afa
ZU
49%description -l hu.UTF-8
50Opera a világ leggyorsabb webböngészője. A manapság elterjedt
51HTML-kiterjesztések túlnyomó többségét támogatja. És elég stabili is.
52Ez a verzió a Qt megosztott verziójához linkelődik.
53
14283174
JR
54%description -l pl.UTF-8
55Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość
56dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna. Ta
083d2812 57wersja jest skonsolidowana dynamicznie z Qt.
37147bb6 58
8cb331c2 59%prep
ecc19257 60%setup -qcT
083d2812 61%ifarch %{x8664}
ecc19257 62SOURCE=%{S:10}
3009d733 63%endif
07d1040c 64
ecc19257
ER
65ar x $SOURCE
66tar xf control.tar.gz && rm control.tar.gz
67tar xf data.tar.xz && rm data.tar.xz
c0208be9 68
ecc19257
ER
69version=$(awk '/Version:/{print $2}' control)
70test $version = %{version}
25718300 71
ecc19257
ER
72mv usr/lib/*/%{name}/* .
73mv usr/share/icons .
74mv usr/share/pixmaps/%{name}.xpm .
75mv usr/share/applications/%{name}.desktop .
76mv usr/share/doc/opera-stable/* .
25718300 77
25718300
AM
78%patch1 -p1
79
8cb331c2 80%install
81rm -rf $RPM_BUILD_ROOT
ecc19257
ER
82install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_libdir}/%{name}/plugins,%{_datadir}/%{name}} \
83 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_iconsdir},%{_desktopdir}}
8cb331c2 84
f6dbdb8e
ER
85%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF'
86# opera does not use for .xpt files
87*.xpt
0539d577
AM
88EOF
89
ecc19257
ER
90cp -a localization resources $RPM_BUILD_ROOT%{_datadir}/%{name}
91cp -p *.pak *.bin *.dat $RPM_BUILD_ROOT%{_libdir}/%{name}
92cp -a lib $RPM_BUILD_ROOT%{_libdir}/%{name}
93ln -s %{_datadir}/%{name}/localization $RPM_BUILD_ROOT%{_libdir}/%{name}/localization
94ln -s %{_datadir}/%{name}/resources $RPM_BUILD_ROOT%{_libdir}/%{name}/resources
95install -p %{name} $RPM_BUILD_ROOT%{_libdir}/%{name}
96#install -p %{name}-bin $RPM_BUILD_ROOT%{_libdir}/%{name}
97install -p %{name}_sandbox $RPM_BUILD_ROOT%{_libdir}/%{name}
98ln -s %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
99cp -p %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
100cp -a icons/* $RPM_BUILD_ROOT%{_iconsdir}
201511be 101
8cb331c2 102%clean
103rm -rf $RPM_BUILD_ROOT
104
f6dbdb8e 105%post
25718300 106%update_icon_cache hicolor
ecc19257 107%update_desktop_database
f6dbdb8e
ER
108%update_browser_plugins
109
110%postun
083d2812 111if [ "$1" = 0 ]; then
ecc19257
ER
112 %update_icon_cache hicolor
113 %update_desktop_database
083d2812
AM
114 %update_browser_plugins
115fi
116
8cb331c2 117%files
118%defattr(644,root,root,755)
ecc19257 119%doc copyright
07d1040c
AM
120%{_browserpluginsconfdir}/browsers.d/%{name}.*
121%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
9c325492 122
ecc19257 123%attr(755,root,root) %{_bindir}/%{name}
7b1a5f81 124%{_desktopdir}/*.desktop
07d1040c 125%{_iconsdir}/hicolor/*/*/*.png
671735f8 126
ecc19257
ER
127%dir %{_datadir}/%{name}
128%dir %{_datadir}/%{name}/resources
129%{_datadir}/%{name}/resources/*.ico
130%{_datadir}/%{name}/resources/*.json
131%{_datadir}/%{name}/resources/dictionaries.xml
132%{_datadir}/%{name}/resources/inspector
133%{_datadir}/%{name}/localization
134
135%dir %{_libdir}/%{name}
136%{_libdir}/%{name}/icudtl.dat
137%{_libdir}/%{name}/natives_blob.bin
138%{_libdir}/%{name}/snapshot_blob.bin
139%{_libdir}/%{name}/*.pak
140%{_libdir}/%{name}/localization
141%{_libdir}/%{name}/resources
142%dir %{_libdir}/%{name}/lib
143%attr(755,root,root) %{_libdir}/%{name}/lib/libffmpeg.so.*
144%attr(755,root,root) %{_libdir}/%{name}/lib/libmalloc_wrapper.so
145%dir %{_libdir}/%{name}/plugins
146
147%attr(755,root,root) %{_libdir}/%{name}/%{name}
148# These unique permissions are intentional and necessary for the sandboxing
149%attr(4555,root,root) %{_libdir}/%{name}/%{name}_sandbox
This page took 0.088509 seconds and 4 git commands to generate.