-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperl-GRNOC-CLI.spec
50 lines (37 loc) · 1 KB
/
perl-GRNOC-CLI.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
45
46
47
48
49
Name: perl-GRNOC-CLI
Version: 1.0.2
Release: 2%{?dist}
Summary: GRNOC CLI utility library
License: GRNOC
Group: Development/Libraries
URL: http://globalnoc.iu.edu
Source0: GRNOC-CLI-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl >= 5.8.8
Requires: perl-Term-ProgressBar
Requires: perl-TermReadKey
%description
The GRNOC::CLI library is a set of standardized actions that are common in CLI scripts.
%prep
%setup -q -n GRNOC-CLI-%{version}
%build
%{__perl} Makefile.PL PREFIX="%{buildroot}%{_prefix}" INSTALLDIRS="vendor"
make
%install
rm -rf $RPM_BUILD_ROOT
make pure_install
# clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{perl_vendorlib}/GRNOC/CLI.pm
%doc %{_mandir}/man3/GRNOC::CLI.3pm.gz
%changelog
* Sat Mar 2 2013 Dan Doyle <[email protected]> - GRNOC-CLI
- Initial build.