You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
3.9 KiB
138 lines
3.9 KiB
#%%global __requires_exclude_from ^/opt/yandex/browser/libqt.*so$
|
|
%global yandex_browser_path /opt/yandex/browser
|
|
%global _build_id_links none
|
|
|
|
Summary: Yandex Browser Corporate
|
|
Name: yandex-browser-corporate
|
|
Version: 24.10.4.842
|
|
Release: 1%{?dist}
|
|
|
|
License: Multiple, see https://yandex.ru/legal/browser_agreement/
|
|
Url: https://browser.yandex.ru/
|
|
Source0: yandex-browser-stable-%{version}-1.x86_64.rpm
|
|
Source1: yandex-browser-corporate.rpmlintrc
|
|
Source2: yandex-browser.appdata.xml
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
Requires: ca-certificates
|
|
Requires: wget
|
|
Requires: xdg-utils
|
|
Requires: chromium-ffmpeg%{_isa}
|
|
|
|
Conflicts: yandex-browser-stable
|
|
Conflicts: yandex-browser-beta
|
|
|
|
%description
|
|
The web browser from Yandex
|
|
Yandex Browser is a browser that combines a minimal design with sophisticated
|
|
technology to make the web faster, safer, and easier.
|
|
|
|
%package qt5-ui
|
|
Summary: Qt5 UI built from Yandex Browser
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
|
%description qt5-ui
|
|
Qt5 UI for Yandex Browser.
|
|
|
|
|
|
%package qt6-ui
|
|
Summary: Qt6 UI built from Yandex Browser
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
|
%description qt6-ui
|
|
Qt6 UI for Yandex Browser.
|
|
|
|
%prep
|
|
|
|
%build
|
|
|
|
%install
|
|
pushd %{buildroot}
|
|
cat %{SOURCE0} | rpm2archive - | tar -xvz
|
|
popd
|
|
|
|
# create yandex corporate icons
|
|
for png in 16 24 32 48 64 128 256 512; do
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${png}x${png}/apps
|
|
install -m644 %{buildroot}%{yandex_browser_path}/product_logo_${png}.png \
|
|
%{buildroot}%{_datadir}/icons/hicolor/${png}x${png}/apps/%{name}.png
|
|
done
|
|
|
|
rm -rf %{buildroot}%{_datadir}/kf5
|
|
|
|
# Hotfix desktop file
|
|
sed -i 's@Icon=yandex-browser@Icon=yandex-browser-corporate@g' \
|
|
%{buildroot}%{_datadir}/applications/yandex-browser.desktop
|
|
sed -i '/Name=Yandex Browser/aName[ru]=Яндекс Браузер' \
|
|
%{buildroot}%{_datadir}/applications/yandex-browser.desktop
|
|
|
|
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/yandex-browser.appdata.xml
|
|
|
|
# link libffmpeg with chromium package
|
|
pushd %{buildroot}%{yandex_browser_path}/
|
|
ln -sf ../../../usr/lib64/chromium-browser/libffmpeg.so
|
|
popd
|
|
|
|
# Fix symlink
|
|
rm -f %{buildroot}%{_bindir}/yandex-browser-corporate
|
|
ln -sr %{buildroot}%{yandex_browser_path}/yandex-browser \
|
|
%{buildroot}%{_bindir}/yandex-browser-corporate
|
|
|
|
# Skip setup of Yandex Browser repo
|
|
rm -rf %{buildroot}%{_sysconfdir}/cron.daily
|
|
|
|
%post
|
|
update-desktop-database &> /dev/null || :
|
|
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
|
%postun
|
|
update-desktop-database &> /dev/null || :
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_datadir}/icons/hicolor || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
fi
|
|
|
|
%posttrans
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%files
|
|
%config %{_sysconfdir}/xdg/autostart/yandex-browser_user_setup.desktop
|
|
%{_bindir}/yandex-browser*
|
|
%{_datadir}/appdata/yandex-browser.appdata.xml
|
|
%{_datadir}/applications/yandex-browser.desktop
|
|
%{_datadir}/gnome-control-center/default-apps/yandex-browser.xml
|
|
%{_datadir}/icons/hicolor
|
|
%dir /opt/yandex/
|
|
%{yandex_browser_path}
|
|
%exclude %{yandex_browser_path}/libqt*_shim.so
|
|
%{_mandir}/man1/yandex*
|
|
|
|
%files qt5-ui
|
|
%{yandex_browser_path}/libqt5_shim.so
|
|
|
|
%files qt6-ui
|
|
%{yandex_browser_path}/libqt6_shim.so
|
|
|
|
%changelog
|
|
* Wed Dec 18 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.10.4.842-1
|
|
- Update to 24.10.4.842
|
|
|
|
* Wed Dec 18 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.10.4.814-1
|
|
- Update to 24.10.4.814
|
|
|
|
* Tue Oct 22 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.7.6.1037-2
|
|
- Fix appdata file
|
|
|
|
* Wed Oct 16 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.7.6.1037-1.inferit
|
|
- Update to 24.7.6.1037
|
|
|
|
* Mon Sep 02 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.7.1.1195-1
|
|
- Update to 24.7.1.1195
|
|
|
|
* Wed Aug 07 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.6.4.669-1
|
|
- Update to 24.6.4.669
|
|
|
|
* Sat Jul 27 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 24.6.1.858-1
|
|
- Repack official Yandex Browser Corporate
|