1 |
Summary: a module of utility functions for Disk Pool Manager (DPM) |
2 |
Name: perl-DPM-Utils |
3 |
Version: 0.01 |
4 |
Release: 1%{?dist} |
5 |
License: APL 2.0 |
6 |
Group: Development/Libraries |
7 |
URL: http://www.nikhef.nl/grid/ |
8 |
Source0: DPM-Utils-%{version}.tar.gz |
9 |
# BuildRoot is still required for EPEL5 |
10 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
11 |
BuildRequires: perl(ExtUtils::MakeMaker) |
12 |
BuildArch: noarch |
13 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
14 |
|
15 |
|
16 |
%description |
17 |
This is a collection of useful functions to program against the |
18 |
Disk Pool Manager (DPM) software. In the current version it contains |
19 |
the functions to resolve SURLs to local replicas and vice versa. |
20 |
|
21 |
|
22 |
%prep |
23 |
%setup -q -n DPM-Utils-%{version} |
24 |
|
25 |
%build |
26 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
27 |
make %{?_smp_mflags} |
28 |
|
29 |
%install |
30 |
rm -rf $RPM_BUILD_ROOT |
31 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
32 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
33 |
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
34 |
chmod -R u+w $RPM_BUILD_ROOT/* |
35 |
|
36 |
%check |
37 |
%if 0%{?fedora} |
38 |
make test |
39 |
%endif |
40 |
|
41 |
# Retain the clean section for EPEL5 |
42 |
%clean |
43 |
rm -rf $RPM_BUILD_ROOT |
44 |
|
45 |
%files |
46 |
%doc README Changes |
47 |
%{perl_vendorlib}/* |
48 |
%{_mandir}/man3/DPM::Utils.3pm* |
49 |
|
50 |
|
51 |
|
52 |
%changelog |
53 |
* Wed Nov 27 2013 Dennis van Dok <dennisvd@nikhef.nl> 0.01-1 |
54 |
- Initial build |
55 |
|