-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruby-simplecov.spec
More file actions
104 lines (84 loc) · 2.77 KB
/
ruby-simplecov.spec
File metadata and controls
104 lines (84 loc) · 2.77 KB
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
#
# Conditional build:
%bcond_without doc # ri/rdoc documentation
%define pkgname simplecov
Summary: Code coverage for Ruby 1.9+
Summary(pl.UTF-8): Pokrycie kodu dla języka Ruby 1.9+
Name: ruby-%{pkgname}
Version: 0.22.0
Release: 2
License: MIT
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: 78469a20f4cacca73db3e6b8e6dd496d
Group: Development/Languages
URL: https://rubygems.org/gems/simplecov
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
BuildRequires: ruby >= 1:1.8.7
BuildRequires: ruby-rdoc
Requires: ruby >= 1:1.8.7
Requires: ruby-docile >= 1.1.0
Requires: ruby-simplecov-html >= 0.11
Requires: ruby-simplecov_json_formatter >= 0.1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Code coverage for Ruby 1.9+ with a powerful configuration library
and automatic merging of coverage across test suites.
%description -l pl.UTF-8
Pokrycie kodu dla języka Ruby 1.9+ z potężną biblioteką konfiguracyjną
oraz automatycznym łączeniem pokrycia z różnych zbiorów testów.
%package rdoc
Summary: HTML documentation for Ruby %{pkgname} module
Summary(pl.UTF-8): Dokumentacja w formacie HTML dla moduły języka Ruby %{pkgname}
Group: Documentation
Requires: ruby >= 1:1.8.7-4
%description rdoc
HTML documentation for Ruby %{pkgname} module.
%description rdoc -l pl.UTF-8
Dokumentacja w formacie HTML dla moduły języka Ruby %{pkgname}.
%package ri
Summary: ri documentation for Ruby %{pkgname} module
Summary(pl.UTF-8): Dokumentacja w formacie ri dla modułu języka Ruby %{pkgname}
Group: Documentation
Requires: ruby
%description ri
ri documentation for Ruby %{pkgname} module.
%description ri -l pl.UTF-8
Dokumentacja w formacie ri dla modułu języka Ruby %{pkgname}.
%prep
%setup -q -n %{pkgname}-%{version}
%build
# write .gemspec
%__gem_helper spec
rdoc --ri --op ri lib
rdoc --op rdoc lib
%{__rm} ri/cache.ri
%{__rm} ri/created.rid
%{__rm} -r ri/{Process,Minitest}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
cp -a rdoc/* $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
# install gemspec
install -d $RPM_BUILD_ROOT%{ruby_specdir}
cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGELOG.md LICENSE README.md
%{ruby_vendorlibdir}/%{pkgname}.rb
%{ruby_vendorlibdir}/%{pkgname}
%{ruby_vendorlibdir}/minitest/simplecov_plugin.rb
%{ruby_specdir}/%{pkgname}-%{version}.gemspec
%if %{with doc}
%files rdoc
%defattr(644,root,root,755)
%{ruby_rdocdir}/%{name}-%{version}
%files ri
%defattr(644,root,root,755)
%{ruby_ridir}/SimpleCov
%endif