You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-peg0.5/rust-peg0.5.spec

115 lines
2.9 KiB

# Generated by rust2rpm 13
%bcond_without check
%global crate peg
Name: rust-%{crate}0.5
Version: 0.5.7
Release: 5%{?dist}
Summary: Simple Parsing Expression Grammar (PEG) parser generator
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/peg
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Simple Parsing Expression Grammar (PEG) parser generator.}
%description %{_description}
%if ! %{__cargo_skip_build}
%package -n %{crate}0.5
Summary: %{summary}
%description -n %{crate}0.5 %{_description}
%files -n %{crate}0.5
%license LICENSE
%doc README.md
%{_bindir}/rust-peg-0.5
%endif
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%exclude %{cargo_registry}/%{crate}-%{version}/bootstrap.sh
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+trace-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+trace-devel %{_description}
This package contains library source intended for building other packages
which use "trace" feature of "%{crate}" crate.
%files -n %{name}+trace-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
# rename binary so it doesn't conflict with peg 0.6
mv %{buildroot}/%{_bindir}/rust-peg %{buildroot}/%{_bindir}/rust-peg-0.5
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.7-5
- Rebuild with package notes
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Oct 06 2020 Fabio Valentini <decathorpe@gmail.com> - 0.5.7-1
- Initial compat package for peg 0.5