# Generated by rust2rpm 27 # * Doesn't compile for testutils %bcond check 0 # prevent library files from being installed %global cargo_install_lib 0 %global crate jj-cli Name: rust-jj-cli Version: 0.25.0 Release: %autorelease Summary: Jujutsu - an experimental version control system License: Apache-2.0 URL: https://crates.io/crates/jj-cli Source: %{crates_source} Source: jj-cli-0.25.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(zlib) BuildRequires: cmake %global _description %{expand: Jujutsu - an experimental version control system.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %{_bindir}/fake-diff-editor %{_bindir}/fake-editor %{_bindir}/fake-formatter %{_bindir}/jj %{_datadir}/fish/vendor_completions.d/jj.fish %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build -f packaging,test-fakes %{cargo_license_summary -f packaging,test-fakes} %{cargo_license -f packaging,test-fakes} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install -f packaging,test-fakes mkdir -p $RPM_BUILD_ROOT/%{_datadir}/fish/vendor_completions.d $RPM_BUILD_ROOT/%{_bindir}/jj util completion fish > $RPM_BUILD_ROOT/%{_datadir}/fish/vendor_completions.d/jj.fish %if %{with check} %check %cargo_test -f packaging,test-fakes %endif %changelog %autochangelog