source: trunk/server/fedora/specs/rubygem-pony.spec @ 2591

Last change on this file since 2591 was 2591, checked in by achernya, 8 years ago
Reintegrate fc20-dev into trunk
File size: 1.8 KB
Line 
1# Generated from pony-1.8.gem by gem2rpm -*- rpm-spec -*-
2%global gem_name pony
3
4Name: rubygem-%{gem_name}
5Version: 1.8
6Release: 2%{?dist}.scripts.%{scriptsversion}
7Summary: Send email in one command: Pony.mail(:to => 'someone@example.com', :body => 'hello')
8Group: Development/Languages
9License: MIT
10URL: http://github.com/benprew/pony
11Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
12Requires: ruby(release)
13Requires: ruby(rubygems)
14Requires: rubygem(mail) >= 2.0
15BuildRequires: ruby(release)
16BuildRequires: rubygems-devel
17BuildRequires: ruby
18BuildArch: noarch
19Provides: rubygem(%{gem_name}) = %{version}
20
21%description
22Send email in one command: Pony.mail(:to => 'someone@example.com', :body =>
23'hello')
24
25
26%package doc
27Summary: Documentation for %{name}
28Group: Documentation
29Requires: %{name} = %{version}-%{release}
30BuildArch: noarch
31
32%description doc
33Documentation for %{name}
34
35%prep
36gem unpack %{SOURCE0}
37
38%setup -q -D -T -n  %{gem_name}-%{version}
39
40gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
41
42%build
43mkdir -p .%{gem_dir}
44
45# Create the gem as gem install only works on a gem file
46gem build %{gem_name}.gemspec
47
48
49# gem install installs into a directory.  We set that to be a local
50# directory so that we can move it into the buildroot in %%install
51gem install --local --install-dir ./%{gem_dir} \
52            --force --rdoc %{gem_name}-%{version}.gem
53
54%install
55mkdir -p %{buildroot}%{gem_dir}
56cp -pa .%{gem_dir}/* \
57        %{buildroot}%{gem_dir}/
58rm -f %{buildroot}%{gem_instdir}/{Rakefile,pony.gemspec}
59rm -rf %{buildroot}%{gem_instdir}/spec
60
61
62%files
63%dir %{gem_instdir}
64%{gem_libdir}
65%exclude %{gem_cache}
66%{gem_spec}
67
68%files doc
69%doc %{gem_docdir}
70%doc %{gem_instdir}/README.rdoc
71
72%changelog
73* Mon May 26 2014 Alexander Chernyakhovsky <achernya@mit.edu> - 1.8-2
74- Update for Fedora 20
75
76* Sun Mar 09 2014 Benjamin Tidor <btidor@mit.edu> - 1.8-1
77- Initial package
Note: See TracBrowser for help on using the repository browser.