Blame rust-serde.spec

378cc19
# Generated by rust2rpm 20
cc26afa
# * tests can only be run in-tree
c0a8070
%bcond_with check
5230eb8
%global debug_package %{nil}
5230eb8
5230eb8
%global crate serde
5230eb8
5230eb8
Name:           rust-%{crate}
c58b637
Version:        1.0.132
b3c094d
Release:        %autorelease
5230eb8
Summary:        Generic serialization/deserialization framework
5230eb8
4471da3
# Upstream license specification: MIT OR Apache-2.0
5230eb8
License:        MIT or ASL 2.0
5230eb8
URL:            https://crates.io/crates/serde
7418eb0
Source:         %{crates_source}
5230eb8
5230eb8
ExclusiveArch:  %{rust_arches}
5230eb8
5230eb8
BuildRequires:  rust-packaging
5230eb8
c42c26d
%global _description %{expand:
c42c26d
Generic serialization/deserialization framework.}
21cd19c
21cd19c
%description %{_description}
5230eb8
5230eb8
%package        devel
5230eb8
Summary:        %{summary}
5230eb8
BuildArch:      noarch
5230eb8
21cd19c
%description    devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "%{crate}" crate.
21cd19c
21cd19c
%files          devel
378cc19
%license LICENSE-APACHE LICENSE-MIT
21cd19c
%doc README.md crates-io.md
3f3b777
%{cargo_registry}/%{crate}-%{version_no_tilde}/
21cd19c
21cd19c
%package     -n %{name}+default-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+default-devel %{_description}
5230eb8
378cc19
This package contains library source intended for building other packages which
378cc19
use the "default" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+default-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
21cd19c
21cd19c
%package     -n %{name}+alloc-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+alloc-devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "alloc" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+alloc-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
21cd19c
21cd19c
%package     -n %{name}+derive-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+derive-devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "derive" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+derive-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
21cd19c
21cd19c
%package     -n %{name}+rc-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+rc-devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "rc" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+rc-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
21cd19c
21cd19c
%package     -n %{name}+serde_derive-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+serde_derive-devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "serde_derive" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+serde_derive-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
21cd19c
21cd19c
%package     -n %{name}+std-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+std-devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "std" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+std-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
21cd19c
21cd19c
%package     -n %{name}+unstable-devel
21cd19c
Summary:        %{summary}
21cd19c
BuildArch:      noarch
21cd19c
21cd19c
%description -n %{name}+unstable-devel %{_description}
21cd19c
378cc19
This package contains library source intended for building other packages which
378cc19
use the "unstable" feature of the "%{crate}" crate.
21cd19c
21cd19c
%files       -n %{name}+unstable-devel
3f3b777
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
5230eb8
5230eb8
%prep
7418eb0
%autosetup -n %{crate}-%{version_no_tilde} -p1
5230eb8
%cargo_prep
5230eb8
1685404
%generate_buildrequires
1685404
%cargo_generate_buildrequires
1685404
5230eb8
%build
5230eb8
%cargo_build
5230eb8
5230eb8
%install
5230eb8
%cargo_install
5230eb8
5230eb8
%if %{with check}
5230eb8
%check
5230eb8
%cargo_test
5230eb8
%endif
5230eb8
5230eb8
%changelog
b3c094d
%autochangelog