Skip to content

multiple little issues when building rpm package. #5226

@ElCoyote27

Description

@ElCoyote27

Hi,
Here's what I had to change in order to successfully build an rpm of HEAD (Jan 19th 2019).

  1. The rpm 'Version' cannot have dashes. The default string was "v1.12.0-rc3-11-gd34a9d8" so I just changed it to "1.12.0".
  2. The changelog is in reverse chronological order. This prevents a successful rpm build.
    Please fix the changelog order. Thank you.
  3. /usr/lib64/netdata/conf.d/node.d wasn't present and this killed the rpm build. I commented this out.

Here's my diff.

diff --git a/netdata.spec.in b/netdata.spec.in
index 43670ca..5a6e970 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -81,7 +81,7 @@ Recommends: python2-psycopg2 \

Summary: Real-time performance monitoring, done right
Name: @PACKAGE_NAME@
-Version: @PACKAGE_RPM_VERSION@
+Version: 1.12.0
Release: 1%{?dist}
License: GPLv3+
Group: Applications/System
@@ -226,7 +226,7 @@ rm -rf "${RPM_BUILD_ROOT}"
%dir %{_libdir}/%{name}/conf.d/health.d
%dir %{_libdir}/%{name}/conf.d/python.d
%dir %{_libdir}/%{name}/conf.d/charts.d
-%dir %{_libdir}/%{name}/conf.d/node.d
+#%dir %{_libdir}/%{name}/conf.d/node.d
%dir %{_libdir}/%{name}/conf.d/statsd.d

%if %{with systemd}
@@ -241,7 +241,7 @@ rm -rf "${RPM_BUILD_ROOT}"
%{_datadir}/%{name}/web

%changelog
-* Sun Nov 15 2015 Alon Bar-Lev alonbl@redhat.com - 0.0.0-1
-- Initial add.

  • Fix permissions for log files
    +* Sun Nov 15 2015 Alon Bar-Lev alonbl@redhat.com - 0.0.0-1
    +- Initial add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/packagingPackaging and operating systems supportdiscussionno changelogIssues which are not going to be added to changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions