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.
rust-cursive/SPECS/rust-cursive.spec

281 lines
8.1 KiB

## START: Set by rpmautospec
## (rpmautospec version 0.3.1)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 3;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate cursive
Name: rust-cursive
Version: 0.20.0
Release: %autorelease
Summary: TUI (Text User Interface) library focused on ease-of-use
License: MIT
URL: https://crates.io/crates/cursive
Source: %{crates_source}
# License text linked in https://github.com/gyscos/cursive/pull/702
Source1: https://github.com/gyscos/cursive/raw/main/LICENSE
BuildRequires: rust-packaging >= 21
%global _description %{expand:
TUI (Text User Interface) library focused on ease-of-use.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/Readme.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+crossterm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+crossterm-devel %{_description}
This package contains library source intended for building other packages which
use the "crossterm" feature of the "%{crate}" crate.
%files -n %{name}+crossterm-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+crossterm-backend-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+crossterm-backend-devel %{_description}
This package contains library source intended for building other packages which
use the "crossterm-backend" feature of the "%{crate}" crate.
%files -n %{name}+crossterm-backend-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+doc-cfg-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+doc-cfg-devel %{_description}
This package contains library source intended for building other packages which
use the "doc-cfg" feature of the "%{crate}" crate.
%files -n %{name}+doc-cfg-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+maplit-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+maplit-devel %{_description}
This package contains library source intended for building other packages which
use the "maplit" feature of the "%{crate}" crate.
%files -n %{name}+maplit-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+markdown-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+markdown-devel %{_description}
This package contains library source intended for building other packages which
use the "markdown" feature of the "%{crate}" crate.
%files -n %{name}+markdown-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ncurses-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ncurses-devel %{_description}
This package contains library source intended for building other packages which
use the "ncurses" feature of the "%{crate}" crate.
%files -n %{name}+ncurses-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ncurses-backend-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ncurses-backend-devel %{_description}
This package contains library source intended for building other packages which
use the "ncurses-backend" feature of the "%{crate}" crate.
%files -n %{name}+ncurses-backend-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+pancurses-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pancurses-devel %{_description}
This package contains library source intended for building other packages which
use the "pancurses" feature of the "%{crate}" crate.
%files -n %{name}+pancurses-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+pancurses-backend-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pancurses-backend-devel %{_description}
This package contains library source intended for building other packages which
use the "pancurses-backend" feature of the "%{crate}" crate.
%files -n %{name}+pancurses-backend-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+term_size-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+term_size-devel %{_description}
This package contains library source intended for building other packages which
use the "term_size" feature of the "%{crate}" crate.
%files -n %{name}+term_size-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+termion-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+termion-devel %{_description}
This package contains library source intended for building other packages which
use the "termion" feature of the "%{crate}" crate.
%files -n %{name}+termion-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+termion-backend-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+termion-backend-devel %{_description}
This package contains library source intended for building other packages which
use the "termion-backend" feature of the "%{crate}" crate.
%files -n %{name}+termion-backend-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+toml-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+toml-devel %{_description}
This package contains library source intended for building other packages which
use the "toml" feature of the "%{crate}" crate.
%files -n %{name}+toml-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unstable_scroll-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unstable_scroll-devel %{_description}
This package contains library source intended for building other packages which
use the "unstable_scroll" feature of the "%{crate}" crate.
%files -n %{name}+unstable_scroll-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# copy in license text
cp -p %{SOURCE1} .
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Mon Jan 15 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.20.0-3
- Rebuilt for MSVSphere 9.3
* Fri Jan 27 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.20.0-3
- Disable ansi feature; missing dependency
- add missing LICENSE text
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Dec 17 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.20.0-1
- Update to 0.20.0
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.3-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed May 19 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.16.3-2
- Drop bear-lib-terminal and blt-backend features due to missing dependencies
(#1961856)
- Remove timestamps from changelog
* Tue May 11 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.16.3-1
- Initial package