forked from rexray/rexray
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rpm.spec
39 lines (30 loc) · 852 Bytes
/
rpm.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%define _topdir %{rpmbuild}
%define _tmppath %{_topdir}/tmp
Summary: Tool for managing remote & local storage.
Name: rexray
Version: %{v_semver}
Release: 1
License: Apache License
Group: Applications/Storage
#Source: https://github.com/emccode/rexray/archive/master.zip
URL: https://github.com/emccode/rexray
Vendor: EMC{code}
Packager: Andrew Kutz <[email protected]>
BuildArch: %{v_arch}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
%description
A guest based storage introspection tool that
allows local visibility and management from cloud
and storage platforms.
%prep
%build
%install
install -D %{rexray} $RPM_BUILD_ROOT/usr/bin/rexray
%post
/usr/bin/rexray install 1> /dev/null
%preun
/usr/bin/rexray uninstall --package 1> /dev/null
%clean
#rm -rf "$RPM_BUILD_ROOT"
%files
%attr(0755, root, root) /usr/bin/rexray