]>
Commit | Line | Data |
---|---|---|
2393d8ac ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build without tests | |
4 | ||
5 | %define pkgname rb-fsevent | |
6 | Summary: Very simple & usable FSEvents API | |
7 | Name: ruby-%{pkgname} | |
8 | Version: 0.9.4 | |
9 | Release: 1 | |
10 | License: MIT | |
11 | Group: Development/Languages | |
12 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem | |
13 | # Source0-md5: 47456c473a7e3e347c0d20ebda7bbad4 | |
14 | URL: http://rubygems.org/gems/rb-fsevent | |
15 | BuildRequires: rpm-rubyprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.656 | |
17 | %if %{with tests} | |
18 | BuildRequires: ruby-bundler < 2 | |
19 | BuildRequires: ruby-bundler >= 1.0 | |
20 | BuildRequires: ruby-guard-rspec < 5 | |
21 | BuildRequires: ruby-guard-rspec >= 4.2 | |
22 | BuildRequires: ruby-rspec < 3 | |
23 | BuildRequires: ruby-rspec >= 2.11 | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | FSEvents API with Signals catching (without RubyCocoa) | |
30 | ||
8c811d51 ER |
31 | NOTE: This gem is MacOSX specific, you do not need it on Linux |
32 | ||
2393d8ac ER |
33 | %prep |
34 | %setup -q -n %{pkgname}-%{version} | |
35 | ||
36 | %build | |
37 | # write .gemspec | |
38 | %__gem_helper spec | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}} | |
43 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
44 | cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc README.md LICENSE.txt | |
52 | %{ruby_vendorlibdir}/rb-fsevent.rb | |
53 | %{ruby_vendorlibdir}/rb-fsevent | |
54 | %{ruby_specdir}/%{pkgname}-%{version}.gemspec |