~fnux/qutebrowser-adblock-rpm

ref: 10242c41df4951b0e46c65e160c39f9116f9c115 qutebrowser-adblock-rpm/python-adblock/python-adblock.spec -rw-r--r-- 1.4 KiB
10242c41Timothée Floure Bump python-adblock 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%global srcname adblock

Name:           python-%{srcname}
Version:        0.4.4
Release:        1%{?dist}
Summary:        Python wrapper for Brave's adblocking library

License:        MIT and ASL 2.0
URL:            https://pypi.org/project/adblock/
Source0:        %{pypi_source}

BuildRequires:  python3-devel
BuildRequires:  rust-packaging
BuildRequires:  maturin
BuildRequires:  unzip

%global _description Python wrapper for Brave's adblocking library, which is \
written in Rust.

%description
%{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{srcname}
%{_description}

%prep
%autosetup -n %{srcname}-%{version}

%build
maturin build --release
unzip -d target/wheels/ target/wheels/%{srcname}-%{version}-*.whl

%install
mkdir -p %{buildroot}/%{python3_sitelib}/
cp -r target/wheels/%{srcname} %{buildroot}/%{python3_sitelib}/
cp -r target/wheels/%{srcname}-%{version}.dist-info  %{buildroot}/%{python3_sitelib}/

%files -n python3-%{srcname}
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md
%{python3_sitelib}/%{srcname}-%{version}.dist-info/
%{python3_sitelib}/%{srcname}/

%changelog
* Sun May 29 2021 Timothée Floure <fnux@fedoraproject.org> - 0.4.4-1
- New upstream release.

* Sun Mar 28 2021 Timothée Floure <fnux@fedoraproject.org> - 0.4.3-1
- Let there be package.