]>
Commit | Line | Data |
---|---|---|
432cfd9d | 1 | %define pkgname systemu |
19b70688 | 2 | Summary: Universal capture of stdout and stderr and handling of child process pid |
432cfd9d | 3 | Name: ruby-%{pkgname} |
19b70688 | 4 | Version: 2.5.2 |
20d3474a | 5 | Release: 3 |
19b70688 ER |
6 | License: BSD or Ruby |
7 | Group: Development/Libraries | |
8 | URL: https://github.com/ahoward/systemu | |
432cfd9d | 9 | Source0: http://production.cf.rubygems.org/gems/%{pkgname}-%{version}.gem |
19b70688 ER |
10 | # Source0-md5: 7ac461f71ebf29b68f286fe34730c2f2 |
11 | BuildRequires: rpm-rubyprov | |
12 | BuildRequires: rpmbuild(macros) >= 1.656 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Universal capture of stdout and stderr and handling of child process | |
18 | pid. | |
19 | ||
20 | %prep | |
21 | %setup -q | |
22 | ||
432cfd9d ER |
23 | %build |
24 | # write .gemspec | |
25 | %__gem_helper spec | |
26 | ||
19b70688 ER |
27 | %install |
28 | rm -rf $RPM_BUILD_ROOT | |
432cfd9d | 29 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}} |
19b70688 | 30 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} |
432cfd9d | 31 | cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir} |
19b70688 ER |
32 | |
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %files | |
37 | %defattr(644,root,root,755) | |
38 | %doc README.erb | |
39 | %{ruby_vendorlibdir}/systemu.rb | |
432cfd9d | 40 | %{ruby_specdir}/%{pkgname}-%{version}.gemspec |