3 %bcond_with tests # build without tests
5 %define pkgname childprocess
6 Summary: A simple and reliable gem for controlling external programs
11 Group: Development/Languages
12 Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem
13 # Source0-md5: 195ada0b8ac5264be9b3df3416f3462a
14 URL: http://github.com/jarib/childprocess
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.665
18 BuildRequires: ruby-rake < 0.10
19 BuildRequires: ruby-rake >= 0.9.2
20 BuildRequires: ruby-rspec >= 2.0.0
21 BuildRequires: ruby-yard
23 Requires: ruby-ffi < 2
24 Requires: ruby-ffi >= 1.0.11
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This gem aims at being a simple and reliable solution for controlling
30 external programs running in the background on any Ruby / OS
34 Summary: Documentation for %{name}
36 Requires: %{name} = %{version}-%{release}
39 Documentation for %{name}.
42 %setup -q -n %{pkgname}-%{version}
44 rm lib/childprocess/windows.rb
45 rm -r lib/childprocess/windows
46 rm lib/childprocess/unix/platform/*-solaris.rb
47 rm lib/childprocess/unix/platform/*-macosx.rb
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
59 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
60 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc README.md LICENSE
68 %{ruby_vendorlibdir}/%{pkgname}.rb
69 %{ruby_vendorlibdir}/%{pkgname}
70 %{ruby_specdir}/%{pkgname}-%{version}.gemspec