3 %bcond_with tests # build without tests
6 Summary: Ruby FTW - For The Web. Experimentation in web clients and servers
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 1ad00afe5009fdb887c70e3a107891e2
14 URL: http://github.com/jordansissel/ruby-ftw
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.665
18 BuildRequires: ruby-minitest
20 Requires: ruby-addressable
21 Requires: ruby-backports >= 2.6.2
23 Requires: ruby-http_parser.rb = 0.5.3
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 For The Web. Trying to build a solid and sane API for client and
29 server web stuff. Client and Server operations for HTTP, WebSockets,
33 %setup -q -n %{pkgname}-%{version}
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
41 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
42 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %{ruby_vendorlibdir}/%{pkgname}.rb
50 %{ruby_vendorlibdir}/%{pkgname}
51 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
53 # ruby-rack subpackage?
54 %dir %{ruby_vendorlibdir}/rack
55 %dir %{ruby_vendorlibdir}/rack/handler
56 %{ruby_vendorlibdir}/rack/handler/ftw.rb