File: chake.spec.erb

package info (click to toggle)
chake 0.81.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 352 kB
  • sloc: ruby: 1,089; sh: 84; makefile: 5; sed: 3
file content (41 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
%define gem_name <%= pkg.name %>

Summary: <%= pkg.summary %>
Name: <%= pkg.name %>
Version: <%= pkg.version %>
Release: 1
Source0: %{name}-%{version}.tar.gz
License: <%= pkg.license %>
Group: Development/Tools
Prefix: %{_prefix}
Vendor: <%= pkg.authors.first %> <<%= pkg.email.first %>>
Url: <%= pkg.homepage %>
BuildArch: noarch
BuildRequires: ruby, rubygems-devel, rubygem-rake, rubygem-bundler
Requires: ruby, rubygem-rake

%description
<%= pkg.description %>

%prep
%setup -n %{name}-%{version}

%build

%{__rm} -rf %{buildroot}
sed -i -e 's#spec.files\s*=.*#spec.files = Dir.glob("**/*")#' %{name}.gemspec
rake bundler:build
%gem_install -n pkg/%{name}-%{version}.gem

%install
cp -a usr %{buildroot}/usr

%clean
rm -rf $RPM_BUILD_ROOT

%files
%{gem_instdir}/
%exclude %{gem_cache}
%{gem_spec}
%{_bindir}/chake
%doc %{gem_docdir}