!9 Add url field

From: @liqiuyu123 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2022-07-13 08:52:11 +00:00 committed by Gitee
commit f348dd02e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 42 additions and 33 deletions

View File

@ -1,33 +1,35 @@
%global __provides_exclude_from ^%{_libdir}/collectd/.*\\.so$ %global __provides_exclude_from ^%{_libdir}/collectd/.*\\.so$
%undefine _strict_symbol_defs_build %undefine _strict_symbol_defs_build
%global _privatelibs lib(pq|pgtypes|ecpg_compat|ecpg)\\.so*
%global __requires_exclude %{_privatelibs}
Summary: Statistics collection daemon for filling RRD files Summary: Statistics collection daemon for filling RRD files
Name: collectd Name: collectd
Version: 5.9.0 Version: 5.9.0
Release: 1 Release: 2
License: GPLv2 License: GPLv2
URL: https://collectd.org/ URL: https://collectd.org/
Source: https://collectd.org/files/%{name}-%{version}.tar.bz2 Source: https://collectd.org/files/%{name}-%{version}.tar.bz2
Source1: collectd-httpd.conf Source1: collectd-httpd.conf
Source2: collectd.service Source2: collectd.service
Source91: apache.conf Source3: apache.conf
Source92: email.conf Source4: email.conf
Source93: mysql.conf Source5: mysql.conf
Source94: nginx.conf Source6: nginx.conf
Source95: sensors.conf Source7: sensors.conf
Source96: snmp.conf Source8: snmp.conf
Source97: rrdtool.conf Source9: rrdtool.conf
Source98: onewire.conf Source10: onewire.conf
Patch0: %{name}-include-collectd.d.patch Patch0: %{name}-include-collectd.d.patch
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::Embed) BuildRequires: perl(ExtUtils::Embed)
BuildRequires: libgcrypt-devel BuildRequires: libgcrypt-devel
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
@ -334,7 +336,7 @@ an extension for the PHP interpreter.
%package postgresql %package postgresql
Summary: PostgreSQL plugin for collectd Summary: PostgreSQL plugin for collectd
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildRequires: libpq-devel BuildRequires: postgresql-server-devel
%description postgresql %description postgresql
PostgreSQL querying plugin. This plugins provides data of issued commands, PostgreSQL querying plugin. This plugins provides data of issued commands,
called handlers and database traffic. called handlers and database traffic.
@ -603,14 +605,14 @@ find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
# Move config contribs # Move config contribs
mkdir -p %{buildroot}%{_sysconfdir}/collectd.d/ mkdir -p %{buildroot}%{_sysconfdir}/collectd.d/
cp %{SOURCE91} %{buildroot}%{_sysconfdir}/collectd.d/apache.conf cp %{SOURCE3} %{buildroot}%{_sysconfdir}/collectd.d/apache.conf
cp %{SOURCE92} %{buildroot}%{_sysconfdir}/collectd.d/email.conf cp %{SOURCE4} %{buildroot}%{_sysconfdir}/collectd.d/email.conf
cp %{SOURCE93} %{buildroot}%{_sysconfdir}/collectd.d/mysql.conf cp %{SOURCE5} %{buildroot}%{_sysconfdir}/collectd.d/mysql.conf
cp %{SOURCE94} %{buildroot}%{_sysconfdir}/collectd.d/nginx.conf cp %{SOURCE6} %{buildroot}%{_sysconfdir}/collectd.d/nginx.conf
cp %{SOURCE95} %{buildroot}%{_sysconfdir}/collectd.d/sensors.conf cp %{SOURCE7} %{buildroot}%{_sysconfdir}/collectd.d/sensors.conf
cp %{SOURCE96} %{buildroot}%{_sysconfdir}/collectd.d/snmp.conf cp %{SOURCE8} %{buildroot}%{_sysconfdir}/collectd.d/snmp.conf
cp %{SOURCE97} %{buildroot}%{_sysconfdir}/collectd.d/rrdtool.conf cp %{SOURCE9} %{buildroot}%{_sysconfdir}/collectd.d/rrdtool.conf
cp %{SOURCE98} %{buildroot}%{_sysconfdir}/collectd.d/onewire.conf cp %{SOURCE10} %{buildroot}%{_sysconfdir}/collectd.d/onewire.conf
# configs for subpackaged plugins # configs for subpackaged plugins
%ifnarch s390 s390x %ifnarch s390 s390x
@ -1036,5 +1038,8 @@ make check
%changelog %changelog
* Wed Apr 06 2022 liqiuyu <liqiuyu@kylinos.cn> - 5.9.0-2
- Change buildrequires from postgresql-13-server-devel to postgresql-server-devel
* Tue Aug 17 2021 Python_Bot <Python_Bot@openeuler.org> - 5.9.0-1 * Tue Aug 17 2021 Python_Bot <Python_Bot@openeuler.org> - 5.9.0-1
- Init package - Init package

4
collectd.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: oVirt/collectd
tag_prefix: ^v
separator: "."