-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdcp.spec
44 lines (34 loc) · 1.01 KB
/
dcp.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
40
41
42
43
44
Name: dcp
Version: 0.1.0-rc.2
Release: 0
Summary: distributed file copy tool
License: LANL LA-CC
Group: System Environment/Base
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
URL: http://github.com/hpc/dcp
Requires: libcircle
%description
A file copy program that evenly distributes work across a large cluster
without centralized state.
# Don't strip binaries
%define __os_install_post /usr/lib/rpm/brp-compress
%define debug_package %{nil}
###############################################################################
%prep
%setup -n %{name}-%{version}
%build
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}}
make %{?_smp_mflags}
make test
%install
rm -rf "$RPM_BUILD_ROOT"
DESTDIR="$RPM_BUILD_ROOT" make install
###############################################################################
%clean
rm -rf $RPM_BUILD_ROOT
###############################################################################
%files
%defattr(-,root,root,0755)
%{_bindir}/dcp
%{_mandir}/man1/dcp.1.gz