You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
5.5 KiB
192 lines
5.5 KiB
# Generated by rust2rpm 27
|
|
# * temporarily disable tests until mock_instant ^0.5 is available
|
|
%bcond check 0
|
|
%global debug_package %{nil}
|
|
|
|
%global crate adblock
|
|
|
|
Name: rust-adblock
|
|
Version: 0.9.3
|
|
Release: %autorelease
|
|
Summary: Native Rust module for Adblock Plus syntax
|
|
|
|
License: MPL-2.0
|
|
URL: https://crates.io/crates/adblock
|
|
Source: %{crates_source}
|
|
# Manually created patch for downstream crate metadata changes
|
|
# * bump base64 dependency from 0.13 to 0.22
|
|
# * bump idna dependency from 0.2 to 0.5
|
|
# * bump itertools dependency from 0.10 to 0.13
|
|
# * bump rmp-serde dependency from 0.15 to 1
|
|
# * relax mock_instant dev-dependency
|
|
# * bump sha2 dev-dependency from 0.9 to 0.10
|
|
# * drop unused, benchmark-only criterion dev-dependency
|
|
# * drop unused, benchmark-only reqwest dev-dependency
|
|
# * drop unused css-validation feature with outdated dependencies
|
|
Patch: adblock-fix-metadata.diff
|
|
# * drop tests that require unshipped support code
|
|
Patch: 0001-drop-tests-that-require-unshipped-support-code.patch
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
%global _description %{expand:
|
|
Native Rust module for Adblock Plus syntax (e.g. EasyList, EasyPrivacy)
|
|
filter parsing and matching.}
|
|
|
|
%description %{_description}
|
|
|
|
%package devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "%{crate}" crate.
|
|
|
|
%files devel
|
|
%license %{crate_instdir}/LICENSE
|
|
%doc %{crate_instdir}/README.md
|
|
%{crate_instdir}/
|
|
|
|
%package -n %{name}+default-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "default" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+default-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+addr-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+addr-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "addr" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+addr-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+content-blocking-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+content-blocking-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "content-blocking" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+content-blocking-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+embedded-domain-resolver-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+embedded-domain-resolver-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "embedded-domain-resolver" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+embedded-domain-resolver-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+full-regex-handling-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+full-regex-handling-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "full-regex-handling" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+full-regex-handling-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+lifeguard-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+lifeguard-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "lifeguard" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+lifeguard-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+object-pooling-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+object-pooling-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "object-pooling" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+object-pooling-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+regex-debug-info-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+regex-debug-info-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "regex-debug-info" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+regex-debug-info-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+resource-assembler-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+resource-assembler-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "resource-assembler" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+resource-assembler-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+unsync-regex-caching-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+unsync-regex-caching-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "unsync-regex-caching" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+unsync-regex-caching-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|