## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # * tests are broken: https://github.com/gtk-rs/gtk-rs-core/issues/64 %bcond_with check %global debug_package %{nil} %global crate gtk4-sys Name: rust-gtk4-sys Version: 0.7.3 Release: %autorelease Summary: FFI bindings of GTK 4 License: MIT URL: https://crates.io/crates/gtk4-sys Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: FFI bindings of GTK 4.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.0.0 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %{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}+v4_10-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.10 %description -n %{name}+v4_10-devel %{_description} This package contains library source intended for building other packages which use the "v4_10" feature of the "%{crate}" crate. %files -n %{name}+v4_10-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_12-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.12 %description -n %{name}+v4_12-devel %{_description} This package contains library source intended for building other packages which use the "v4_12" feature of the "%{crate}" crate. %files -n %{name}+v4_12-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_2-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.2 %description -n %{name}+v4_2-devel %{_description} This package contains library source intended for building other packages which use the "v4_2" feature of the "%{crate}" crate. %files -n %{name}+v4_2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_4-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.4 %description -n %{name}+v4_4-devel %{_description} This package contains library source intended for building other packages which use the "v4_4" feature of the "%{crate}" crate. %files -n %{name}+v4_4-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_6-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.6 %description -n %{name}+v4_6-devel %{_description} This package contains library source intended for building other packages which use the "v4_6" feature of the "%{crate}" crate. %files -n %{name}+v4_6-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_8-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4) >= 4.7 %description -n %{name}+v4_8-devel %{_description} This package contains library source intended for building other packages which use the "v4_8" feature of the "%{crate}" crate. %files -n %{name}+v4_8-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'pkgconfig(gtk4) >= 4.0.0' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 0.7.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Sep 24 2023 Fabio Valentini - 0.7.3-1 - Update to version 0.7.3; Fixes RHBZ#2240347 * Sat Aug 12 2023 Kalev Lember - 0.7.2-1 - Update to version 0.7.2; Fixes RHBZ#2231646 * Fri Aug 11 2023 Kalev Lember - 0.7.0-1 - Update to version 0.7.0; Fixes RHBZ#2224894 * Fri Aug 11 2023 Kalev Lember - 0.6.3-3 - Enable the "v1_12" feature now that we have new gtk4 1.12 in f39 * Fri Jul 21 2023 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Mar 19 2023 Fabio Valentini - 0.6.3-1 - Update to version 0.6.3; Fixes RHBZ#2168318 * Fri Feb 03 2023 Fabio Valentini - 0.5.5-1 - Update to version 0.5.5; Fixes RHBZ#2150844 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 29 2022 Fabio Valentini - 0.5.2-1 - Update to version 0.5.2; Fixes RHBZ#2136118 * Mon Aug 08 2022 Fabio Valentini - 0.4.8-1 - Update to version 0.4.8; Fixes RHBZ#2093625 * Sat Jul 23 2022 Fedora Release Engineering - 0.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Feb 12 2022 Fabio Valentini - 0.4.5-1 - Update to version 0.4.5; Fixes RHBZ#2040907 * Fri Jan 21 2022 Fedora Release Engineering - 0.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 07 2021 Rémi Lauzier - 0.3.1-2 - Update source * Sun Nov 07 2021 Rémi Lauzier - 0.3.1-1 - Update to version 0.3.1; Fixes RHBZ#2006439 * Mon Aug 09 2021 Rémi Lauzier - 0.2.0-1 - Initial import; Fixes RHBZ#1977061 ## END: Generated by rpmautospec