15
0

Accepting request 887098 from home:mia

Recommended by qutebrowser. Depends on python-maturin, see sr#887097

OBS-URL: https://build.opensuse.org/request/show/887098
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-adblock?expand=0&rev=1
This commit is contained in:
2021-04-21 22:31:24 +00:00
committed by Git OBS Bridge
commit a5629fe725
6 changed files with 97 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:797cc2bff82e712f867fdb1b7b07ae0dda67020526bddf6413cc97519169d600
size 22207

4
python-adblock.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Apr 20 20:51:41 UTC 2021 - Mia Herkt <mia@0x0.st>
- init, 0.4.4

63
python-adblock.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# spec file for package python-adblock
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-adblock
Version: 0.4.4
Release: 0
Summary: Brave's adblock library in Python
License: MIT OR Apache-2.0
URL: https://pypi.org/project/adblock/
Source: https://github.com/ArniDagur/python-adblock/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: %{python_module maturin}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: rust-packaging
ExclusiveArch: %{rust_arches}
%python_subpackages
%description
Python wrapper for Brave's adblocking library.
%prep
%setup -q
# build flavor-specific versions -- otherwise py3.9 wheel will not work
sed -i 's/"abi3-py36", //' Cargo.toml
tar xf %{SOURCE1}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch
%files %{python_files}
%license LICENSE-APACHE LICENSE-MIT
%doc CHANGELOG.md README.md
%{python_sitearch}/*
%changelog

3
vendor.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3387b5db7e751c94cb5b9cc54b417834ca007bf67aefbcdce163efe5c526e487
size 12166860