Created
June 15, 2017 18:35
-
-
Save MichaelAquilina/4a1a4bf6d400d09614e74e9662d00170 to your computer and use it in GitHub Desktop.
ripgrep spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# spec file for package ripgrep | |
# | |
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. | |
# | |
# All modifications and additions to the file contributed by third parties | |
# remain the property of their copyright owners, unless otherwise agreed | |
# upon. The license for this file, and modifications and additions to the | |
# file, is the same license as for the pristine package itself (unless the | |
# license for the pristine package is not an Open Source License, in which | |
# case the license is the MIT License). An "Open Source License" is a | |
# license that conforms to the Open Source Definition (Version 1.9) | |
# published by the Open Source Initiative. | |
# Please submit bugfixes or comments via http://bugs.opensuse.org/ | |
# | |
%define _topdir %(echo ~/rpmbuild) | |
%define name ripgrep | |
%define release 1 | |
%define version 0.5.2 | |
%define buildroot %{_topdir}/%{name}-%{version}-root | |
BuildRoot: %{buildroot} | |
Name: %{name} | |
Version: %{version} | |
Release: %{release} | |
Source: %{name}-%{version}.tar.gz | |
Summary: %{name} | |
License: MIT | |
BuildRequires: rust cargo | |
%description | |
Super fast ripgrep | |
%prep | |
%setup -q | |
%build | |
cargo build --release --verbose | |
%install | |
mkdir -p $RPM_BUILD_ROOT/usr/bin | |
mkdir -p $RPM_BUILD_ROOT/usr/local/man/man1 | |
cp target/release/rg $RPM_BUILD_ROOT/usr/bin | |
cp doc/rg.1 $RPM_BUILD_ROOT/usr/local/man/man1 | |
%post | |
%postun | |
%files | |
/usr/bin/rg | |
/usr/local/man/man1 | |
%changelog | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment