3 %bcond_with tests # build without tests
5 %define pkgname safe_yaml
6 Summary: Parse YAML safely
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 9788eb941a0935853679ee186a3d481b
14 URL: http://dtao.github.com/safe_yaml/
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-hashie
19 BuildRequires: ruby-heredoc_unindent
20 BuildRequires: ruby-ostruct
21 BuildRequires: ruby-rspec
22 BuildRequires: ruby-yaml
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Parse YAML safely, without that pesky arbitrary object deserialization
32 %setup -q -n %{pkgname}-%{version}
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
42 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc README.md CHANGES.md LICENSE.txt
50 %{ruby_vendorlibdir}/safe_yaml.rb
51 %{ruby_vendorlibdir}/safe_yaml