2 # - bundles modified yajl-1.0.12
5 %bcond_with tests # build without tests
7 %define rbname yajl-ruby
8 Summary: Ruby C bindings to the excellent Yajl JSON stream-based parser library
13 Group: Development/Languages
14 Source0: http://rubygems.org/downloads/%{rbname}-%{version}.gem
15 # Source0-md5: 61d4348658120c1e633417cdc3404390
16 URL: http://rdoc.info/github/brianmario/yajl-ruby
17 BuildRequires: rpm-rubyprov
18 BuildRequires: rpmbuild(macros) >= 1.665
19 BuildRequires: ruby-devel
21 BuildRequires: ruby-activesupport
22 BuildRequires: ruby-json
23 BuildRequires: ruby-rake-compiler >= 0.7.5
24 BuildRequires: ruby-rspec >= 2.0.0
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 C binding to the excellent YAJL JSON parsing and generation library.
41 LDFLAGS="%{rpmldflags}" \
42 CFLAGS="%{rpmcflags} -fPIC"
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir}/yajl,%{ruby_specdir}}
47 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
48 install -p ext/yajl/yajl.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}/yajl/yajl.so
50 cp -p %{rbname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc CHANGELOG.md README.md MIT-LICENSE
58 %dir %{ruby_vendorarchdir}/yajl
59 %attr(755,root,root) %{ruby_vendorarchdir}/yajl/yajl.so
60 %{ruby_vendorlibdir}/yajl.rb
61 %{ruby_vendorlibdir}/yajl
62 %{ruby_specdir}/%{rbname}-%{version}.gemspec