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

91 lines
2.1 KiB

# Generated by rust2rpm 10
%bcond_without check
6 years ago
%global debug_package %{nil}
%global crate heck
Name: rust-%{crate}
6 years ago
Version: 0.3.1
Release: 5%{?dist}
6 years ago
Summary: Case conversion library
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/heck
Source: %{crates_source}
6 years ago
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
6 years ago
BuildRequires: rust-packaging
%global _description %{expand:
Case conversion library.}
6 years ago
%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
%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
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
6 years ago
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
6 years ago
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sat Jun 22 20:38:50 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.1-5
- Regenerate
* Fri May 31 14:01:44 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.1-4
- Regenerate
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.1-3
- Adapt to new packaging
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6 years ago
* Tue Jan 08 2019 Josh Stone <jistone@redhat.com> - 0.3.1-1
- Update to 0.3.1
6 years ago
* Fri Nov 16 2018 Josh Stone <jistone@redhat.com> - 0.3.0-1
- Initial package