gem2rpm 0.11.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,108 @@
1
+ # Generated from <%= spec.file_name %> by gem2rpm -*- rpm-spec -*-
2
+ %global vagrant_plugin_name <%= spec.name %>
3
+
4
+ Name: %{vagrant_plugin_name}
5
+ Version: <%= spec.version %>
6
+ Release: 1%{?dist}
7
+ Summary: <%= spec.summary.gsub(/\.$/, "") %>
8
+ License: <%= spec.licenses.join(" and ") %>
9
+ <% if spec.homepage -%>
10
+ URL: <%= spec.homepage %>
11
+ <% end -%>
12
+ Source0: <%= download_path %>%{vagrant_plugin_name}-%{version}.gem
13
+ Requires: vagrant
14
+ BuildRequires: vagrant
15
+ <% if spec.extensions.empty? -%>
16
+ BuildArch: noarch
17
+ <% end -%>
18
+ Provides: vagrant(%{vagrant_plugin_name}) = %{version}
19
+
20
+ %description
21
+ <%= spec.description %>
22
+
23
+ <% if doc_subpackage -%>
24
+ %package doc
25
+ Summary: Documentation for %{name}
26
+ Requires: %{name} = %{version}-%{release}
27
+ BuildArch: noarch
28
+
29
+ %description doc
30
+ Documentation for %{name}.
31
+ <% end # if doc_subpackage -%>
32
+
33
+ %prep
34
+ %setup -q -n %{vagrant_plugin_name}-%{version}
35
+
36
+ %build
37
+ # Create the gem as gem install only works on a gem file
38
+ gem build ../%{vagrant_plugin_name}-%{version}.gemspec
39
+
40
+ # %%vagrant_plugin_install compiles any C extensions and installs the gem into ./%%gem_dir
41
+ # by default, so that we can move it into the buildroot in %%install
42
+ %vagrant_plugin_install
43
+
44
+ %install
45
+ mkdir -p %{buildroot}%{vagrant_plugin_dir}
46
+ cp -a .%{vagrant_plugin_dir}/* \
47
+ %{buildroot}%{vagrant_plugin_dir}/
48
+
49
+ <% unless spec.extensions.empty? -%>
50
+ mkdir -p %{buildroot}%{vagrant_plugin_extdir_mri}
51
+ cp -a .%{vagrant_plugin_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{vagrant_plugin_extdir_mri}/
52
+
53
+ <% for ext in spec.extensions -%>
54
+ # Prevent dangling symlink in -debuginfo (rhbz#878863).
55
+ rm -rf %{buildroot}%{vagrant_plugin_instdir}/<%= ext.split(File::SEPARATOR).first %>/
56
+ <% end -%>
57
+ <% end -%>
58
+
59
+ <% unless spec.executables.empty? -%>
60
+ mkdir -p %{buildroot}%{_bindir}
61
+ cp -a .%{_bindir}/* \
62
+ %{buildroot}%{_bindir}/
63
+
64
+ find %{buildroot}%{vagrant_plugin_instdir}/<%= spec.bindir %> -type f | xargs chmod a+x
65
+ <% end -%>
66
+
67
+ %check
68
+ pushd .%{gem_instdir}
69
+ <% if tests.entries.empty? -%>
70
+ # Run the test suite.
71
+ <% end -%>
72
+ <% for t in tests -%>
73
+ # <%= t.command %>
74
+ <% end -%>
75
+ popd
76
+
77
+ <%
78
+ # Change macros for Vagrant packaging
79
+ config.macros[:instdir] = '%{vagrant_plugin_instdir}'
80
+ config.macros[:libdir] = '%{vagrant_plugin_libdir}'
81
+ -%>
82
+ %files
83
+ %dir %{vagrant_plugin_instdir}
84
+ <% for f in spec.executables -%>
85
+ %{_bindir}/<%= f %>
86
+ <% end -%>
87
+ <% unless spec.extensions.empty? -%>
88
+ %{vagrant_plugin_extdir_mri}
89
+ <% end -%>
90
+ <%= main_files.reject do |item|
91
+ spec.extensions.detect { |extension| item =~ /^#{extension.split(File::SEPARATOR).first}$/}
92
+ end.to_rpm %>
93
+ <% unless doc_subpackage -%>
94
+ %doc %{vagrant_plugin_docdir}
95
+ <%= doc_files.to_rpm %>
96
+ <% end -%>
97
+ %exclude %{vagrant_plugin_cache}
98
+ %{vagrant_plugin_spec}
99
+
100
+ <% if doc_subpackage -%>
101
+ %files doc
102
+ %doc %{vagrant_plugin_docdir}
103
+ <%= files.top_level_entries.doc_entries.to_rpm %>
104
+ <% end # if doc_subpackage -%>
105
+
106
+ %changelog
107
+ * <%= Time.now.strftime("%a %b %d %Y") %> <%= packager %> - <%= spec.version %>-1
108
+ - Initial package
@@ -0,0 +1,115 @@
1
+ # Generated from <%= spec.file_name %> by gem2rpm -*- rpm-spec -*-
2
+ %global gem_name <%= spec.name %>
3
+
4
+ Name: rubygem-%{gem_name}
5
+ Version: <%= spec.version %>
6
+ Release: 1%{?dist}
7
+ Summary: <%= spec.summary.gsub(/\.$/, "") %>
8
+ License: <%= spec.licenses.join(" and ") %>
9
+ <% if spec.homepage -%>
10
+ URL: <%= spec.homepage %>
11
+ <% end -%>
12
+ Source0: <%= download_path %>%{gem_name}-%{version}.gem
13
+ BuildRequires: ruby(release)
14
+ <% for req in spec.required_rubygems_version -%>
15
+ BuildRequires: <%= requirement 'rubygems-devel', req %>
16
+ <% end -%>
17
+ <% for req in spec.required_ruby_version -%>
18
+ BuildRequires: <%= requirement "ruby#{'-devel' unless spec.extensions.empty?}", req %>
19
+ <% end -%>
20
+ <% unless spec.extensions.empty? -%>
21
+ # Compiler is required for build of gem binary extension.
22
+ # https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires
23
+ BuildRequires: gcc
24
+ <% end -%>
25
+ <%= development_dependencies.reject do |d|
26
+ ["rdoc", "rake", "bundler"].include? d.name
27
+ end.virtualize.with_requires.comment_out.to_rpm -%>
28
+ <% if spec.extensions.empty? -%>
29
+ BuildArch: noarch
30
+ <% end -%>
31
+
32
+ %description
33
+ <%= spec.description %>
34
+
35
+ <% if doc_subpackage -%>
36
+ %package doc
37
+ Summary: Documentation for %{name}
38
+ Requires: %{name} = %{version}-%{release}
39
+ BuildArch: noarch
40
+
41
+ %description doc
42
+ Documentation for %{name}.
43
+ <% end # if doc_subpackage -%>
44
+
45
+ %prep
46
+ %setup -q -n %{gem_name}-%{version}
47
+
48
+ %build
49
+ # Create the gem as gem install only works on a gem file
50
+ gem build ../%{gem_name}-%{version}.gemspec
51
+
52
+ # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
53
+ # by default, so that we can move it into the buildroot in %%install
54
+ %gem_install
55
+
56
+ %install
57
+ mkdir -p %{buildroot}%{gem_dir}
58
+ cp -a .%{gem_dir}/* \
59
+ %{buildroot}%{gem_dir}/
60
+
61
+ <% unless spec.extensions.empty? -%>
62
+ mkdir -p %{buildroot}%{gem_extdir_mri}
63
+ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
64
+
65
+ <% for ext in spec.extensions -%>
66
+ # Prevent dangling symlink in -debuginfo (rhbz#878863).
67
+ rm -rf %{buildroot}%{gem_instdir}/<%= ext.split(File::SEPARATOR).first %>/
68
+ <% end -%>
69
+ <% end -%>
70
+
71
+ <% unless spec.executables.empty? -%>
72
+ mkdir -p %{buildroot}%{_bindir}
73
+ cp -a .%{_bindir}/* \
74
+ %{buildroot}%{_bindir}/
75
+
76
+ find %{buildroot}%{gem_instdir}/<%= spec.bindir %> -type f | xargs chmod a+x
77
+ <% end -%>
78
+
79
+ %check
80
+ pushd .%{gem_instdir}
81
+ <% if tests.entries.empty? -%>
82
+ # Run the test suite.
83
+ <% end -%>
84
+ <% for t in tests -%>
85
+ # <%= t.command %>
86
+ <% end -%>
87
+ popd
88
+
89
+ %files
90
+ %dir %{gem_instdir}
91
+ <% for f in spec.executables -%>
92
+ %{_bindir}/<%= f %>
93
+ <% end -%>
94
+ <% unless spec.extensions.empty? -%>
95
+ %{gem_extdir_mri}
96
+ <% end -%>
97
+ <%= main_files.reject do |item|
98
+ spec.extensions.detect { |extension| item =~ /^#{extension.split(File::SEPARATOR).first}$/}
99
+ end.to_rpm %>
100
+ <% unless doc_subpackage -%>
101
+ %doc %{gem_docdir}
102
+ <%= doc_files.to_rpm %>
103
+ <% end -%>
104
+ %exclude %{gem_cache}
105
+ %{gem_spec}
106
+
107
+ <% if doc_subpackage -%>
108
+ %files doc
109
+ %doc %{gem_docdir}
110
+ <%= doc_files.to_rpm %>
111
+ <% end # if doc_subpackage -%>
112
+
113
+ %changelog
114
+ * <%= Time.now.strftime("%a %b %d %Y") %> <%= packager %> - <%= spec.version %>-1
115
+ - Initial package
metadata CHANGED
@@ -1,37 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem2rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lutterkort
8
8
  - Vit Ondruch
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
- cert_chain:
12
- - |
13
- -----BEGIN CERTIFICATE-----
14
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRIwEAYDVQQDDAl2Lm9u
15
- ZHJ1Y2gxFzAVBgoJkiaJk/IsZAEZFgd0aXNjYWxpMRIwEAYKCZImiZPyLGQBGRYC
16
- Y3owHhcNMTQxMjA0MTMyNDA3WhcNMTUxMjA0MTMyNDA3WjBBMRIwEAYDVQQDDAl2
17
- Lm9uZHJ1Y2gxFzAVBgoJkiaJk/IsZAEZFgd0aXNjYWxpMRIwEAYKCZImiZPyLGQB
18
- GRYCY3owggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdw3QyZX/I96ds
19
- cNDN12zTyvF0xX7DF59bDknSsm0cnor9hfK9okgZSaFqzkbVoxqjTp3eTZ6jfWi6
20
- /uU0mDASkuC2RjZLKYmVYlydVbicAAu4AQwCqVcDisx2v8CJZZ9CKjxIj5/mIDPh
21
- 54cXNKxagZUCl1b4oI+HdGtR5l1opxcm9UGM4ff1BJjTBlydvYnrROmGqAXuPHY5
22
- +l9CsFwPwxQPTfE4VVcDUVmMQ/IORgocSVhx1mHxTZlEBweP4GJ59phAeDl4Vt8h
23
- 2Zok26KN1rok3Jq+iSEw9DuJtoHqgNjGNPNtZOA9knAQOrnPidlibKdfDG53GBKW
24
- ZIbhk+pfAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
25
- BBSVtjoVmQK/PkQOwue1qIXjLS7rjjAfBgNVHREEGDAWgRR2Lm9uZHJ1Y2hAdGlz
26
- Y2FsaS5jejAfBgNVHRIEGDAWgRR2Lm9uZHJ1Y2hAdGlzY2FsaS5jejANBgkqhkiG
27
- 9w0BAQUFAAOCAQEAewzbZ+U7K0HZKyezyny8txhuLL21JCT4Vv6NbHbmdtn+UXma
28
- 0m24dKlBsYU6tzZA4J7By+ARGn6xTssv4LnL3a+Yl/S69oCyjmCaxmkRt+6LMaQo
29
- V3UO37rdJCCowWcP1k7rU+KsT/2V3mhBliTjYHH/RyEeqlJ9/3JazlCdYbLWobqO
30
- m3oVhvQvTkxDCHSsYga0FQt6a26k+fX65GAyjY/fJWmceetOyax4e+5xjZ9fKEik
31
- YpMJ590rUNfDhbfYuAY0l6VDmajngEKkdxCEP0v6KBQeOmH3/+oOxcSVnc3NAp2J
32
- eE+DjyUv9Cq0yBFpfdrGk1fHwX/dtWcFrsKNxw==
33
- -----END CERTIFICATE-----
34
- date: 2015-05-06 00:00:00.000000000 Z
11
+ cert_chain: []
12
+ date: 2021-06-04 00:00:00.000000000 Z
35
13
  dependencies: []
36
14
  description: |2
37
15
  Generate source rpms and rpm spec files from a Ruby Gem.
@@ -51,28 +29,37 @@ files:
51
29
  - bin/gem2rpm
52
30
  - lib/gem2rpm.rb
53
31
  - lib/gem2rpm/configuration.rb
54
- - lib/gem2rpm/dependency.rb
55
32
  - lib/gem2rpm/distro.rb
56
- - lib/gem2rpm/format.rb
33
+ - lib/gem2rpm/gem/dependency.rb
34
+ - lib/gem2rpm/gem/format.rb
35
+ - lib/gem2rpm/gem/package.rb
36
+ - lib/gem2rpm/gem/spec_fetcher.rb
37
+ - lib/gem2rpm/gem/specification.rb
57
38
  - lib/gem2rpm/helpers.rb
58
- - lib/gem2rpm/package.rb
59
- - lib/gem2rpm/spec_fetcher.rb
60
- - lib/gem2rpm/specification.rb
39
+ - lib/gem2rpm/rpm_dependency.rb
40
+ - lib/gem2rpm/rpm_dependency_list.rb
41
+ - lib/gem2rpm/rpm_file.rb
42
+ - lib/gem2rpm/rpm_file_list.rb
61
43
  - lib/gem2rpm/template.rb
62
44
  - lib/gem2rpm/template_helpers.rb
45
+ - lib/gem2rpm/test_suite.rb
63
46
  - templates/default.spec.erb
64
47
  - templates/fedora-17-18.spec.erb
65
48
  - templates/fedora-19-20.spec.erb
66
- - templates/fedora-21-rawhide-vagrant-plugin.spec.erb
67
- - templates/fedora-21-rawhide.spec.erb
49
+ - templates/fedora-21-25-vagrant-plugin.spec.erb
50
+ - templates/fedora-21-25.spec.erb
51
+ - templates/fedora-26-vagrant-plugin.spec.erb
52
+ - templates/fedora-26.spec.erb
53
+ - templates/fedora-27-rawhide-vagrant-plugin.spec.erb
54
+ - templates/fedora-27-rawhide.spec.erb
68
55
  - templates/fedora.spec.erb
69
56
  - templates/opensuse.spec.erb
70
57
  - templates/pld.spec.erb
71
58
  homepage: https://github.com/fedora-ruby/gem2rpm
72
59
  licenses:
73
- - GPLv2+
60
+ - GPL-2.0+
74
61
  metadata: {}
75
- post_install_message:
62
+ post_install_message:
76
63
  rdoc_options: []
77
64
  require_paths:
78
65
  - lib
@@ -87,9 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
74
  - !ruby/object:Gem::Version
88
75
  version: '0'
89
76
  requirements: []
90
- rubyforge_project:
91
- rubygems_version: 2.2.2
92
- signing_key:
77
+ rubygems_version: 3.2.3
78
+ signing_key:
93
79
  specification_version: 4
94
80
  summary: Generate rpm specfiles from gems
95
81
  test_files: []
checksums.yaml.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- #���N�@?Iv.���s��R�`���h"��\uϪwv��۾h "
2
- �B�"��'bt�������c~�A)]$���| N��&$&;��܀���D�����B����D�維WҌY�V��S <��0\)8�0�E�b�ٜ��U).��x��Ոb�w)�s��x4������e
3
- 7��2��&��4�_�K#[�5�r%�c�����4��i�7��*
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- i]�i��N��lڮ�l";LC�
2
- B�+�M��jw�X4����S�[�����_