Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent b3e9ddc065
commit 58ec062cb7
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,5 +1,5 @@
--- lazycell-1.0.0/Cargo.toml 1970-01-01T01:00:00+01:00 --- lazycell-1.2.0/Cargo.toml 1970-01-01T01:00:00+01:00
+++ lazycell-1.0.0/Cargo.toml 2018-06-15T14:10:09.199669+02:00 +++ lazycell-1.2.0/Cargo.toml 2018-11-04T17:10:09.098108+01:00
@@ -21,10 +21,3 @@ @@ -21,10 +21,3 @@
keywords = ["lazycell", "lazy", "cell", "library"] keywords = ["lazycell", "lazy", "cell", "library"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.2.0 Version: 1.2.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Library providing a lazily filled Cell struct Summary: Library providing a lazily filled Cell struct
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -21,18 +21,36 @@ ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%description %global _description \
%{summary}. A library providing a lazily filled Cell struct.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A library providing a lazily filled Cell struct.
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 CHANGELOG.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
@ -49,12 +67,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-2
- Adapt to new packaging
* Thu Sep 20 2018 Josh Stone <jistone@redhat.com> - 1.2.0-1 * Thu Sep 20 2018 Josh Stone <jistone@redhat.com> - 1.2.0-1
- Update to 1.2.0 - Update to 1.2.0

Loading…
Cancel
Save