## 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 27
%bcond check 1
%global debug_package %{nil}

%global crate prettyplease

Name:           rust-prettyplease
Version:        0.2.29
Release:        %autorelease
Summary:        Minimal syn syntax tree pretty-printer

License:        MIT OR Apache-2.0
URL:            https://crates.io/crates/prettyplease
Source:         %{crates_source}

BuildRequires:  cargo-rpm-macros >= 24

%global _description %{expand:
A minimal `syn` syntax tree pretty-printer.}

%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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}+verbatim-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+verbatim-devel %{_description}

This package contains library source intended for building other packages which
use the "verbatim" feature of the "%{crate}" crate.

%files       -n %{name}+verbatim-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
%cargo_test
%endif

%changelog
## START: Generated by rpmautospec
* Sun Jan 26 2025 Fabio Valentini <decathorpe@gmail.com> - 0.2.29-1
- Update to version 0.2.29; Fixes RHBZ#2335722

* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild

* Fri Dec 20 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.2.25-1
- Rebuilt for MSVSphere 10

* Tue Nov 05 2024 Fabio Valentini <decathorpe@gmail.com> - 0.2.25-1
- Update to version 0.2.25; Fixes RHBZ#2319927

* Tue Sep 17 2024 Fabio Valentini <decathorpe@gmail.com> - 0.2.22-1
- Update to version 0.2.22; Fixes RHBZ#2307751

* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Tue May 07 2024 Jan Macku <jamacku@redhat.com> - 0.2.20-1
- Update to version 0.2.20

* Tue Apr 23 2024 Fabio Valentini <decathorpe@gmail.com> - 0.2.19-1
- Update to version 0.2.19; Fixes RHBZ#2271353

* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Wed Jan 03 2024 Fabio Valentini <decathorpe@gmail.com> - 0.2.16-1
- Update to version 0.2.16; Fixes RHBZ#2256414

* Fri Sep 15 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.15-1
- Update to version 0.2.15; Fixes RHBZ#2237046

* Fri Jul 21 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.12-1
- Update to version 0.2.12; Fixes RHBZ#2224455

* Wed Jul 05 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.10-1
- Update to version 0.2.10; Fixes RHBZ#2219690

* Fri Jun 23 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.9-1
- Update to version 0.2.9; Fixes RHBZ#2215660

* Mon May 29 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.6-1
- Update to version 0.2.6; Fixes RHBZ#2209377

* Sat May 20 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.5-1
- Update to version 0.2.5; Fixes RHBZ#2203584

* Tue Apr 18 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.4-1
- Update to version 0.2.4; Fixes RHBZ#2181060

* Wed Mar 15 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.25-1
- Update to version 0.1.25; Fixes RHBZ#2178370

* Mon Mar 06 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.24-1
- Update to version 0.1.24; Fixes RHBZ#2175579

* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Fri Jan 13 2023 Jan Macku <jamacku@redhat.com> - 0.1.23-1
- Update to version 0.1.23

* Tue Dec 20 2022 Fabio Valentini <decathorpe@gmail.com> - 0.1.22-1
- Update to version 0.1.22; Fixes RHBZ#2154588

* Mon Oct 31 2022 Jan Macku <jamacku@redhat.com> - 0.1.21-1
- Initial import
## END: Generated by rpmautospec