forked from GlobalNOC/GRNOC-TSDS-Aggregate-Histogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
perl-GRNOC-TSDS-Aggregate-Histogram.spec
45 lines (36 loc) · 1.22 KB
/
perl-GRNOC-TSDS-Aggregate-Histogram.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
Name: perl-GRNOC-TSDS-Aggregate-Histogram
Version: 1.0.0
Release: 1%{?dist}
Summary: GRNOC TSDS Aggregate Histogram Library
License: Apache License, Version 2.0
Group: Development/Libraries
URL: http://globalnoc.iu.edu
Source0: GRNOC-TSDS-Aggregate-Histogram-%{version}.tar.gz
BuildRoot: %{_tmppath}/GRNOC-TSDS-Aggregate-Histogram-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl >= 5.8.8
Requires: perl(Math::Round)
Requires: perl(XSLoader)
BuildRequires: perl(Test::Simple)
BuildRequires: gcc
%description
This Perl library is used to create histograms used in data aggregation for TSDS.
%prep
%setup -q -n GRNOC-TSDS-Aggregate-Histogram-%{version}
%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"
%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(644 ,root, root, -)
%{perl_vendorarch}/GRNOC/TSDS/Aggregate/Histogram.pm
%{perl_vendorarch}/auto/GRNOC/TSDS/Aggregate/Histogram/Histogram.so
%{perl_vendorarch}/auto/GRNOC/TSDS/Aggregate/Histogram/Histogram.bs