3 %bcond_with tests # build without tests
5 %define pkgname addressable
6 Summary: Improved URI/URL Implementation
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 6b9a61885c3c95f912eec560f8f2e3eb
14 Patch0: data-location.patch
15 URL: http://addressable.rubyforge.org/
16 BuildRequires: rpm-rubyprov
17 BuildRequires: rpmbuild(macros) >= 1.656
19 BuildRequires: ruby-launchy >= 0.3.2
20 BuildRequires: ruby-rake >= 0.7.3
21 BuildRequires: ruby-rspec >= 2.9.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Addressable is a replacement for the URI implementation that is part
28 of Ruby's standard library. It more closely conforms to the relevant
29 RFCs and adds support for IRIs and URI templates.
32 %setup -q -n %{pkgname}-%{version}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
45 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
46 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
47 cp -a data/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}/%{pkgname}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc README.md CHANGELOG.md LICENSE.txt
55 %{ruby_vendorlibdir}/%{pkgname}
56 %{ruby_specdir}/%{pkgname}-%{version}.gemspec