Skip to content

Commit b0fa4c3

Browse files
committed
Add specs to create rpm files
1 parent e9c8211 commit b0fa4c3

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.rpm/hal-bitcoin.spec

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
%define __spec_install_post %{nil}
2+
%define __os_install_post %{_dbpath}/brp-compress
3+
%define debug_package %{nil}
4+
5+
Name: hal-bitcoin
6+
Summary: hal - the Bitcoin companion
7+
Version: @@VERSION@@
8+
Release: @@RELEASE@@
9+
License: CC0
10+
Group: Applications/System
11+
Source0: %{name}-%{version}.tar.gz
12+
URL: https://github.com/stevenroose/hal/
13+
14+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15+
16+
%description
17+
%{summary}
18+
19+
%prep
20+
%setup -q
21+
22+
%install
23+
rm -rf %{buildroot}
24+
mkdir -p %{buildroot}
25+
cp -a * %{buildroot}
26+
27+
%clean
28+
rm -rf %{buildroot}
29+
30+
%files
31+
%defattr(-,root,root,-)
32+
%{_bindir}/*

Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,12 @@ lightning-invoice = "0.2.0"
3939
# For external commands
4040
jobserver = "0.1.11"
4141
shell-escape = "0.1.4"
42+
43+
[package.metadata.rpm]
44+
package = "hal-bitcoin"
45+
46+
[package.metadata.rpm.cargo]
47+
buildflags = ["--release"]
48+
49+
[package.metadata.rpm.targets]
50+
hal = { path = "/usr/bin/hal" }

0 commit comments

Comments
 (0)