forked from Katello/runcible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubygem-runcible.spec
129 lines (105 loc) · 3.85 KB
/
rubygem-runcible.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# vim: sw=4:ts=4:et
#
# Copyright 2011 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
%global gem_name runcible
%if 0%{?rhel} == 6 || 0%{?fedora} < 17
%define rubyabi 1.8
%else
%define rubyabi 1.9.1
%endif
%if 0%{?rhel} == 6
%global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
%endif
%if 0%{?fedora}
BuildRequires: rubygems-devel
%endif
Name: rubygem-%{gem_name}
Summary: A gem exposing Pulp's juiciest parts
Group: Applications/System
License: MIT
Version: 0.0.9
Release: 1%{?dist}
URL: https://github.com/Katello/runcible
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{gem_name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
Requires: rubygem(json)
Requires: rubygem(rest-client) >= 1.6.1
Requires: rubygem(oauth)
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
A gem to expose Pulp's juiciest parts.
%prep
%setup -q
%build
gem build %{gem_name}.gemspec
%install
mkdir -p %{buildroot}%{gem_dir}
gem install \
--local \
--install-dir %{buildroot}%{gem_dir} \
--force \
%{gem_name}-%{version}.gem
rm -rf %{buildroot}%{gem_instdir}/.yardoc
%files
%{gem_instdir}/
%{gem_instdir}/lib
%exclude %{gem_cache}
%{gem_spec}
%doc LICENSE
%package doc
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Summary: Documentation for rubygem-%{gem_name}
%description doc
This package contains documentation for rubygem-%{gem_name}
%files doc
%doc %{gem_docdir}
%changelog
* Fri Sep 14 2012 Eric D. Helms <[email protected]> 0.0.9-1
- Updates verison. ([email protected])
- Minor updates to spec file. ([email protected])
- Automatic commit of package [rubygem-runcible] release [0.0.7-1].
* Fri Sep 14 2012 Eric D. Helms <[email protected]>
- Automatic commit of package [rubygem-runcible] release [0.0.8-1].
* Fri Sep 14 2012 Eric D. Helms <[email protected]> 0.0.8-1
- Minor updates to spec file. ([email protected])
- Automatic commit of package [rubygem-runcible] release [0.0.7-1].
* Fri Sep 14 2012 Eric D. Helms <[email protected]>
- Minor updates to spec file. ([email protected])
- Automatic commit of package [rubygem-runcible] release [0.0.7-1].
* Fri Sep 14 2012 Eric D. Helms <[email protected]>
- Minor updates to spec file. ([email protected])
- Automatic commit of package [rubygem-runcible] release [0.0.7-1].
* Fri Sep 14 2012 Eric D. Helms <[email protected]> 0.0.7-1
- Updates to spec file. ([email protected])
- Moves install directive into prep section. ([email protected])
- Flipping order of prep steps. ([email protected])
- Fixing typo in source declaration in spec file. ([email protected])
- Updates to spec file variables. ([email protected])
- Adds documentation subpackage and cleans up spec file to handle tar.gz
source. ([email protected])
* Fri Sep 14 2012 Eric D. Helms <[email protected]> 0.0.6-1
- new package built with tito