Browse code

rubygem-fluentd: Add rubygem packages required by fluent

As part of New Package request for 'fluentd' related ruby gem
packages, This changelist will add bundler, systemd-journal, ffi
along with the updated tzinfo rubygem package which are required
by Fluent-plugin-systemd during run time.

Change-Id: Ic47895efc83bec0d272d89e661a559b6d651ddb2
Signed-off-by: srinidhira0 <srinidhir@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5487
Reviewed-by: Sharath George
Tested-by: Sharath George
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5560

srinidhira0 authored on 2018/08/15 00:37:51
Showing 6 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,35 @@
0
+%global debug_package %{nil}
1
+%global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]})
2
+%global gem_name bundler
3
+
4
+Name: rubygem-bundler
5
+Version:        1.16.3
6
+Release:        1%{?dist}
7
+Summary:        manages an application's dependencies
8
+Group:          Development/Languages
9
+License:        MIT
10
+URL:            https://rubygems.org/gems/%{gem_name}/versions/%{version}
11
+Source0:        https://rubygems.org/downloads/bundler-%{version}.gem
12
+%define sha1    bundler=ca6a670c29d2928a8dca24ee95a7978c8a532e36
13
+BuildRequires:  ruby > 2.1.0
14
+Provides: rubygem-bundler = %{version}
15
+
16
+%description
17
+Bundler manages an application's dependencies through its entire life
18
+across many machines, systematically and repeatably.
19
+
20
+%prep
21
+%setup -q -c -T
22
+
23
+%build
24
+
25
+%install
26
+gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
27
+
28
+%files
29
+%defattr(-,root,root,-)
30
+%{gemdir}
31
+
32
+%changelog
33
+*   Mon Aug 13 2018 Srinidhi Rao <srinidhir@vmware.com> 1.16.3-1
34
+-   Initial build
0 35
new file mode 100755
... ...
@@ -0,0 +1,36 @@
0
+%global debug_package %{nil}
1
+%global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]})
2
+%global gem_name ffi
3
+
4
+Name: rubygem-ffi
5
+Version:        1.9.25
6
+Release:        1%{?dist}
7
+Summary:        Ruby FFI library
8
+Group:          Development/Languages
9
+License:        BSD-2-Clause
10
+URL:            https://rubygems.org/gems/%{gem_name}/versions/%{version}
11
+Source0:        https://rubygems.org/downloads/ffi-%{version}.gem
12
+%define sha1    ffi=86fa011857f977254ccf39f507587310f9ade768
13
+BuildRequires:  ruby > 2.1.0
14
+BuildArch: %{_arch}
15
+Provides: rubygem-ffi = %{version}
16
+
17
+%description
18
+Ruby FFI library
19
+
20
+%prep
21
+%setup -q -c -T
22
+
23
+%build
24
+
25
+%install
26
+gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
27
+
28
+%files
29
+%defattr(-,root,root,-)
30
+%{gemdir}
31
+%exclude /usr/lib/ruby/gems/2.4.0/gems/ffi-1.9.25/ext/ffi_c/libffi-x86_64-linux/include/ffitarget.h
32
+
33
+%changelog
34
+*   Mon Aug 13 2018 Srinidhi Rao <srinidhir@vmware.com> 1.9.25-1
35
+-   Initial build
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 Name: rubygem-fluent-plugin-systemd
6 6
 Version:        1.0.1
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 Summary:        This is a fluentd input plugin. It reads logs from the systemd journal.
9 9
 Group:          Development/Languages
10 10
 License:        Apache 2
... ...
@@ -16,6 +16,8 @@ BuildRequires:  ruby
16 16
 Requires: rubygem-fluentd >= 0.14.11
17 17
 Requires: rubygem-fluentd < 2.0.0
18 18
 Requires: systemd
19
+Requires: rubygem-systemd-journal > 1.3.2
20
+
19 21
 %description
20 22
 This is a fluentd input plugin. It reads logs from the systemd journal.
21 23
 
... ...
@@ -32,5 +34,7 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
32 32
 %{gemdir}
33 33
 
34 34
 %changelog
35
+*   Thu Aug 16 2018 Srinidhi Rao <srinidhir@vmware.com> 1.0.1-2
36
+-   Added the dependency on rubygem-systemd-journal
35 37
 *   Tue Jul 24 2018 Srinidhi Rao <srinidhir@vmware.com> 1.0.1-1
36 38
 -   Initial build
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 Name: rubygem-fluentd
6 6
 Version:        1.2.3
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 Summary:        An open source data collector designed to scale and simplify log management
9 9
 Group:          Development/Languages
10 10
 License:        Apache 2
... ...
@@ -32,6 +32,7 @@ Requires: rubygem-serverengine < 3.0.0
32 32
 Requires: rubygem-tzinfo >= 1.0.0
33 33
 Requires: rubygem-tzinfo-data > 1.0.0
34 34
 Requires: rubygem-yajl-ruby >= 1.0
35
+Requires: rubygem-bundler >= 1.14.0
35 36
 BuildArch: noarch
36 37
 Provides: rubygem(%{gem_name}) = %{version}
37 38
 
... ...
@@ -52,5 +53,7 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
52 52
 %{gemdir}
53 53
 
54 54
 %changelog
55
+*   Thu Aug 16 2018 Srinidhi Rao <srinidhir@vmware.com> 1.2.3-2
56
+-   Added dependency on rubygem-bundler
55 57
 *   Tue Jul 24 2018 Srinidhi Rao <srinidhir@vmware.com> 1.2.3-1
56 58
 -   Initial build
57 59
new file mode 100755
... ...
@@ -0,0 +1,38 @@
0
+%global debug_package %{nil}
1
+%global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]})
2
+%global gem_name systemd-journal
3
+
4
+Name: rubygem-systemd-journal
5
+Version:        1.3.3
6
+Release:        1%{?dist}
7
+Summary:        Provides the ability to navigate and read entries from the systemd journal in ruby
8
+Group:          Development/Languages
9
+License:        MIT
10
+URL:            https://rubygems.org/gems/%{gem_name}/versions/%{version}
11
+Source0:        https://rubygems.org/downloads/systemd-journal-%{version}.gem
12
+%define sha1    systemd-journal=3861d36e84af55a30418fc0909df623274250c66
13
+BuildRequires:  ruby > 2.1.0
14
+
15
+Requires: rubygem-ffi >= 1.9.0
16
+
17
+Provides: rubygem-systemd-journal = %{version}
18
+
19
+%description
20
+Provides the ability to navigate and read entries from the systemd journal in ruby,
21
+as well as write events to the journal.
22
+
23
+%prep
24
+%setup -q -c -T
25
+
26
+%build
27
+
28
+%install
29
+gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
30
+
31
+%files
32
+%defattr(-,root,root,-)
33
+%{gemdir}
34
+
35
+%changelog
36
+*   Mon Aug 13 2018 Srinidhi Rao <srinidhir@vmware.com> 1.3.3-1
37
+-   Initial build
... ...
@@ -3,14 +3,14 @@
3 3
 %global gem_name tzinfo
4 4
 
5 5
 Name: rubygem-tzinfo
6
-Version:        1.2.3
6
+Version:        1.2.5
7 7
 Release:        1%{?dist}
8 8
 Summary:        Timezone related support for Ruby.
9 9
 Group:          Development/Languages
10 10
 License:        MIT
11 11
 URL:            https://rubygems.org/gems/tzinfo/versions/%{version}
12 12
 Source0:        https://rubygems.org/downloads/tzinfo-%{version}.gem
13
-%define sha1    tzinfo=28d2bfb90e74b9128b18764ae0b815592e01a972
13
+%define sha1    tzinfo=c63e819a4ef646956bef31acec7d39ddccaff35c
14 14
 BuildRequires:  ruby
15 15
 
16 16
 %description
... ...
@@ -29,5 +29,7 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
29 29
 %{gemdir}
30 30
 
31 31
 %changelog
32
+*   Tue Aug 14 2018 Srinidhi Rao <srinidhir@vmware.com> 1.2.5-1
33
+-   Upgraded to 1.2.5
32 34
 *   Fri Aug 25 2017 Kumar Kaushik <kaushikk@vmware.com> 1.2.3-1
33 35
 -   Initial build