Skip to content

Commit

Permalink
Add specs to create rpm files
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Apr 16, 2020
1 parent e9c8211 commit b0fa4c3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .rpm/hal-bitcoin.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}

Name: hal-bitcoin
Summary: hal - the Bitcoin companion
Version: @@VERSION@@
Release: @@RELEASE@@
License: CC0
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
URL: https://github.com/stevenroose/hal/

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}/*
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ lightning-invoice = "0.2.0"
# For external commands
jobserver = "0.1.11"
shell-escape = "0.1.4"

[package.metadata.rpm]
package = "hal-bitcoin"

[package.metadata.rpm.cargo]
buildflags = ["--release"]

[package.metadata.rpm.targets]
hal = { path = "/usr/bin/hal" }

0 comments on commit b0fa4c3

Please sign in to comment.