-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubygem-mixlib-shellout.spec
66 lines (52 loc) · 1.94 KB
/
rubygem-mixlib-shellout.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
# Generated from mixlib-shellout-1.1.0.gem by gem2rpm -*- rpm-spec -*-
%define rbname mixlib-shellout
Summary: Run external commands on Unix or Windows
Name: rubygem-%{rbname}
Version: 1.1.0
Release: 5
Group: Development/Ruby
License: Distributable
URL: http://wiki.opscode.com/
Source0: http://rubygems.org/gems/%{rbname}-%{version}.gem
Source1: %{rbname}-%{version}.gemspec
# Make sure the spec template is included in the SRPM
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: ruby
Requires: rubygems
BuildRequires: ruby
BuildRequires: rubygems
BuildArch: noarch
Provides: rubygem(mixlib-shellout) = %{version}
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gembuilddir %{buildroot}%{gemdir}
%description
Run external commands on Unix or Windows
%prep
%setup -T -c
%build
%install
%{__rm} -rf %{buildroot}
mkdir -p %{gembuilddir}
gem install --local --install-dir %{gembuilddir} --force %{SOURCE0}
%{__rm} -rf %{gembuilddir}/cache
rm -f %{buildroot}%{gemdir}/specifications/%{rbname}-%{version}.gemspec
cp %{SOURCE1} %{buildroot}%{gemdir}/specifications/%{rbname}-%{version}.gemspec
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%doc %{gemdir}/gems/mixlib-shellout-1.1.0/LICENSE
%doc %{gemdir}/gems/mixlib-shellout-1.1.0/README.md
%{gemdir}/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb
%{gemdir}/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/windows/core_ext.rb
%{gemdir}/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/exceptions.rb
%{gemdir}/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/version.rb
%{gemdir}/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/unix.rb
%{gemdir}/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/windows.rb
%doc %{gemdir}/doc/mixlib-shellout-1.1.0
%{gemdir}/specifications/%{rbname}-%{version}.gemspec
%changelog
* Tue Jan 08 2013 Sean P. Kane <spkane00@gmail.com> - 1.1.0-4
- Include compatible gemspec
* Tue Sep 11 2012 Sergio Rubio <rubiojr@frameos.org> - 1.1.0-1
- initial release