%global _empty_manifest_terminate_build 0 Name: python-adblock Version: 0.6.0 Release: 1 Summary: please add a summary manually as the author left a blank one License: MIT OR Apache-2.0 URL: https://github.com/ArniDagur/python-adblock Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f2/62/f77f4ef114a74e15104675a1e0f77302aad72bcc0bfcdda867e4c24f7ffe/adblock-0.6.0.tar.gz %description # python-adblock Python wrapper for Brave's adblocking library, which is written in Rust. ### Building from source #### Build dependencies | Build Dependency | Versions | Arch Linux | Url | | ---------------- | -------- | ---------- | ------------------------------- | | Python | `>=3.7` | `python` | - | | Rust | `>=1.53` | `rust` | - | | Maturin | `>=0.10` | `maturin` | https://github.com/PyO3/maturin | #### PEP 517 The `python-adblock` library is [PEP 517](https://www.python.org/dev/peps/pep-0517/) compatible, so you can build and install it from source, simply by running ``` pip install . ``` from the root of this directory. #### Wheels To create a wheel for this library, run the following command ``` maturin build --release --no-sdist --out dist/ ``` the result can be found in the `dist/` directory. ### Developing I use Poetry for development. To create and enter a virtual environment, do ``` poetry install poetry shell ``` then, to install the `adblock` module into the virtual environment, do ``` maturin develop ``` ### Documentation Rust documentation for the latest `master` branch can be found at https://arnidagur.github.io/python-adblock/docs/adblock/index.html. ### License This project is licensed under either of - Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) at your option. %package -n python3-adblock Summary: please add a summary manually as the author left a blank one Provides: python-adblock BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-cffi BuildRequires: gcc BuildRequires: gdb %description -n python3-adblock # python-adblock Python wrapper for Brave's adblocking library, which is written in Rust. ### Building from source #### Build dependencies | Build Dependency | Versions | Arch Linux | Url | | ---------------- | -------- | ---------- | ------------------------------- | | Python | `>=3.7` | `python` | - | | Rust | `>=1.53` | `rust` | - | | Maturin | `>=0.10` | `maturin` | https://github.com/PyO3/maturin | #### PEP 517 The `python-adblock` library is [PEP 517](https://www.python.org/dev/peps/pep-0517/) compatible, so you can build and install it from source, simply by running ``` pip install . ``` from the root of this directory. #### Wheels To create a wheel for this library, run the following command ``` maturin build --release --no-sdist --out dist/ ``` the result can be found in the `dist/` directory. ### Developing I use Poetry for development. To create and enter a virtual environment, do ``` poetry install poetry shell ``` then, to install the `adblock` module into the virtual environment, do ``` maturin develop ``` ### Documentation Rust documentation for the latest `master` branch can be found at https://arnidagur.github.io/python-adblock/docs/adblock/index.html. ### License This project is licensed under either of - Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) at your option. %package help Summary: Development documents and examples for adblock Provides: python3-adblock-doc %description help # python-adblock Python wrapper for Brave's adblocking library, which is written in Rust. ### Building from source #### Build dependencies | Build Dependency | Versions | Arch Linux | Url | | ---------------- | -------- | ---------- | ------------------------------- | | Python | `>=3.7` | `python` | - | | Rust | `>=1.53` | `rust` | - | | Maturin | `>=0.10` | `maturin` | https://github.com/PyO3/maturin | #### PEP 517 The `python-adblock` library is [PEP 517](https://www.python.org/dev/peps/pep-0517/) compatible, so you can build and install it from source, simply by running ``` pip install . ``` from the root of this directory. #### Wheels To create a wheel for this library, run the following command ``` maturin build --release --no-sdist --out dist/ ``` the result can be found in the `dist/` directory. ### Developing I use Poetry for development. To create and enter a virtual environment, do ``` poetry install poetry shell ``` then, to install the `adblock` module into the virtual environment, do ``` maturin develop ``` ### Documentation Rust documentation for the latest `master` branch can be found at https://arnidagur.github.io/python-adblock/docs/adblock/index.html. ### License This project is licensed under either of - Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) at your option. %prep %autosetup -n adblock-0.6.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-adblock -f filelist.lst %dir %{python3_sitearch}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 25 2023 Python_Bot - 0.6.0-1 - Package Spec generated