Adapt to new packaging

epel9
Josh Stone 6 years ago
parent fb7be0166e
commit ab9189bd24

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.3.12 Version: 0.3.12
Release: 1%{?dist} Release: 2%{?dist}
Summary: Strongly Typed Mimes Summary: Strongly Typed Mimes
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -17,21 +17,38 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(unicase/default) >= 2.0.0 with crate(unicase/default) < 3.0.0)
BuildRequires: (crate(unicase) >= 2.0.0 with crate(unicase) < 3.0.0)
%description %global _description \
%{summary}. Strongly Typed Mimes.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Strongly Typed Mimes.
This package contains library source intended for building other packages This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CONTRIBUTING.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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -48,12 +65,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CONTRIBUTING.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Tue Nov 27 2018 Josh Stone <jistone@redhat.com> - 0.3.12-2
- Adapt to new packaging
* Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.3.12-1 * Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 0.3.12-1
- Update to 0.3.12 - Update to 0.3.12

Loading…
Cancel
Save