## 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 25 %bcond_without check %global debug_package %{nil} %global crate rustyline Name: rust-rustyline Version: 13.0.0 Release: %autorelease Summary: Readline implementation based on Antirez's Linenoise License: MIT URL: https://crates.io/crates/rustyline Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: rustyline-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * relax rusqlite dependency from ^0.30 to >=0.28,<0.31 # * drop rusqlite/bundled feature for statically linking sqlite Patch: rustyline-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rustyline, a readline implementation based on Antirez's Linenoise.} %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}/LICENSE %doc %{crate_instdir}/Ansi.md %doc %{crate_instdir}/BUGS.md %doc %{crate_instdir}/CustomBinding.md %doc %{crate_instdir}/Features.md %doc %{crate_instdir}/History.md %doc %{crate_instdir}/Incremental.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/TODO.md %doc %{crate_instdir}/linenoise.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}+case_insensitive_history_search-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+case_insensitive_history_search-devel %{_description} This package contains library source intended for building other packages which use the "case_insensitive_history_search" feature of the "%{crate}" crate. %files -n %{name}+case_insensitive_history_search-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+custom-bindings-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+custom-bindings-devel %{_description} This package contains library source intended for building other packages which use the "custom-bindings" feature of the "%{crate}" crate. %files -n %{name}+custom-bindings-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+derive-devel %{_description} This package contains library source intended for building other packages which use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fd-lock-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fd-lock-devel %{_description} This package contains library source intended for building other packages which use the "fd-lock" feature of the "%{crate}" crate. %files -n %{name}+fd-lock-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+home-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+home-devel %{_description} This package contains library source intended for building other packages which use the "home" feature of the "%{crate}" crate. %files -n %{name}+home-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+radix_trie-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+radix_trie-devel %{_description} This package contains library source intended for building other packages which use the "radix_trie" feature of the "%{crate}" crate. %files -n %{name}+radix_trie-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+regex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regex-devel %{_description} This package contains library source intended for building other packages which use the "regex" feature of the "%{crate}" crate. %files -n %{name}+regex-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rusqlite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rusqlite-devel %{_description} This package contains library source intended for building other packages which use the "rusqlite" feature of the "%{crate}" crate. %files -n %{name}+rusqlite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustyline-derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustyline-derive-devel %{_description} This package contains library source intended for building other packages which use the "rustyline-derive" feature of the "%{crate}" crate. %files -n %{name}+rustyline-derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+signal-hook-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+signal-hook-devel %{_description} This package contains library source intended for building other packages which use the "signal-hook" feature of the "%{crate}" crate. %files -n %{name}+signal-hook-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+skim-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+skim-devel %{_description} This package contains library source intended for building other packages which use the "skim" feature of the "%{crate}" crate. %files -n %{name}+skim-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+termios-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+termios-devel %{_description} This package contains library source intended for building other packages which use the "termios" feature of the "%{crate}" crate. %files -n %{name}+termios-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+with-dirs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-dirs-devel %{_description} This package contains library source intended for building other packages which use the "with-dirs" feature of the "%{crate}" crate. %files -n %{name}+with-dirs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+with-file-history-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-file-history-devel %{_description} This package contains library source intended for building other packages which use the "with-file-history" feature of the "%{crate}" crate. %files -n %{name}+with-file-history-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+with-fuzzy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-fuzzy-devel %{_description} This package contains library source intended for building other packages which use the "with-fuzzy" feature of the "%{crate}" crate. %files -n %{name}+with-fuzzy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+with-sqlite-history-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+with-sqlite-history-devel %{_description} This package contains library source intended for building other packages which use the "with-sqlite-history" feature of the "%{crate}" crate. %files -n %{name}+with-sqlite-history-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * skip test for exact struct size that fails on 32-bit architectures: # https://github.com/kkawakam/rustyline/issues/740 %cargo_test -- -- --exact --skip binding::test::size_of_event %endif %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 13.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 Fabio Valentini - 13.0.0-1 - Update to version 13.0.0; Fixes RHBZ#2253049 * Sun Oct 22 2023 Fabio Valentini - 12.0.0-2 - Skip a test for exact struct size that fails on 32-bit architectures * Sun Oct 22 2023 Fabio Valentini - 12.0.0-1 - Update to version 12.0.0; Fixes RHBZ#1994691 * Fri Jul 21 2023 Fedora Release Engineering - 8.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun May 21 2023 Fabio Valentini - 8.2.0-7 - Regenerate with rust2rpm v24 * Sat Jan 21 2023 Fedora Release Engineering - 8.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 8.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 8.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 8.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 25 2021 Davide Cavalca - 8.2.0-1 - Update to version 8.2.0. - Fixes RHBZ#1900328 * Wed Jan 27 2021 Fedora Release Engineering - 6.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Oct 09 2020 Fabio Valentini - 6.3.0-1 - Update to version 6.3.0. * Wed Sep 09 2020 Fabio Valentini - 6.2.0-1 - Update to version 6.2.0. * Wed Jul 29 2020 Fedora Release Engineering - 6.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Apr 23 2020 Josh Stone - 6.1.2-1 - Update to 6.1.2 * Mon Apr 13 2020 Fabio Valentini - 6.1.1-1 - Update to version 6.1.1. * Fri Apr 03 2020 Fabio Valentini - 6.1.0-1 - Update to version 6.1.0. * Sun Feb 02 2020 Fabio Valentini - 6.0.0-1 - Initial package ## END: Generated by rpmautospec