-
Notifications
You must be signed in to change notification settings - Fork 4
/
grnoc-tsds-aggregate.spec
98 lines (75 loc) · 2.86 KB
/
grnoc-tsds-aggregate.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Summary: GRNOC TSDS Aggregate
Name: grnoc-tsds-aggregate
Version: 1.2.2
Release: 1%{?dist}
License: GRNOC
Group: Measurement
URL: http://globalnoc.iu.edu
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Requires: perl >= 5.8.8
Requires: perl-Try-Tiny
Requires: perl-GRNOC-Log
Requires: perl-GRNOC-Config
Requires: perl-Proc-Daemon
Requires: perl-List-MoreUtils
Requires: perl-MongoDB >= 1.6.1
Requires: perl-Net-AMQP-RabbitMQ
Requires: perl-JSON-XS
Requires: perl-Redis
Requires: perl-Redis-DistLock
Requires: perl-Time-HiRes
Requires: perl-Moo
Requires: perl-Types-XSD-Lite
Requires: perl-Parallel-ForkManager
Requires: perl-GRNOC-WebService-Client >= 1.3.3
Requires: perl-Math-Round
Requires: perl-GRNOC-TSDS-Aggregate-Histogram >= 1.0.1
%description
GRNOC TSDS Aggregate Daemon and Workers
%prep
%setup -q -n grnoc-tsds-aggregate-%{version}
%build
%{__perl} Makefile.PL PREFIX="%{buildroot}%{_prefix}" INSTALLDIRS="vendor"
make
%install
rm -rf $RPM_BUILD_ROOT
make pure_install
%{__install} -d -p %{buildroot}/etc/grnoc/tsds/aggregate/
%{__install} -d -p %{buildroot}/var/lib/grnoc/tsds/aggregate/
%{__install} -d -p %{buildroot}/usr/bin/
%{__install} -d -p %{buildroot}/etc/init.d/
%{__install} -d -p %{buildroot}/usr/share/doc/grnoc/tsds-aggregate/
%{__install} CHANGES.md %{buildroot}/usr/share/doc/grnoc/tsds-aggregate/CHANGES.md
%{__install} INSTALL.md %{buildroot}/usr/share/doc/grnoc/tsds-aggregate/INSTALL.md
%{__install} conf/config.xml.example %{buildroot}/etc/grnoc/tsds/aggregate/config.xml
%{__install} conf/logging.conf.example %{buildroot}/etc/grnoc/tsds/aggregate/logging.conf
%{__install} init.d/tsds-aggregate-daemon %{buildroot}/etc/init.d/tsds-aggregate-daemon
%{__install} init.d/tsds-aggregate-workers %{buildroot}/etc/init.d/tsds-aggregate-workers
%{__install} bin/tsds-aggregate-daemon %{buildroot}/usr/bin/tsds-aggregate-daemon
%{__install} bin/tsds-aggregate-workers %{buildroot}/usr/bin/tsds-aggregate-workers
# clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(640, root, root, -)
%config(noreplace) /etc/grnoc/tsds/aggregate/config.xml
%config(noreplace) /etc/grnoc/tsds/aggregate/logging.conf
%defattr(644, root, root, -)
/usr/share/doc/grnoc/tsds-aggregate/CHANGES.md
/usr/share/doc/grnoc/tsds-aggregate/INSTALL.md
%{perl_vendorlib}/GRNOC/TSDS/Aggregate.pm
%{perl_vendorlib}/GRNOC/TSDS/Aggregate/Daemon.pm
%{perl_vendorlib}/GRNOC/TSDS/Aggregate/Aggregator.pm
%{perl_vendorlib}/GRNOC/TSDS/Aggregate/Aggregator/Worker.pm
%{perl_vendorlib}/GRNOC/TSDS/Aggregate/Aggregator/Message.pm
%defattr(754, root, root, -)
/usr/bin/tsds-aggregate-daemon
/usr/bin/tsds-aggregate-workers
/etc/init.d/tsds-aggregate-daemon
/etc/init.d/tsds-aggregate-workers
%defattr(755, root, root, -)
%dir /var/lib/grnoc/tsds/aggregate/