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-bstr/rust-bstr.spec

177 lines
5.1 KiB

# Generated by rust2rpm 9
%bcond_without check
%global debug_package %{nil}
%global crate bstr
Name: rust-%{crate}
Version: 0.1.4
Release: 2%{?dist}
Summary: String type that is not required to be valid UTF-8
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/bstr
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%if ! %{__cargo_skip_build}
BuildRequires: (crate(lazy_static/default) >= 1.2.0 with crate(lazy_static/default) < 2.0.0)
BuildRequires: (crate(memchr) >= 2.1.2 with crate(memchr) < 3.0.0)
BuildRequires: (crate(memchr/use_std) >= 2.1.2 with crate(memchr/use_std) < 3.0.0)
BuildRequires: (crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0)
%if %{with check}
BuildRequires: (crate(quickcheck) >= 0.8.1 with crate(quickcheck) < 0.9.0)
BuildRequires: (crate(ucd-parse/default) >= 0.1.3 with crate(ucd-parse/default) < 0.2.0)
BuildRequires: (crate(unicode-segmentation/default) >= 1.2.1 with crate(unicode-segmentation/default) < 2.0.0)
%endif
%endif
%global _description %{expand:
String type that is not required to be valid UTF-8.}
%description %{_description}
%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-MIT LICENSE-APACHE COPYING
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%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}/Cargo.toml
%package -n %{name}+lazy_static-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+lazy_static-devel %{_description}
This package contains library source intended for building other packages
which use "lazy_static" feature of "%{crate}" crate.
%files -n %{name}+lazy_static-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+regex-automata-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+regex-automata-devel %{_description}
This package contains library source intended for building other packages
which use "regex-automata" feature of "%{crate}" crate.
%files -n %{name}+regex-automata-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
This package contains library source intended for building other packages
which use "serde" feature of "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+serde1-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde1-devel %{_description}
This package contains library source intended for building other packages
which use "serde1" feature of "%{crate}" crate.
%files -n %{name}+serde1-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+serde1-nostd-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde1-nostd-devel %{_description}
This package contains library source intended for building other packages
which use "serde1-nostd" feature of "%{crate}" crate.
%files -n %{name}+serde1-nostd-devel
%ghost %{cargo_registry}/%{crate}-%{version}/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 "std" feature of "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+unicode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unicode-devel %{_description}
This package contains library source intended for building other packages
which use "unicode" feature of "%{crate}" crate.
%files -n %{name}+unicode-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sat Jun 08 23:48:42 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-2
- Regenerate
* Thu May 30 17:40:51 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-1
- Update to 0.1.4
* Mon May 13 00:04:18 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.3-1
- Update to 0.1.3
* Tue Apr 16 08:29:15 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.2-1
- Initial package