~fnux/qutebrowser-adblock-rpm

ref: 0a6cd2476115145b745e84d9d7eedb6c2f5e4dda qutebrowser-adblock-rpm/python-adblock/python-adblock.spec -rw-r--r-- 1.3 KiB
0a6cd247Timothée Floure [python-adblock] remove unwanted tabs from description 1 year, 11 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
%global srcname adblock

Name:           python-%{srcname}
Version:        0.4.3
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 Mar 28 2021 Timothée Floure <fnux@fedoraproject.org> - 0.4.3-1
- Let there be package.