commit a5629fe72563eb67197e8842f9faeb6489f742d8f4613f06b9a1bc69c644dcf7 Author: Matej Cepl Date: Wed Apr 21 22:31:24 2021 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-adblock-0.4.4.tar.gz b/python-adblock-0.4.4.tar.gz new file mode 100644 index 0000000..9c8d83c --- /dev/null +++ b/python-adblock-0.4.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:797cc2bff82e712f867fdb1b7b07ae0dda67020526bddf6413cc97519169d600 +size 22207 diff --git a/python-adblock.changes b/python-adblock.changes new file mode 100644 index 0000000..052d8d8 --- /dev/null +++ b/python-adblock.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 20 20:51:41 UTC 2021 - Mia Herkt + +- init, 0.4.4 diff --git a/python-adblock.spec b/python-adblock.spec new file mode 100644 index 0000000..f2a453b --- /dev/null +++ b/python-adblock.spec @@ -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 diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..7fc986a --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3387b5db7e751c94cb5b9cc54b417834ca007bf67aefbcdce163efe5c526e487 +size 12166860