]>
Commit | Line | Data |
---|---|---|
f5fef090 ER |
1 | %define pkgname cabin |
2 | Summary: Experiments in structured and contextual logging | |
3 | Name: ruby-%{pkgname} | |
4 | Version: 0.6.0 | |
a753fd92 | 5 | Release: 3 |
f5fef090 ER |
6 | License: Apache v2.0 |
7 | Group: Development/Languages | |
8 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem | |
9 | # Source0-md5: 99195e139b704147718c1728ae191da8 | |
10 | URL: https://github.com/jordansissel/ruby-cabin | |
11 | BuildRequires: rpm-rubyprov | |
12 | BuildRequires: rpmbuild(macros) >= 1.656 | |
13 | BuildRequires: sed >= 4.0 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | This is an experiment to try and make logging more flexible and more | |
19 | consumable. Plain text logs are bullshit, let's emit structured and | |
20 | contextual logs. Metrics, too! | |
21 | ||
22 | %prep | |
23 | %setup -q -n %{pkgname}-%{version} | |
24 | %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* | |
25 | ||
4ed350b4 ER |
26 | %build |
27 | %__gem_helper spec | |
28 | ||
f5fef090 ER |
29 | %install |
30 | rm -rf $RPM_BUILD_ROOT | |
4ed350b4 | 31 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}} |
f5fef090 ER |
32 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} |
33 | cp -a bin/* $RPM_BUILD_ROOT%{_bindir} | |
4ed350b4 | 34 | cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir} |
f5fef090 ER |
35 | |
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %attr(755,root,root) %{_bindir}/rubygems-cabin-test | |
42 | %{ruby_vendorlibdir}/%{pkgname}.rb | |
43 | %{ruby_vendorlibdir}/%{pkgname} | |
4ed350b4 | 44 | %{ruby_specdir}/%{pkgname}-%{version}.gemspec |