## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 26 # * test fixtures are not included in published crates %bcond_with check %global debug_package %{nil} %global crate jpegxl-sys %global upstream_version 0.10.4+libjxl-0.10.3 Name: rust-jpegxl-sys Version: 0.10.4 Release: %autorelease Summary: Rust wrapper for JPEG XL reference implementation License: GPL-3.0-or-later URL: https://crates.io/crates/jpegxl-sys Source: %{crates_source %{crate} %{upstream_version}} # Automatically generated patch to strip dependencies and normalize metadata Patch: jpegxl-sys-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop feature for statically linking libjxl Patch: jpegxl-sys-fix-metadata.diff Patch: 0001-unconditionally-use-pkg-config-to-find-libjxl.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(libjxl) >= 0.8.2 %global _description %{expand: Rust wrapper for JPEG XL reference implementation.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(libjxl) >= 0.8.2 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/COPYING %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}+docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docs-devel %{_description} This package contains library source intended for building other packages which use the "docs" feature of the "%{crate}" crate. %files -n %{name}+docs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+threads-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+threads-devel %{_description} This package contains library source intended for building other packages which use the "threads" feature of the "%{crate}" crate. %files -n %{name}+threads-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{upstream_version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Fri Sep 27 2024 Fabio Valentini - 0.10.4-1 - Update to version 0.10.4+libjxl-0.10.3 * Fri Jul 19 2024 Fedora Release Engineering - 0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Apr 02 2024 Fabio Valentini - 0.8.2-1 - Initial import (#2272616) ## END: Generated by rpmautospec