## START: Set by rpmautospec ## (rpmautospec version 0.5.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 24 %bcond_without check %global crate dolby_vision Name: rust-dolby_vision Version: 3.2.0 Release: %autorelease Summary: Dolby Vision metadata parsing and writing License: MIT URL: https://crates.io/crates/dolby_vision Source: dolby_vision-3.2.0.crate Source1: vendor.tar.gz # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds # * explicitly mark library as a "cdylib" type to fix spec generation Patch: dolby_vision-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: rust-packaging BuildRequires: cargo-c Provides: bundled(crate(unicode-ident)) = 1.0.12 Provides: bundled(crate(funty)) = 2.0.0 Provides: bundled(crate(plotters-backend)) = 0.3.6 Provides: bundled(crate(plotters)) = 0.3.6 Provides: bundled(crate(crossbeam-utils)) = 0.8.20 Provides: bundled(crate(hashbrown)) = 0.14.5 Provides: bundled(crate(ciborium-ll)) = 0.2.2 Provides: bundled(crate(equivalent)) = 1.0.1 Provides: bundled(crate(bitstream-io)) = 2.3.0 Provides: bundled(crate(tinytemplate)) = 1.2.1 Provides: bundled(crate(same-file)) = 1.0.6 Provides: bundled(crate(crc-catalog)) = 2.4.0 Provides: bundled(crate(quote)) = 1.0.36 Provides: bundled(crate(wasm-bindgen-backend)) = 0.2.92 Provides: bundled(crate(xmlparser)) = 0.13.6 Provides: bundled(crate(js-sys)) = 0.3.69 Provides: bundled(crate(serde)) = 1.0.202 Provides: bundled(crate(aho-corasick)) = 1.1.3 Provides: bundled(crate(cast)) = 0.3.0 Provides: bundled(crate(tap)) = 1.0.1 Provides: bundled(crate(web-sys)) = 0.3.69 Provides: bundled(crate(wasm-bindgen-macro)) = 0.2.92 Provides: bundled(crate(regex-syntax)) = 0.8.3 Provides: bundled(crate(indexmap)) = 2.2.6 Provides: bundled(crate(wasm-bindgen-shared)) = 0.2.92 Provides: bundled(crate(crossbeam-deque)) = 0.8.5 Provides: bundled(crate(crossbeam-epoch)) = 0.9.18 Provides: bundled(crate(once_cell)) = 1.19.0 Provides: bundled(crate(ryu)) = 1.0.18 Provides: bundled(crate(oorandom)) = 11.1.3 Provides: bundled(crate(anyhow)) = 1.0.86 Provides: bundled(crate(regex-automata)) = 0.4.6 Provides: bundled(crate(clap)) = 4.5.4 Provides: bundled(crate(bumpalo)) = 3.16.0 Provides: bundled(crate(serde_json)) = 1.0.117 Provides: bundled(crate(wasm-bindgen)) = 0.2.92 Provides: bundled(crate(syn)) = 2.0.66 Provides: bundled(crate(crunchy)) = 0.2.2 Provides: bundled(crate(itoa)) = 1.0.11 Provides: bundled(crate(autocfg)) = 1.3.0 Provides: bundled(crate(ciborium-io)) = 0.2.2 Provides: bundled(crate(rayon-core)) = 1.12.1 Provides: bundled(crate(hermit-abi)) = 0.3.9 Provides: bundled(crate(clap_builder)) = 4.5.2 Provides: bundled(crate(serde_derive)) = 1.0.202 Provides: bundled(crate(cfg-if)) = 1.0.0 Provides: bundled(crate(criterion-plot)) = 0.5.0 Provides: bundled(crate(log)) = 0.4.21 Provides: bundled(crate(either)) = 1.12.0 Provides: bundled(crate(anstyle)) = 1.0.7 Provides: bundled(crate(criterion)) = 0.5.1 Provides: bundled(crate(is-terminal)) = 0.4.12 Provides: bundled(crate(radium)) = 0.7.0 Provides: bundled(crate(bitvec_helpers)) = 3.1.4 Provides: bundled(crate(plotters-svg)) = 0.3.6 Provides: bundled(crate(half)) = 2.4.1 Provides: bundled(crate(anes)) = 0.1.6 Provides: bundled(crate(itertools)) = 0.10.5 Provides: bundled(crate(ciborium)) = 0.2.2 Provides: bundled(crate(memchr)) = 2.7.2 Provides: bundled(crate(rayon)) = 1.10.0 Provides: bundled(crate(crc)) = 3.2.1 Provides: bundled(crate(wasm-bindgen-macro-support)) = 0.2.92 Provides: bundled(crate(clap_lex)) = 0.7.0 Provides: bundled(crate(roxmltree)) = 0.18.1 Provides: bundled(crate(proc-macro2)) = 1.0.83 Provides: bundled(crate(bitvec)) = 1.0.1 Provides: bundled(crate(libc)) = 0.2.155 Provides: bundled(crate(num-traits)) = 0.2.19 Provides: bundled(crate(wyz)) = 0.5.1 Provides: bundled(crate(walkdir)) = 2.5.0 Provides: bundled(crate(regex)) = 1.10.4 %global _description %{expand: Dolby Vision metadata parsing and writing.} %description %{_description} %package -n libdovi Summary: %{summary} # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 License: MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n libdovi %{_description} This package contains the C library. %files -n libdovi %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_libdir}/libdovi.so.3{,.*} %package -n libdovi-devel Summary: %{summary} Requires: libdovi%{?_isa} = %{version}-%{release} %description -n libdovi-devel %{_description} This package contains the C library development files. %files -n libdovi-devel %{_libdir}/libdovi.so %{_libdir}/pkgconfig/dovi.pc %dir %{_includedir}/libdovi %{_includedir}/libdovi/rpu_parser.h %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}/CHANGELOG.md %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}+capi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+capi-devel %{_description} This package contains library source intended for building other packages which use the "capi" feature of the "%{crate}" crate. %files -n %{name}+capi-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libc-devel %{_description} This package contains library source intended for building other packages which use the "libc" feature of the "%{crate}" crate. %files -n %{name}+libc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+roxmltree-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+roxmltree-devel %{_description} This package contains library source intended for building other packages which use the "roxmltree" feature of the "%{crate}" crate. %files -n %{name}+roxmltree-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+xml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+xml-devel %{_description} This package contains library source intended for building other packages which use the "xml" feature of the "%{crate}" crate. %files -n %{name}+xml-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 -a1 %cargo_prep -v vendor %build %cargo_build -a %cargo_cbuild -a %{cargo_license_summary -a} %{cargo_license -a} > LICENSE.dependencies %install %cargo_install -a %cargo_cinstall -a rm %{buildroot}/%{_libdir}/libdovi.a %if %{with check} %check # * skip tests that require files that are not included in published crates %cargo_test -a -- -- --skip rpu::generate::tests::config_with_frame_edits --skip xml::tests::parse %endif %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Sep 30 2023 Fabio Valentini - 3.2.0-2 - Adapt for subtle cargo_cbuild / cargo_cinstall macro changes * Sun Aug 27 2023 Fabio Valentini - 3.2.0-1 - Update to version 3.2.0; Fixes RHBZ#2229769 * Fri Jul 21 2023 Fedora Release Engineering - 3.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 22 2023 Dominik 'Rathann' Mierzejewski - 3.1.2-1 - initial import (resolves rhbz#2216336) ## END: Generated by rpmautospec