Skip to content

Commit

Permalink
Fix RPM
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmcm committed Oct 3, 2020
1 parent eb83b48 commit ff275f7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .rpm/s3rename.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: s3rename
Summary: Tool to mass-rename S3 keys
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
License: MIT or ASL 2.0
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
URL: https://github.com/jamesmcm/s3rename

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 @@ -26,3 +26,12 @@ num-traits = "0.2"
log = "0.4"
fern = "0.6"
chrono = "0.4"

[package.metadata.rpm]
package = "s3rename"

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

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

0 comments on commit ff275f7

Please sign in to comment.