## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 cargo_install_lib 0 %global gittag refs/tags Name: selenium-manager Version: 4.27.0 Release: %autorelease Summary: Selenium Manager provides automated driver and browser management for Selenium License: Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND MIT AND BSL-1.0 AND OBSD AND BSD-3-CLAUSE AND ISC AND OpenSSL AND Zlib AND MPL-2.0 URL: https://github.com/SeleniumHQ/selenium Source0: %{url}/archive/selenium-%{version}.tar.gz # Patches allows for buillding without dependencies which are by default # unconditionally pulled even do they aren't required Patch0: 0001-remove-unnecessary-dependencies.patch Patch1: 0001-remove-unsupported-function.patch BuildRequires: cargo-rpm-macros >= 24 %description Selenium is an umbrella project encapsulating a variety of tools and libraries enabling web browser automation %prep %autosetup -n selenium-selenium-%{version}/rust/ -N %patch -P 0 cd src %patch -P 1 cd .. %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %files %license ../LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/selenium-manager %changelog ## START: Generated by rpmautospec * Tue Jan 21 2025 John Doe - 4.27.0-1 - Uncommitted changes ## END: Generated by rpmautospec