%global tag 1.0.alpha.1 Name: gst-thumbnailers Version: 1.0~alpha.1 Release: %autorelease Summary: GStreamer Thumbnailers SourceLicense: GPL-3.0-or-later # Rust dependencies: # Apache-2.0 OR MIT # BSD-3-Clause OR Apache-2.0 # GPL-3.0-or-later # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: %{shrink: GPL-3.0-or-later AND MIT AND (Apache-2.0 OR MIT) AND (BSD-3-Clause OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) } # LICENSE.dependencies contains a full license breakdown URL: https://gitlab.gnome.org/sophie-h/gst-thumbnailers Source: %{url}/-/archive/%{tag}/gst-thumbnailers-%{tag}.tar.gz Patch: 0001-meson-adapt-for-RPM-package-build-environment.patch Patch: 0002-cargo-drop-benchmarks-and-benchmark-only-dependencie.patch BuildRequires: cargo-rpm-macros BuildRequires: meson >= 1.2 BuildRequires: pkgconfig(glycin-2) >= 2.0.0 BuildRequires: pkgconfig(gstreamer-1.0) >= 1.26.0 %description %{summary}. %prep %autosetup -n gst-thumbnailers-%{tag} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %meson %meson_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %meson_install %check %meson_test %files %license LICENSE %license LICENSE.dependencies %doc README.md %doc NEWS %{_bindir}/gst-audio-thumbnailer %{_bindir}/gst-video-thumbnailer %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/gst-audio-thumbnailer.thumbnailer %{_datadir}/thumbnailers/gst-video-thumbnailer.thumbnailer %changelog %autochangelog