-
Notifications
You must be signed in to change notification settings - Fork 3
/
perl-GRNOC-NetConf.spec
83 lines (69 loc) · 2.38 KB
/
perl-GRNOC-NetConf.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Summary: GRNOC NetConf Perl Libraries
Name: perl-GRNOC-NetConf
Version: 0.0.5
Release: 1%{?dist}
License: APL 2.0
Group: Network
URL: http://globalnoc.iu.edu
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch:noarch
BuildRequires: perl
BuildRequires: perl-Test-Pod
BuildRequires: perl-Test-Pod-Coverage
Requires: perl-XML-Writer
Requires: perl-Moo
Requires: perl-Moose
Requires: perl-Net-SSH2
Requires: perl-GRNOC-Log
Requires: perl-Devel-Cover
Requires: perl-Event-Lib
Requires: perl-JSON-XS
Requires: perl-JSON-Schema
Requires: perl-autovivification
Requires: perl(GRNOC::WebService::Regex)
Requires: perl-Proc-Daemon
Requires: perl(Data::UUID)
%description
The GRNOC::NetConf collection is a set of perl modules which are used to
communicate with network devices via the netconf.
%prep
%setup -q -n perl-GRNOC-NetConf-%{version}
%build
%{__perl} Makefile.PL PREFIX="%{buildroot}%{_prefix}" INSTALLDIRS="vendor"
make
%install
rm -rf $RPM_BUILDR_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(755, root, root, -)
%{perl_vendorlib}/GRNOC/NetConf/Device
%{perl_vendorlib}/GRNOC/NetConf/Device/Brocade/
%{perl_vendorlib}/GRNOC/NetConf/Device/Brocade/MLXe/
%{perl_vendorlib}/GRNOC/NetConf/Device/JUNOS/
%{perl_vendorlib}/GRNOC/NetConf/Device/JUNOS/MX/
%defattr(644, root, root, -)
%{perl_vendorlib}/GRNOC/NetConf/Device.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/Brocade.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/Brocade/MLXe.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/Brocade/MLXe/5_8_0.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/JUNOS.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/JUNOS/13_3R1_6.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/JUNOS/MX.pm
%{perl_vendorlib}/GRNOC/NetConf/Device/JUNOS/MX/17.pm
%doc %{_mandir}/man3/GRNOC::NetConf::Device.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::Brocade.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::Brocade::MLXe.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::Brocade::MLXe::5_8_0.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::JUNOS.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::JUNOS::13_3R1_6.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::JUNOS::MX.3pm.gz
%doc %{_mandir}/man3/GRNOC::NetConf::Device::JUNOS::MX::17.3pm.gz
%changelog