Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 1c68331a9f
commit c41e64e31a

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.4.1 Version: 0.4.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Pre-allocated storage for a uniform data type Summary: Pre-allocated storage for a uniform data type
License: MIT License: MIT
@ -17,18 +17,36 @@ ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%description %global _description \
%{summary}. Pre-allocated storage for a uniform data type.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Pre-allocated storage for a uniform data type.
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
%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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -45,12 +63,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Thu Nov 08 2018 Josh Stone <jistone@redhat.com> - 0.4.1-2
- Adapt to new packaging
* Tue Aug 07 2018 Josh Stone <jistone@redhat.com> - 0.4.1-1 * Tue Aug 07 2018 Josh Stone <jistone@redhat.com> - 0.4.1-1
- Update to 0.4.1 - Update to 0.4.1

Loading…
Cancel
Save