summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:18:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:18:17 +0000
commit9e4c610bf485443d9c80e63ddbfd1f813d07f971 (patch)
treec22c6052d7f9662176bae8876af489fb45999b62
parent5614ed6205f669f6f0bdb71a2cf7045344e644a3 (diff)
automatic import of python-adblock
-rw-r--r--.gitignore1
-rw-r--r--python-adblock.spec266
-rw-r--r--sources1
3 files changed, 268 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e691551 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/adblock-0.6.0.tar.gz
diff --git a/python-adblock.spec b/python-adblock.spec
new file mode 100644
index 0000000..5e5fa8a
--- /dev/null
+++ b/python-adblock.spec
@@ -0,0 +1,266 @@
+%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
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..016b0ac
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+46e5f48fce555c1cf8a979118c781e7a adblock-0.6.0.tar.gz