Spec file improvements
This commit is contained in:
parent
652c79afaf
commit
77f347170f
20
cacti.spec
20
cacti.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: cacti
|
||||
Version: 1.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: An rrd based graphing tool
|
||||
License: GPLv2+
|
||||
URL: https://www.cacti.net/
|
||||
@ -33,8 +33,11 @@ Requires: php-simplexml
|
||||
Requires: php-ctype
|
||||
Requires: php-date
|
||||
Requires: php-dom
|
||||
Requires: php-gettext
|
||||
Requires: php-filter
|
||||
Requires: php-gd
|
||||
Requires: php-gmp
|
||||
Requires: php-hash
|
||||
Requires: php-iconv
|
||||
Requires: php-imap
|
||||
Requires: php-intl
|
||||
@ -43,6 +46,7 @@ Requires: php-ldap
|
||||
Requires: php-mbstring
|
||||
Requires: php-openssl
|
||||
Requires: php-pcntl
|
||||
Requires: php-pcre
|
||||
Requires: php-posix
|
||||
Requires: php-session
|
||||
Requires: php-snmp
|
||||
@ -55,7 +59,8 @@ Requires: php-zlib
|
||||
Requires: mysql
|
||||
Requires: httpd
|
||||
Requires: rrdtool
|
||||
Requires: net-snmp, net-snmp-utils
|
||||
Requires: net-snmp
|
||||
Requires: net-snmp-utils
|
||||
Requires: crontabs
|
||||
|
||||
# Bundled JS library
|
||||
@ -94,13 +99,6 @@ touch %{buildroot}/%{_localstatedir}/log/%{name}/%{name}_stderr.log
|
||||
%{__install} -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf
|
||||
%{__install} -D -m 0644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/nginx/default.d/%{name}.conf
|
||||
%{__install} -D -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/cacti
|
||||
|
||||
# The su parameter will trip up older logrotate versions.
|
||||
# Conditionally remove it here.
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||
sed -i %{buildroot}/%{_sysconfdir}/logrotate.d/cacti -e '/^[ \t]*su /d'
|
||||
%endif
|
||||
|
||||
%{__cp} -ar formats/ images/ include/ install/ lib/ locales/ mibs/ plugins/ resource/ %{buildroot}%{_datadir}/%{name}
|
||||
%{__cp} %{SOURCE3} ./docs/README.fedora
|
||||
%{__cp} -a docs/ %{buildroot}/%{_pkgdocdir}
|
||||
@ -166,6 +164,10 @@ sed -i -e 's/\tcacti\t/\tapache\t/' %{_sysconfdir}/cron.d/%{name}
|
||||
%attr(-,root,root) %{_localstatedir}/lib/%{name}/lib
|
||||
|
||||
%changelog
|
||||
* Sun Jan 06 2019 Morten Stevens <mstevens@fedoraproject.org> - 1.2.0-2
|
||||
- Spec file improvements
|
||||
- Updated PHP libs/extensions
|
||||
|
||||
* Thu Jan 03 2019 Morten Stevens <mstevens@fedoraproject.org> - 1.2.0-1
|
||||
- Update to 1.2.0
|
||||
- Provide nginx support
|
||||
|
Loading…
Reference in New Issue
Block a user