## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} Name: floorp Version: 11.18.1 Release: %autorelease Summary: Floorp Web Browser License: MPLv2.0 URL: https://github.com/Floorp-Projects/Floorp Source0: https://github.com/Floorp-Projects/Floorp/releases/download/v%{version}/floorp-%{version}.linux-x86_64.tar.bz2 Source1: floorp.desktop Source2: policies.json ExclusiveArch: x86_64 Requires(post): gtk-update-icon-cache %description A Browser built for keeping the web Open, Private and Sustainable. Based on Mozilla Firefox. %prep %setup -q -n floorp %install install -d %{buildroot}{/opt/floorp,%{_bindir},%{_datadir}/applications,%{_datadir}/icons/hicolor/128x128/apps,%{_datadir}/icons/hicolor/64x64/apps,%{_datadir}/icons/hicolor/48x48/apps,%{_datadir}/icons/hicolor/32x32/apps,%{_datadir}/icons/hicolor/16x16/apps} cp -r * %{buildroot}/opt/floorp install -Dm644 %{SOURCE1} -t %{buildroot}%{_datadir}/applications install -Dm444 %{SOURCE2} -t %{buildroot}/opt/floorp/distribution ln -s ../../../../../../opt/floorp/browser/chrome/icons/default/default128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/floorp.png ln -s ../../../../../../opt/floorp/browser/chrome/icons/default/default64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/floorp.png ln -s ../../../../../../opt/floorp/browser/chrome/icons/default/default48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/floorp.png ln -s ../../../../../../opt/floorp/browser/chrome/icons/default/default32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/floorp.png ln -s ../../../../../../opt/floorp/browser/chrome/icons/default/default16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/floorp.png install -Dm755 /dev/stdin "%{buildroot}%{_bindir}/floorp" << END #!/bin/sh exec /opt/floorp/floorp "\$@" END %post gtk-update-icon-cache -f -t %{_datadir}/icons/hicolor %files %{_datadir}/applications/floorp.desktop %{_datadir}/icons/hicolor/128x128/apps/floorp.png %{_datadir}/icons/hicolor/64x64/apps/floorp.png %{_datadir}/icons/hicolor/48x48/apps/floorp.png %{_datadir}/icons/hicolor/32x32/apps/floorp.png %{_datadir}/icons/hicolor/16x16/apps/floorp.png %{_bindir}/floorp /opt/floorp %changelog ## START: Generated by rpmautospec * Thu Sep 26 2024 John Doe - 11.18.1-1 - Uncommitted changes ## END: Generated by rpmautospec