You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
149 lines
3.8 KiB
149 lines
3.8 KiB
4 years ago
|
# Generated by rust2rpm 16
|
||
|
%bcond_without check
|
||
|
%global debug_package %{nil}
|
||
|
|
||
|
%global crate ncurses
|
||
|
|
||
|
Name: rust-%{crate}
|
||
|
Version: 5.101.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Very thin wrapper around the ncurses TUI library
|
||
|
|
||
|
# Upstream license specification: MIT
|
||
|
License: MIT
|
||
|
URL: https://crates.io/crates/ncurses
|
||
|
Source: %{crates_source}
|
||
|
|
||
|
ExclusiveArch: %{rust_arches}
|
||
|
%if %{__cargo_skip_build}
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
BuildRequires: rust-packaging
|
||
|
BuildRequires: ncurses-devel
|
||
|
|
||
|
%global _description %{expand:
|
||
|
Very thin wrapper around the ncurses TUI library.}
|
||
|
|
||
|
%description %{_description}
|
||
|
|
||
|
%package devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "%{crate}" crate.
|
||
|
|
||
|
%files devel
|
||
|
%license LICENSE
|
||
|
%doc README.md
|
||
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
||
|
|
||
|
%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_no_tilde}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+extended_colors-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+extended_colors-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "extended_colors" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+extended_colors-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+menu-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+menu-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "menu" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+menu-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+mouse_v1-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+mouse_v1-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "mouse_v1" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+mouse_v1-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+panel-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+panel-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "panel" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+panel-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+wide-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+wide-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "wide" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+wide-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+wide_chtype-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+wide_chtype-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "wide_chtype" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+wide_chtype-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||
|
%cargo_prep
|
||
|
|
||
|
%generate_buildrequires
|
||
|
%cargo_generate_buildrequires
|
||
|
|
||
|
%build
|
||
|
%cargo_build
|
||
|
|
||
|
%install
|
||
|
%cargo_install
|
||
|
|
||
|
%if %{with check}
|
||
|
%check
|
||
|
%cargo_test
|
||
|
%endif
|
||
|
|
||
|
%changelog
|
||
|
* Fri May 07 10:32:19 PDT 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 5.101.0-1
|
||
|
- Initial package
|