# Generated by rust2rpm 28 %bcond check 1 %global crate ptools %global cargo_install_lib 0 Name: rust-ptools Version: 0.2.11 Release: %autorelease Summary: Utilities for inspecting Linux processes License: Apache-2.0 URL: https://github.com/basil/ptools Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Utilities for inspecting Linux processes.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 # MIT # MIT OR Apache-2.0 License: Apache-2.0 AND MIT # LICENSE.dependencies contains a full license breakdown Conflicts: python3-linux-procfs %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CONTRIBUTING.md %doc README.md %{_bindir}/pargs %{_bindir}/pauxv %{_bindir}/pcred %{_bindir}/penv %{_bindir}/pfiles %{_bindir}/pflags %{_bindir}/prun %{_bindir}/psig %{_bindir}/pstop %{_bindir}/ptree %{_bindir}/pwait %{_mandir}/man1/pargs.1* %{_mandir}/man1/pauxv.1* %{_mandir}/man1/pcred.1* %{_mandir}/man1/penv.1* %{_mandir}/man1/pfiles.1* %{_mandir}/man1/pflags.1* %{_mandir}/man1/prun.1* %{_mandir}/man1/psig.1* %{_mandir}/man1/pstop.1* %{_mandir}/man1/ptree.1* %{_mandir}/man1/pwait.1* %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install install -Dpm 644 -t %{buildroot}%{_mandir}/man1 target/man/*.1 %if %{with check} %check %cargo_test %endif %changelog %autochangelog