mirror of
https://github.com/sharkdp/bat.git
synced 2024-10-01 15:11:30 +02:00
Add spec for using cargo-rpm
With this, fedora/rhel/centos users can use their default package manager to install bat, without needing cargo or rust.
This commit is contained in:
parent
8c6a74a6c5
commit
d8edd70294
33
.rpm/bat.spec
Normal file
33
.rpm/bat.spec
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
%define __spec_install_post %{nil}
|
||||||
|
%define __os_install_post %{_dbpath}/brp-compress
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
Name: bat
|
||||||
|
Summary: A cat(1) clone with wings.
|
||||||
|
Version: @@VERSION@@
|
||||||
|
Release: 1
|
||||||
|
License: MIT or ASL 2.0
|
||||||
|
Group: Applications/System
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
URL: https://github.com/sharkdp/bat
|
||||||
|
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}
|
||||||
|
cp -a * %{buildroot}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/*
|
||||||
|
|
@ -42,3 +42,9 @@ features = []
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempdir = "0.3"
|
tempdir = "0.3"
|
||||||
|
|
||||||
|
[package.metadata.rpm.cargo]
|
||||||
|
buildflags = ["--release"]
|
||||||
|
|
||||||
|
[package.metadata.rpm.targets]
|
||||||
|
bat = { path = "/usr/bin/bat" }
|
||||||
|
Loading…
Reference in New Issue
Block a user