]>
Commit | Line | Data |
---|---|---|
c02aefaf ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build without tests | |
4 | ||
5 | %define pkgname pony | |
6 | Summary: The express way to send mail from Ruby | |
7 | Name: ruby-%{pkgname} | |
4b77e7ba | 8 | Version: 1.5.1 |
d28ad661 | 9 | Release: 2 |
c02aefaf ER |
10 | License: MIT |
11 | Group: Development/Languages | |
12 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem | |
4b77e7ba | 13 | # Source0-md5: 8a3627564e2254c0bcae29eb536ad778 |
c02aefaf ER |
14 | URL: http://github.com/benprew/pony |
15 | BuildRequires: rpm-rubyprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.656 | |
17 | %if %{with tests} | |
18 | BuildRequires: ruby-rspec >= 2.0.0 | |
19 | %endif | |
4b77e7ba | 20 | Requires: ruby-mail >= 2.0 |
c02aefaf ER |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Send email in one command. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{pkgname}-%{version} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
33 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
40 | %doc README.rdoc | |
41 | %{ruby_vendorlibdir}/%{pkgname}.rb |