rust-rav1e/rust-rav1e.spec

587 lines
16 KiB
RPMSpec
Raw Normal View History

2022-06-19 19:27:41 +00:00
# Generated by rust2rpm 21
2022-02-22 03:07:53 +00:00
%bcond_without check
# Install all deps (without check), grab their licenses and make it simple
# * ASL 2.0
# * ASL 2.0 or MIT
# * BSD
# * ISC
# * MIT
# * MIT or ASL 2.0
# * Unlicense or MIT
# * zlib
2020-10-20 15:26:02 +00:00
# * zlib or ASL 2.0 or MIT
%global binary_license BSD and ASL 2.0 and ISC and MIT and zlib
%global crate rav1e
Name: rust-%{crate}
2022-06-19 19:27:41 +00:00
Version: 0.5.1
2021-11-21 03:33:19 +00:00
Release: %autorelease
Summary: Fastest and safest AV1 encoder
# Upstream license specification: BSD-2-Clause
# src/ext/x86/x86inc.asm is under ISC, https://github.com/xiph/rav1e/issues/2181
License: BSD and ISC
URL: https://crates.io/crates/rav1e
Source: %{crates_source}
# Initial patched metadata
2022-06-19 19:27:41 +00:00
# * Bump console to 0.15
2022-06-23 17:47:57 +00:00
# * Bump dav1d-sys to 0.5
2022-06-19 19:27:41 +00:00
# * Bump system-deps to 6
2020-06-11 01:00:43 +00:00
# * Remove fuzzing dependencies
2022-02-21 23:59:39 +00:00
# * Bump system-deps dependency from 3.1.2 to 6
Patch0: rav1e-fix-metadata.diff
ExclusiveArch: %{rust_arches}
2022-06-19 19:27:41 +00:00
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Fastest and safest AV1 encoder.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
2021-11-21 14:54:59 +00:00
%license PATENTS LICENSE
%doc README.md
%{_bindir}/rav1e
%package -n %{crate}-libs
Summary: Library files for rav1e
License: %{binary_license}
%description -n %{crate}-libs
Library files for rav1e, the fastest and safest AV1 encoder.
%files -n %{crate}-libs
%license LICENSE PATENTS
%{_libdir}/librav1e.so.0*
%package devel
Summary: %{summary}
2022-06-19 19:27:41 +00:00
Requires: %{crate}-libs%{?_isa} = %{version}-%{release}
%description devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
2022-06-19 19:27:41 +00:00
%license %{crate_instdir}/LICENSE
%license %{crate_instdir}/PATENTS
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%{_includedir}/rav1e/
%{_libdir}/librav1e.so
%{_libdir}/pkgconfig/rav1e.pc
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+aom-sys-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+aom-sys-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "aom-sys" feature of the "%{crate}" crate.
%files -n %{name}+aom-sys-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+asm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+asm-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "asm" feature of the "%{crate}" crate.
%files -n %{name}+asm-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+av-metrics-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+av-metrics-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "av-metrics" feature of the "%{crate}" crate.
%files -n %{name}+av-metrics-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+backtrace-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+backtrace-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "backtrace" feature of the "%{crate}" crate.
%files -n %{name}+backtrace-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+bench-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bench-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "bench" feature of the "%{crate}" crate.
%files -n %{name}+bench-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+binaries-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+binaries-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "binaries" feature of the "%{crate}" crate.
%files -n %{name}+binaries-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+byteorder-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+byteorder-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "byteorder" feature of the "%{crate}" crate.
%files -n %{name}+byteorder-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+capi-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+capi-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "capi" feature of the "%{crate}" crate.
%files -n %{name}+capi-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cc-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "cc" feature of the "%{crate}" crate.
%files -n %{name}+cc-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+channel-api-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+channel-api-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "channel-api" feature of the "%{crate}" crate.
%files -n %{name}+channel-api-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+check_asm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+check_asm-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "check_asm" feature of the "%{crate}" crate.
%files -n %{name}+check_asm-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+clap-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+clap-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "clap" feature of the "%{crate}" crate.
%files -n %{name}+clap-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+console-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+console-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "console" feature of the "%{crate}" crate.
%files -n %{name}+console-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+crossbeam-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+crossbeam-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "crossbeam" feature of the "%{crate}" crate.
%files -n %{name}+crossbeam-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dav1d-sys-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dav1d-sys-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "dav1d-sys" feature of the "%{crate}" crate.
%files -n %{name}+dav1d-sys-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+decode_test-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+decode_test-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "decode_test" feature of the "%{crate}" crate.
%files -n %{name}+decode_test-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+decode_test_dav1d-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+decode_test_dav1d-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "decode_test_dav1d" feature of the "%{crate}" crate.
%files -n %{name}+decode_test_dav1d-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+desync_finder-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+desync_finder-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "desync_finder" feature of the "%{crate}" crate.
%files -n %{name}+desync_finder-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dump_ivf-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dump_ivf-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "dump_ivf" feature of the "%{crate}" crate.
%files -n %{name}+dump_ivf-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dump_lookahead_data-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dump_lookahead_data-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "dump_lookahead_data" feature of the "%{crate}" crate.
%files -n %{name}+dump_lookahead_data-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+fern-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+fern-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "fern" feature of the "%{crate}" crate.
%files -n %{name}+fern-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+image-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+image-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "image" feature of the "%{crate}" crate.
%files -n %{name}+image-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ivf-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ivf-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "ivf" feature of the "%{crate}" crate.
%files -n %{name}+ivf-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nasm-rs-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nasm-rs-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "nasm-rs" feature of the "%{crate}" crate.
%files -n %{name}+nasm-rs-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+quick_test-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+quick_test-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "quick_test" feature of the "%{crate}" crate.
%files -n %{name}+quick_test-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+regex-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+regex-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "regex" feature of the "%{crate}" crate.
%files -n %{name}+regex-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
2021-03-29 18:08:06 +00:00
%package -n %{name}+scan_fmt-devel
Summary: %{summary}
BuildArch: noarch
2021-03-29 18:08:06 +00:00
%description -n %{name}+scan_fmt-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "scan_fmt" feature of the "%{crate}" crate.
2021-03-29 18:08:06 +00:00
%files -n %{name}+scan_fmt-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
2021-03-29 18:08:06 +00:00
%package -n %{name}+scenechange-devel
Summary: %{summary}
BuildArch: noarch
2021-03-29 18:08:06 +00:00
%description -n %{name}+scenechange-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "scenechange" feature of the "%{crate}" crate.
2021-03-29 18:08:06 +00:00
%files -n %{name}+scenechange-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serialize-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serialize-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "serialize" feature of the "%{crate}" crate.
%files -n %{name}+serialize-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+signal-hook-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+signal-hook-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "signal-hook" feature of the "%{crate}" crate.
%files -n %{name}+signal-hook-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+signal_support-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+signal_support-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "signal_support" feature of the "%{crate}" crate.
%files -n %{name}+signal_support-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+toml-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+toml-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "toml" feature of the "%{crate}" crate.
%files -n %{name}+toml-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tracing-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tracing-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "tracing" feature of the "%{crate}" crate.
%files -n %{name}+tracing-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unstable-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unstable-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "unstable" feature of the "%{crate}" crate.
%files -n %{name}+unstable-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+wasm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+wasm-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "wasm" feature of the "%{crate}" crate.
%files -n %{name}+wasm-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+wasm-bindgen-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+wasm-bindgen-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "wasm-bindgen" feature of the "%{crate}" crate.
%files -n %{name}+wasm-bindgen-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+y4m-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+y4m-devel %{_description}
2022-06-19 19:27:41 +00:00
This package contains library source intended for building other packages which
use the "y4m" feature of the "%{crate}" crate.
%files -n %{name}+y4m-devel
2022-06-19 19:27:41 +00:00
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
# We need optional dependencies for cargo-c to build
%cargo_generate_buildrequires -a
echo "cargo-c"
%build
%cargo_build
cargo cbuild --release \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--includedir=%{_includedir} \
--pkgconfigdir=%{_libdir}/pkgconfig
%install
%cargo_install
cargo cinstall --release \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--includedir=%{_includedir} \
--pkgconfigdir=%{_libdir}/pkgconfig
rm -v %{buildroot}%{_libdir}/librav1e.a
%if %{with check}
%check
%cargo_test
%endif
%changelog
2021-11-21 03:33:19 +00:00
%autochangelog