-
Notifications
You must be signed in to change notification settings - Fork 0
/
libthruk.spec
105 lines (90 loc) · 2.33 KB
/
libthruk.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
99
100
101
102
103
104
%undefine _disable_source_fetch
Summary: Thruk perl libraries
Name: libthruk
Version: 3.20
Release: 0
License: GPL-2.0-or-later
Group: Applications/System
URL: http://www.thruk.org/
Packager: Sven Nierlein <[email protected]>
Vendor: Labs Consol
Source0: https://github.com/sni/thruk_libs/archive/refs/tags/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: gd-devel > 1.8
BuildRequires: zlib-devel
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: mysql-devel
BuildRequires: perl
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: binutils
BuildRequires: gcc
BuildRequires: chrpath
BuildRequires: rsync
Requires: gd
# sles
%if %{defined suse_version}
BuildRequires: libexpat-devel
BuildRequires: fontconfig-devel
BuildRequires: xorg-x11-libXpm-devel
# sles 12
%if 0%{?suse_version} >= 1315
BuildRequires: libpng16-devel
BuildRequires: libtiff-devel
BuildRequires: libvpx-devel
Requires: libjpeg62
%else
# sles 11
BuildRequires: freetype2-devel
%endif
%endif
# centos
%if 0%{?el6}
BuildRequires: perl-devel
BuildRequires: expat-devel
%endif
%if 0%{?el7}
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl-devel
Requires: perl(Data::Dumper)
Requires: perl(Digest)
%endif
%if 0%{?el8}
BuildRequires: perl-devel
BuildRequires: expat-devel
%endif
# fedora
%if 0%{?fedora}
BuildRequires: perl-devel
BuildRequires: expat-devel
%endif
# disable creating useless empty debug packages
%define debug_package %{nil}
# disable automatic requirements
AutoReqProv: no
%description
Thruk is a multibackend monitoring webinterface which currently
supports Nagios, Icinga and Shinken as backend using the Livestatus
API. It is designed to be a 'dropin' replacement and covers almost
all of the original features plus adds additional enhancements for
large installations.
%prep
%setup -q -n thruk_libs-%{version}
%build
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" LIBDIR="%{_libdir}/thruk/"
%if %{defined suse_version}
%{__make} installbuilddeps DESTDIR="%{buildroot}" LIBDIR="%{_libdir}/thruk/"
%endif
%clean
%{__rm} -rf %{buildroot}
%files
%attr(-,root,root) %{_libdir}/thruk
%changelog
* Wed Feb 14 2024 Will Haines <[email protected]>
- Fork for CU Boulder
* Mon Jul 13 2015 Sven Nierlein <[email protected]> 2.00-1
- Initial libs package