Adapt to new packaging

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

@ -7,7 +7,7 @@
Name: rust-%{crate}
Version: 1.0.80
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Macros 1.1 implementation of #[derive(Serialize, Deserialize)]
# Upstream license specification: MIT/Apache-2.0
@ -18,27 +18,56 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(proc-macro2) >= 0.4.0 with crate(proc-macro2) < 0.5.0)
BuildRequires: (crate(quote) >= 0.6.3 with crate(quote) < 0.7.0)
BuildRequires: ((crate(syn) >= 0.15.0 with crate(syn) < 0.16.0) with crate(syn/visit))
BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0)
BuildRequires: (crate(quote/default) >= 0.6.3 with crate(quote/default) < 0.7.0)
BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0)
BuildRequires: (crate(syn/visit) >= 0.15.0 with crate(syn/visit) < 0.16.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
%endif
%description
%{summary}.
%global _description \
Macros 1.1 implementation of #[derive(Serialize, Deserialize)].
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Macros 1.1 implementation of #[derive(Serialize, Deserialize)].
%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 crates-io.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 %{crate} from crates.io.
which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+deserialize_in_place-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+deserialize_in_place-devel %{_description}
This package contains library source intended for building other packages
which use "deserialize_in_place" feature of "%{crate}" crate.
%files -n %{name}+deserialize_in_place-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -55,12 +84,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Oct 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.80-2
- Adapt to new packaging
* Mon Oct 15 2018 Josh Stone <jistone@redhat.com> - 1.0.80-1
- Update to 1.0.80

Loading…
Cancel
Save