## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 27 %bcond check 1 %global debug_package %{nil} %global crate glib Name: rust-glib0.20 Version: 0.20.12 Release: %autorelease Summary: Rust bindings for the GLib library License: MIT URL: https://crates.io/crates/glib Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency Patch: glib-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust bindings for the GLib library.} %description %{_description} %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}/COPYRIGHT %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}+compiletests-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compiletests-devel %{_description} This package contains library source intended for building other packages which use the "compiletests" feature of the "%{crate}" crate. %files -n %{name}+compiletests-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gio-devel %{_description} This package contains library source intended for building other packages which use the "gio" feature of the "%{crate}" crate. %files -n %{name}+gio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gio-sys-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gio-sys-devel %{_description} This package contains library source intended for building other packages which use the "gio-sys" feature of the "%{crate}" crate. %files -n %{name}+gio-sys-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log_macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log_macros-devel %{_description} This package contains library source intended for building other packages which use the "log_macros" feature of the "%{crate}" crate. %files -n %{name}+log_macros-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rs-log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rs-log-devel %{_description} This package contains library source intended for building other packages which use the "rs-log" feature of the "%{crate}" crate. %files -n %{name}+rs-log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_58-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_58-devel %{_description} This package contains library source intended for building other packages which use the "v2_58" feature of the "%{crate}" crate. %files -n %{name}+v2_58-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_60-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_60-devel %{_description} This package contains library source intended for building other packages which use the "v2_60" feature of the "%{crate}" crate. %files -n %{name}+v2_60-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_62-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_62-devel %{_description} This package contains library source intended for building other packages which use the "v2_62" feature of the "%{crate}" crate. %files -n %{name}+v2_62-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_64-devel %{_description} This package contains library source intended for building other packages which use the "v2_64" feature of the "%{crate}" crate. %files -n %{name}+v2_64-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_66-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_66-devel %{_description} This package contains library source intended for building other packages which use the "v2_66" feature of the "%{crate}" crate. %files -n %{name}+v2_66-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_68-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_68-devel %{_description} This package contains library source intended for building other packages which use the "v2_68" feature of the "%{crate}" crate. %files -n %{name}+v2_68-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_70-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_70-devel %{_description} This package contains library source intended for building other packages which use the "v2_70" feature of the "%{crate}" crate. %files -n %{name}+v2_70-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_72-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_72-devel %{_description} This package contains library source intended for building other packages which use the "v2_72" feature of the "%{crate}" crate. %files -n %{name}+v2_72-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_74-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_74-devel %{_description} This package contains library source intended for building other packages which use the "v2_74" feature of the "%{crate}" crate. %files -n %{name}+v2_74-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_76-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_76-devel %{_description} This package contains library source intended for building other packages which use the "v2_76" feature of the "%{crate}" crate. %files -n %{name}+v2_76-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_78-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_78-devel %{_description} This package contains library source intended for building other packages which use the "v2_78" feature of the "%{crate}" crate. %files -n %{name}+v2_78-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_80-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_80-devel %{_description} This package contains library source intended for building other packages which use the "v2_80" feature of the "%{crate}" crate. %files -n %{name}+v2_80-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_82-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_82-devel %{_description} This package contains library source intended for building other packages which use the "v2_82" feature of the "%{crate}" crate. %files -n %{name}+v2_82-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_84-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_84-devel %{_description} This package contains library source intended for building other packages which use the "v2_84" feature of the "%{crate}" crate. %files -n %{name}+v2_84-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # drop compiletests that don't compile due to missing dependencies rm tests/regex_compiletest.rs rm -r tests/regex_compiletest/ %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * skip a test that only works when run in-tree %cargo_test -- -- --exact --skip structured_log %endif %changelog ## START: Generated by rpmautospec * Sun Aug 03 2025 Fabio Valentini - 0.20.12-1 - Uncommitted changes * Fri Jul 23 2021 Fedora Release Engineering - 0.10.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.10.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 09 2020 Fabio Valentini - 0.10.3-1 - Update to version 0.10.3. - Fixes RHBZ#1888224 * Fri Sep 11 2020 Josh Stone - 0.10.2-1 - Update to 0.10.2 * Sat Aug 01 2020 Fedora Release Engineering - 0.10.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 09 2020 Josh Stone - 0.10.1-1 - Update to 0.10.1 * Fri Feb 14 2020 Josh Stone - 0.9.3-1 - Update to 0.9.3 * Mon Feb 10 2020 Josh Stone - 0.9.2-1 - Update to 0.9.2 * Thu Jan 30 2020 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 15 2020 Josh Stone - 0.9.1-1 - Update to 0.9.1 * Tue Dec 10 2019 Josh Stone - 0.8.2-1 - Update to 0.8.2 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Apr 28 14:06:24 CEST 2019 Igor Gnatenko - 0.7.1-1 - Update to 0.7.1 * Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Mar 20 2018 Igor Gnatenko - 0.5.0-1 - Update to 0.5.0 * Fri Feb 09 2018 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 20 2018 Igor Gnatenko - 0.4.1-1 - Update to 0.4.1 * Mon Jan 08 2018 Igor Gnatenko - 0.4.0-2 - Rebuild for rust-packaging v5 * Wed Jan 03 2018 Igor Gnatenko - 0.4.0-1 - Initial package ## END: Generated by rpmautospec