Skip to content

Commit ff275f7

Browse files
committed
Fix RPM
1 parent eb83b48 commit ff275f7

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.rpm/s3rename.spec

Lines changed: 32 additions & 0 deletions
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: s3rename
6+
Summary: Tool to mass-rename S3 keys
7+
Version: @@VERSION@@
8+
Release: @@RELEASE@@%{?dist}
9+
License: MIT or ASL 2.0
10+
Group: Applications/System
11+
Source0: %{name}-%{version}.tar.gz
12+
URL: https://github.com/jamesmcm/s3rename
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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ num-traits = "0.2"
2626
log = "0.4"
2727
fern = "0.6"
2828
chrono = "0.4"
29+
30+
[package.metadata.rpm]
31+
package = "s3rename"
32+
33+
[package.metadata.rpm.cargo]
34+
buildflags = ["--release"]
35+
36+
[package.metadata.rpm.targets]
37+
s3rename = { path = "/usr/bin/s3rename" }

0 commit comments

Comments
 (0)