Blame rust-time.spec

b4f1c99
# Generated by rust2rpm 24
b4f1c99
%bcond_without check
c4a0231
%global debug_package %{nil}
c4a0231
c4a0231
%global crate time
c4a0231
d24fc9a
Name:           rust-time
e56a7a3
Version:        0.3.29
fd7ec53
Release:        %autorelease
e722677
Summary:        Date and time library
c4a0231
d24fc9a
License:        MIT OR Apache-2.0
c4a0231
URL:            https://crates.io/crates/time
b60625f
Source:         %{crates_source}
d24fc9a
# Automatically generated patch to strip foreign dependencies
d24fc9a
Patch:          time-fix-metadata-auto.diff
6a031d7
# Manually created patch for downstream crate metadata changes
6a031d7
# * remove WASM-specific features
b4f1c99
# * remove references to tests that are not included in published crates
6a031d7
Patch:          time-fix-metadata.diff
c4a0231
b4f1c99
BuildRequires:  cargo-rpm-macros >= 24
c4a0231
223cd21
%global _description %{expand:
b4f1c99
Date and time library. Fully interoperable with the standard library.
b4f1c99
Mostly compatible with #![no_std].}
8101c26
8101c26
%description %{_description}
c4a0231
c4a0231
%package        devel
c4a0231
Summary:        %{summary}
c4a0231
BuildArch:      noarch
c4a0231
8101c26
%description    devel %{_description}
8101c26
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "%{crate}" crate.
8101c26
8101c26
%files          devel
54f9b29
%license %{crate_instdir}/LICENSE-Apache
54f9b29
%license %{crate_instdir}/LICENSE-MIT
54f9b29
%doc %{crate_instdir}/README.md
54f9b29
%{crate_instdir}/
8101c26
8101c26
%package     -n %{name}+default-devel
8101c26
Summary:        %{summary}
8101c26
BuildArch:      noarch
8101c26
8101c26
%description -n %{name}+default-devel %{_description}
c4a0231
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "default" feature of the "%{crate}" crate.
8101c26
8101c26
%files       -n %{name}+default-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
8101c26
b3f7ebf
%package     -n %{name}+alloc-devel
8101c26
Summary:        %{summary}
8101c26
BuildArch:      noarch
8101c26
b3f7ebf
%description -n %{name}+alloc-devel %{_description}
8101c26
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "alloc" feature of the "%{crate}" crate.
8101c26
b3f7ebf
%files       -n %{name}+alloc-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
d7e0e56
b3f7ebf
%package     -n %{name}+formatting-devel
e722677
Summary:        %{summary}
e722677
BuildArch:      noarch
e722677
b3f7ebf
%description -n %{name}+formatting-devel %{_description}
e722677
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "formatting" feature of the "%{crate}" crate.
e722677
b3f7ebf
%files       -n %{name}+formatting-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
e722677
b3f7ebf
%package     -n %{name}+large-dates-devel
b3f7ebf
Summary:        %{summary}
b3f7ebf
BuildArch:      noarch
b3f7ebf
b3f7ebf
%description -n %{name}+large-dates-devel %{_description}
b3f7ebf
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "large-dates" feature of the "%{crate}" crate.
b3f7ebf
b3f7ebf
%files       -n %{name}+large-dates-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
b3f7ebf
b3f7ebf
%package     -n %{name}+local-offset-devel
b3f7ebf
Summary:        %{summary}
b3f7ebf
BuildArch:      noarch
b3f7ebf
b3f7ebf
%description -n %{name}+local-offset-devel %{_description}
b3f7ebf
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "local-offset" feature of the "%{crate}" crate.
b3f7ebf
b3f7ebf
%files       -n %{name}+local-offset-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
b3f7ebf
b3f7ebf
%package     -n %{name}+macros-devel
b3f7ebf
Summary:        %{summary}
b3f7ebf
BuildArch:      noarch
b3f7ebf
b3f7ebf
%description -n %{name}+macros-devel %{_description}
b3f7ebf
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "macros" feature of the "%{crate}" crate.
b3f7ebf
b3f7ebf
%files       -n %{name}+macros-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
b3f7ebf
b3f7ebf
%package     -n %{name}+parsing-devel
b3f7ebf
Summary:        %{summary}
b3f7ebf
BuildArch:      noarch
b3f7ebf
b3f7ebf
%description -n %{name}+parsing-devel %{_description}
b3f7ebf
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "parsing" feature of the "%{crate}" crate.
b3f7ebf
b3f7ebf
%files       -n %{name}+parsing-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
b3f7ebf
b3f7ebf
%package     -n %{name}+quickcheck-devel
b3f7ebf
Summary:        %{summary}
b3f7ebf
BuildArch:      noarch
b3f7ebf
b3f7ebf
%description -n %{name}+quickcheck-devel %{_description}
b3f7ebf
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "quickcheck" feature of the "%{crate}" crate.
b3f7ebf
b3f7ebf
%files       -n %{name}+quickcheck-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
b3f7ebf
e722677
%package     -n %{name}+rand-devel
e722677
Summary:        %{summary}
e722677
BuildArch:      noarch
e722677
e722677
%description -n %{name}+rand-devel %{_description}
e722677
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "rand" feature of the "%{crate}" crate.
e722677
e722677
%files       -n %{name}+rand-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
e722677
d7e0e56
%package     -n %{name}+serde-devel
d7e0e56
Summary:        %{summary}
d7e0e56
BuildArch:      noarch
d7e0e56
d7e0e56
%description -n %{name}+serde-devel %{_description}
d7e0e56
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "serde" feature of the "%{crate}" crate.
d7e0e56
d7e0e56
%files       -n %{name}+serde-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
d7e0e56
b3f7ebf
%package     -n %{name}+serde-human-readable-devel
b3f7ebf
Summary:        %{summary}
b3f7ebf
BuildArch:      noarch
b3f7ebf
b3f7ebf
%description -n %{name}+serde-human-readable-devel %{_description}
b3f7ebf
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "serde-human-readable" feature of the "%{crate}" crate.
b3f7ebf
b3f7ebf
%files       -n %{name}+serde-human-readable-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
54f9b29
54f9b29
%package     -n %{name}+serde-well-known-devel
54f9b29
Summary:        %{summary}
54f9b29
BuildArch:      noarch
54f9b29
54f9b29
%description -n %{name}+serde-well-known-devel %{_description}
54f9b29
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "serde-well-known" feature of the "%{crate}" crate.
54f9b29
54f9b29
%files       -n %{name}+serde-well-known-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
b3f7ebf
d7e0e56
%package     -n %{name}+std-devel
d7e0e56
Summary:        %{summary}
d7e0e56
BuildArch:      noarch
d7e0e56
d7e0e56
%description -n %{name}+std-devel %{_description}
d7e0e56
54f9b29
This package contains library source intended for building other packages which
54f9b29
use the "std" feature of the "%{crate}" crate.
d7e0e56
d7e0e56
%files       -n %{name}+std-devel
54f9b29
%ghost %{crate_instdir}/Cargo.toml
c4a0231
c4a0231
%prep
b60625f
%autosetup -n %{crate}-%{version_no_tilde} -p1
c4a0231
%cargo_prep
c4a0231
d44b731
%generate_buildrequires
d44b731
%cargo_generate_buildrequires
d44b731
c4a0231
%build
c4a0231
%cargo_build
c4a0231
c4a0231
%install
c4a0231
%cargo_install
c4a0231
c4a0231
%if %{with check}
c4a0231
%check
c4a0231
%cargo_test
c4a0231
%endif
c4a0231
c4a0231
%changelog
fd7ec53
%autochangelog