]> git.pld-linux.org Git - packages/gem2rpm.git/blame - pld.spec.erb
use '>=' not '=>' in specs
[packages/gem2rpm.git] / pld.spec.erb
CommitLineData
aed41730
ER
1%define pkgname <%= spec.name %>
2Summary: <%= spec.summary %>
3Name: ruby-%{pkgname}
4Version: <%= spec.version %>
5Release: 0.1
6License: Distributable
7Group: Development/Languages
8Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
9# Source0-md5: -
10URL: <%= spec.homepage %>
11BuildRequires: rpm-rubyprov
12BuildRequires: rpmbuild(macros) >= 1.656
b978c369
ER
13<% if ! spec.executables.empty? -%>
14BuildRequires: sed >= 4.0
15<% end -%>
7d625e4e
ER
16<% for d in spec.dependencies -%>
17<% for req in d.requirement -%>
aed41730 18Requires: ruby-<%= d.name %> <%= req %>
7d625e4e
ER
19<% end -%>
20<% end -%>
aed41730
ER
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7d625e4e
ER
23
24%description
25<%= spec.description %>
26
27%prep
aed41730 28%setup -q -n %{pkgname}-%{version}
b978c369
ER
29<% if ! spec.executables.empty? -%>
30%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
31<% end -%>
7d625e4e
ER
32
33%install
aed41730
ER
34rm -rf $RPM_BUILD_ROOT
35install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
36cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
7d625e4e 37<% if ! spec.executables.empty? -%>
aed41730 38cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
7d625e4e
ER
39<% end -%>
40
41%clean
aed41730 42rm -rf $RPM_BUILD_ROOT
7d625e4e
ER
43
44%files
aed41730 45%defattr(644,root,root,755)
7d625e4e 46<% for f in spec.executables -%>
aed41730 47%attr(755,root,root) %{_bindir}/<%= f %>
7d625e4e 48<% end -%>
aed41730
ER
49%{ruby_vendorlibdir}/%{pkgname}.rb
50%{ruby_vendorlibdir}/%{pkgname}
This page took 0.05658 seconds and 4 git commands to generate.