Adapt to new packaging

epel9
Josh Stone 6 years ago
parent ace8699937
commit 7e77c1a346

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.2.12
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Parse command line argument by defining a struct
# Upstream license specification: Apache-2.0/MIT
@ -20,22 +20,131 @@ Patch0: structopt-0.2.10-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(clap) >= 2.21.0 with crate(clap) < 3.0.0)
BuildRequires: (crate(structopt-derive) >= 0.2.12 with crate(structopt-derive) < 0.3.0)
BuildRequires: (crate(clap/color) >= 2.21.0 with crate(clap/color) < 3.0.0)
BuildRequires: (crate(clap/debug) >= 2.21.0 with crate(clap/debug) < 3.0.0)
BuildRequires: (crate(clap/default) >= 2.21.0 with crate(clap/default) < 3.0.0)
BuildRequires: (crate(clap/doc) >= 2.21.0 with crate(clap/doc) < 3.0.0)
BuildRequires: (crate(clap/no_cargo) >= 2.21.0 with crate(clap/no_cargo) < 3.0.0)
BuildRequires: (crate(clap/suggestions) >= 2.21.0 with crate(clap/suggestions) < 3.0.0)
BuildRequires: (crate(clap/wrap_help) >= 2.21.0 with crate(clap/wrap_help) < 3.0.0)
BuildRequires: (crate(clap/yaml) >= 2.21.0 with crate(clap/yaml) < 3.0.0)
BuildRequires: (crate(structopt-derive/default) >= 0.2.12 with crate(structopt-derive/default) < 0.3.0)
%global _description \
Parse command line argument by defining a struct.
%description
%{summary}.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Parse command line argument by defining a struct.
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-APACHE LICENSE-MIT
%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 %{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}+color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+color-devel %{_description}
This package contains library source intended for building other packages
which use "color" feature of "%{crate}" crate.
%files -n %{name}+color-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+debug-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+debug-devel %{_description}
This package contains library source intended for building other packages
which use "debug" feature of "%{crate}" crate.
%files -n %{name}+debug-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+doc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+doc-devel %{_description}
This package contains library source intended for building other packages
which use "doc" feature of "%{crate}" crate.
%files -n %{name}+doc-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+no_cargo-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+no_cargo-devel %{_description}
This package contains library source intended for building other packages
which use "no_cargo" feature of "%{crate}" crate.
%files -n %{name}+no_cargo-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+suggestions-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+suggestions-devel %{_description}
This package contains library source intended for building other packages
which use "suggestions" feature of "%{crate}" crate.
%files -n %{name}+suggestions-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+wrap_help-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+wrap_help-devel %{_description}
This package contains library source intended for building other packages
which use "wrap_help" feature of "%{crate}" crate.
%files -n %{name}+wrap_help-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+yaml-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+yaml-devel %{_description}
This package contains library source intended for building other packages
which use "yaml" feature of "%{crate}" crate.
%files -n %{name}+yaml-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -53,12 +162,10 @@ which use %{crate} from crates.io.
%cargo_test -- -- --skip flatten_twice
%endif
%files devel
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Nov 09 2018 Josh Stone <jistone@redhat.com> - 0.2.12-2
- Adapt to new packaging
* Thu Oct 11 2018 Josh Stone <jistone@redhat.com> - 0.2.12-1
- Update to 0.2.12

Loading…
Cancel
Save