-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrquota.spec.in
67 lines (53 loc) · 1.67 KB
/
rquota.spec.in
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Quota utility for displaying remote NFS quotas
Group: System Environment/Base
License: GPL
Url: http://github.com/chaos/rquota
# we replace the redhat quota program
Conflicts: quota
Provides: quota = 4
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: %{name}-%{version}.tar.gz
%bcond_with lustre
%if 0%{?with_lustre}
BuildRequires: lustre
%endif
%description
Quota is a utility for displaying remote filesystem quota information.
This particular implentation does not report local filesystem quotas
as it is intended to run in a computing center where all user data
resides on shared NFS or Lustre servers. In addition, quota only reports
filesystems listed in the quota.conf file to reduce latency in environments
where there are many remote filesystems that are not configured with quotas.
Quotas are reported in human-readable units: 'K', 'M', and 'T' bytes.
%prep
%setup
%build
%configure \
%{?with_lustre: --with-lustre} \
--program-prefix=%{?_program_prefix:%{_program_prefix}}
make
make check
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root,0755)
%doc ChangeLog NEWS INSTALL README DISCLAIMER COPYING
%{_bindir}/quota
%{_bindir}/repquota
%{_mandir}/man1/quota.1*
%{_mandir}/man8/repquota.8*
%{_mandir}/man5/quota.conf.5*
%config(noreplace) %{_sysconfdir}/quota.conf
%changelog
* Mon Jun 18 2018 Jim Garlick <[email protected] 2.2.12-1
- Build without META file
* Wed Jun 10 2015 Jim Garlick <[email protected] 2.2.11-2
- TOSS 3: Add Provides: quota = 4 per Trent in TOSS-2882
- Add project URL