summaryrefslogtreecommitdiffstats
path: root/rubygem-pry.spec
blob: 0ad6b40674525b7ee07448c17be7733e45d75447 (plain)
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
# Generated from pry-0.9.10.gem by gem2rpm -*- rpm-spec -*-
%global gem_name pry

Summary: An IRB alternative and runtime developer console
Name: rubygem-%{gem_name}
Version: 0.9.12
Release: 2%{?dist}
Group: Development/Languages
License: MIT
URL: http://pry.github.com
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(coderay) => 1.0.5
Requires: rubygem(coderay) < 1.1
Requires: rubygem(slop) => 3.4
Requires: rubygem(slop) < 4.0
Requires: rubygem(method_source) => 0.8
Requires: rubygem(method_source) < 1
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(bacon)
BuildRequires: rubygem(coderay) => 1.0.5
BuildRequires: rubygem(coderay) < 1.1
BuildRequires: rubygem(mocha)
BuildRequires: rubygem(slop) => 3.4
BuildRequires: rubygem(slop) < 4.0
BuildRequires: rubygem(method_source) => 0.8
BuildRequires: rubygem(method_source) < 1
BuildRequires: rubygem(open4)
# editor specs fail if no editor is available (soft requirement)
BuildRequires: vi
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}

%description
An IRB alternative and runtime developer console


%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}

%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}

%build

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/


mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_mandir}/man1
cp -a %{buildroot}%{gem_instdir}/man/%{gem_name}.1 \
       %{buildroot}%{_mandir}/man1/

find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x

%check
pushd .%{gem_instdir}
bacon -Ispec -q spec/*_spec.rb
popd

%files
%dir %{gem_instdir}
%doc %{gem_instdir}/LICENSE
%doc %{_mandir}/man1/%{gem_name}.1.gz
%{_bindir}/pry
%{gem_instdir}/bin
%{gem_libdir}
%exclude %{gem_instdir}/.*
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG
%doc %{gem_instdir}/CONTRIBUTORS
%{gem_instdir}/Gemfile
%{gem_instdir}/Guardfile
%{gem_instdir}/man
%doc %{gem_instdir}/README.markdown
%{gem_instdir}/%{gem_name}.gemspec
%{gem_instdir}/Rakefile
%{gem_instdir}/spec
%doc %{gem_instdir}/TODO
%doc %{gem_instdir}/wiki

%changelog
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Mar 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.12-1
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
- Updated to Pry 0.9.12.

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Tue Jul 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.10-1
- Initial package