15
0

- update to 0.6.0:

* Drop Python 3.7
  * Update README
  * Fix badge
  * Add GA to dependabot.yml
  * Remove experimental.new-installer

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-browsers?expand=0&rev=2
This commit is contained in:
2024-11-09 15:25:22 +00:00
committed by Git OBS Bridge
parent be06e8b356
commit 74e964f770
7 changed files with 20 additions and 30 deletions

View File

@@ -1,6 +1,7 @@
#
# spec file for package python-browsers
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
#
# All modifications and additions to the file contributed by third parties
@@ -26,21 +27,20 @@
%endif
%define appname browsers
Name: python-%{appname}%{psuffix}
Version: 0.5.2
Version: 0.6.0
Release: 0
Summary: Library for detecting and launching browsers
License: MIT
URL: https://github.com/roniemartinez/browsers
Source: _service
Source0: https://github.com/roniemartinez/browsers/archive/refs/tags/%{version}.tar.gz
# - test with Chromium instead of unavailable proprietary Chrome
# - adjust Firefox .desktop entry name
# - add Firefox to launch test
Patch0: test.patch
# - adjust Chromium .desktop file name
# - adjust Chromium .desktop file name
Patch1: chromium.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{pythons}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python3-pyxdg
@@ -64,13 +64,11 @@ BuildRequires: distribution-release
Python library for detecting and launching browsers
%prep
%autosetup -p1 -DTn %{_sourcedir}/%{appname}-%{version}
%autosetup -p1 -n %{appname}-%{version}
sed -i '/pywin32/d' pyproject.toml
%build
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
@@ -89,7 +87,7 @@ rm -r /home/abuild/.config
%license LICENSE
%doc README.md
%dir %{python_sitelib}/%{appname}
%{python_sitelib}/py%{appname}-%{version}*-info
%{python_sitelib}/py%{appname}-%{version}.dist-info
%{python_sitelib}/%{appname}/*.py
%pycache_only %{python_sitelib}/%{appname}/__pycache__
%endif