-
Notifications
You must be signed in to change notification settings - Fork 6
/
perl-GRNOC-WebService-Client.spec
75 lines (63 loc) · 2.26 KB
/
perl-GRNOC-WebService-Client.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
Name: perl-GRNOC-WebService-Client
Version: 1.5.3
Release: 2%{?dist}
Summary: GRNOC::WebService::Client Perl module
License: GRNOC
Group: Development/Libraries
URL: http://globalnoc.iu.edu
Source0: GRNOC-WebService-Client-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: mod_perl
BuildRequires: httpd-devel
BuildRequires: ImageMagick-perl
BuildRequires: perl-GRNOC-WebService >= 1.2.5
BuildRequires: mod_perl-devel
BuildRequires: perl-Devel-Cover
Requires: perl >= 5.8.8
Requires: perl-GRNOC-Config >= 1.0.7
Requires: perl-JSON >= 2.0
Requires: perl-JSON-XS >= 2.0
Requires: perl-LWP-UserAgent-Determined
Requires: perl-libwww-perl
Requires: perl-IO-Socket-SSL
Requires: perl-File-MMagic
Requires: perl-XML-XPath
Requires: perl-XML-LibXML
%if "%rhel" >= "7"
Requires: perl-LWP-Protocol-https
%endif
Provides: perl(GRNOC::WebService::Client) = %{version}
%description
WebService Client Module
%prep
%setup -q -n GRNOC-WebService-Client-%{version}
%build
%{__perl} Makefile.PL
make dist
%install
rm -rf $RPM_BUILD_ROOT
%{__install} -d -p %{buildroot}%{perl_sitelib}/GRNOC/WebService/
%{__install} -d -p %{buildroot}%{perl_sitelib}/GRNOC/WebService/Client/
%{__install} -d -p %{buildroot}/usr/bin/globalnoc/webservice/
%{__install} -d -p %{buildroot}/etc/grnoc/webservice_client/
%{__install} lib/GRNOC/WebService/Client.pm %{buildroot}%{perl_sitelib}/GRNOC/WebService/
%{__install} lib/GRNOC/WebService/Client/Paginator.pm %{buildroot}%{perl_sitelib}/GRNOC/WebService/Client/
%{__install} bin/wsutil.pl %{buildroot}/usr/bin/globalnoc/webservice/
%{__install} conf/config.xml %{buildroot}/etc/grnoc/webservice_client/config.xml
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ ! -e /usr/bin/wsutil ]
then
ln -s /usr/bin/globalnoc/webservice/wsutil.pl /usr/bin/wsutil
fi
%files
%defattr(-,root,root,-)
%{perl_sitelib}/GRNOC/WebService/Client.pm
%{perl_sitelib}/GRNOC/WebService/Client/Paginator.pm
/usr/bin/globalnoc/webservice/wsutil.pl
%config(noreplace) /etc/grnoc/webservice_client/config.xml
%changelog
* Mon Jun 13 2011 mrmccrac 1.1.0-1
- Specfile autogenerated by cpanspec 1.77.