Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > defe75f4bea340bd23b7553c6277590c > files > 3

rust-regex-automata0.1-0.1.10-1.mga10.src.rpm

## START: Set by rpmautospec
## (rpmautospec version 0.3.5)

# Generated by rust2rpm 24
%bcond_with check
%global debug_package %{nil}

%global crate regex-automata

Name:           rust-regex-automata0.1
Version:        0.1.10
Release:        %mkrel 1
Summary:        Automata construction and matching using regular expressions

Group:          Development/Other
BuildArch:      noarch

# Upstream license specification: Unlicense/MIT
License:        Unlicense OR MIT
URL:            https://crates.io/crates/regex-automata
Source:         %{crates_source}
# Manually created patch for downstream crate metadata changes
# * prevent test data from being installed
Patch:          regex-automata-fix-metadata.diff

BuildRequires:  rust-packaging >= 21
BuildRequires:  rust-regex-syntax0.6-devel

%global _description %{expand:
Automata construction and matching using regular expressions.}

%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}/COPYING
%license %{crate_instdir}/LICENSE-MIT
%license %{crate_instdir}/UNLICENSE
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/TODO
%{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}+regex-syntax-devel
Summary:        %{summary}
BuildArch:      noarch
Requires:       rust-regex-syntax0.6+default-devel

%description -n %{name}+regex-syntax-devel %{_description}

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

%files       -n %{name}+regex-syntax-devel
%ghost %{crate_instdir}/Cargo.toml

%package     -n %{name}+std-devel
Summary:        %{summary}
BuildArch:      noarch

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

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

%files       -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif



%changelog
* Fri Dec 29 2023 wally <wally> 0.1.10-1.mga10
+ Revision: 2023923
- update regex-syntax reqs

* Tue Oct 03 2023 tv <tv> 0.1.10-0.1.mga10
+ Revision: 1993447
- imported package rust-regex-automata0.1


* Tue Oct 03 2023 Thierry Vignaud <tv@mageia.org> 0.1.10-1.mga10
- Import from FC

* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Wed Jul 12 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.10-1
- Initial import (regex-automata 0.1 compat package)