Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Podeiko:NonFree
opera
opera.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opera.spec of Package opera
# # spec file for package opera # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global __provides_exclude_from ^%{_libdir}/opera/.*\\.so.*$ # libffmpeg.so* and libfreetype.so* are currently bundled. %global __requires_exclude ^lib(ffmpeg|freetype)\\.so.*$ %ifarch x86_64 %define deb_arch amd64 %define alt_deb_arch i386 %else %define deb_arch i386 %define alt_deb_arch amd64 %endif Name: opera Version: 45.0.2552.635 Release: 0 Summary: Proprietary web browser License: SUSE-NonFree Group: Productivity/Networking/Web/Browsers Url: https://opera.com/ Source0: http://get.geo.opera.com/ftp/pub/%{name}/desktop/%{version}/linux/%{name}-stable_%{version}_%{deb_arch}.deb Source1: http://get.geo.opera.com/ftp/pub/%{name}/desktop/%{version}/linux/%{name}-stable_%{version}_%{alt_deb_arch}.deb Source2: %{name}.appdata.xml Source3: %{name}.sh.in BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: update-desktop-files BuildRequires: xz Recommends: chromium-pepper-flash Recommends: ffmpeg # opera-gtk and opera-kde4 were last used in openSUSE 13.1. Provides: %{name}-gtk = %{version} Obsoletes: %{name}-gtk < %{version} Provides: %{name}-kde4 = %{version} Obsoletes: %{name}-kde4 < %{version} # rpmlint has a memory error with the IA32 build. #ExclusiveArch: %ix86 x86_64 ExclusiveArch: x86_64 %description Opera is a proprietary, fast, and user-friendly web browser. It includes web developer tools, news aggregation, and the ability to compress data via Opera Turbo on congested networks. %prep ar -x %{SOURCE0} tar -xf data.tar.xz rm -f data.tar.xz cp -f %{SOURCE2} %{name}.appdata.xml mv -f .%{_datadir}/doc/%{name}-stable/copyright COPYING gzip -d .%{_datadir}/doc/%{name}-stable/changelog.gz mv -f .%{_datadir}/doc/%{name}-stable/changelog ChangeLog sed -i 's/^\(TargetEnvironment\)/X-\1/' .%{_datadir}/applications/%{name}.desktop sed \ -e 's|__LIBDIR__|%{_libdir}|g' \ -e 's|__SYSCONFDIR__|%{_sysconfdir}|g' \ %{SOURCE3} > %{name}.sh cat > %{name}.conf << EOF # Default settings for opera. This file is sourced by /usr/bin/opera. # Options to pass to opera. OPERA_FLAGS="" EOF %build # Nothing to build. %install mkdir -p %{buildroot}%{_libdir}/ cp -a .%{_libexecdir}/*-linux-gnu/%{name} %{buildroot}%{_libdir}/%{name} install -Dpm 0755 %{name}.sh %{buildroot}%{_bindir}/%{name} install -Dpm 0644 .%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop cp -a .%{_datadir}/icons/ %{buildroot}%{_datadir}/ install -Dpm 0755 %{name}.sh %{buildroot}%{_bindir}/%{name} install -Dpm 0644 %{name}.conf %{buildroot}%{_sysconfdir}/default/%{name} # Fix rpmlint warning - ab_tests.json is not suposed to be executable. chmod -x %{buildroot}%{_libdir}/%{name}/resources/ab_tests.json # https://en.opensuse.org/openSUSE:AppStore install -Dpm 0644 %{name}.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %fdupes %{buildroot}%{_libdir}/ %post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %icon_theme_cache_postun %files %defattr(-,root,root) %doc ChangeLog COPYING %config(noreplace) %{_sysconfdir}/default/%{name} %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/* %dir %{_datadir}/appdata/ %{_datadir}/appdata/%{name}.appdata.xml %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor