]> git.pld-linux.org Git - packages/ruby-pony.git/blob - ruby-pony.spec
1cb4cce3572155820047022b36cfa8231aece435
[packages/ruby-pony.git] / ruby-pony.spec
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}
8 Version:        1.5.1
9 Release:        1
10 License:        MIT
11 Group:          Development/Languages
12 Source0:        http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5:  8a3627564e2254c0bcae29eb536ad778
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
20 Requires:       ruby-mail >= 2.0
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
This page took 0.069864 seconds and 2 git commands to generate.