annotate rubygem-rmail.spec @ 1:27b75293a94b default tip

Add .hgignore file
author Guido Berhoerster <guido+packaging@berhoerster.name>
date Sat, 27 Jul 2013 13:48:27 +0200
parents 6a2bbb1f9321
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
1 %global gemname rmail
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
2
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
3 %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
4 %global geminstdir %{gemdir}/gems/%{gemname}-%{version}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
5 %global gemdocdir %{gemdir}/doc/%{gemname}-%{version}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
6 %global rubyabi 1.8
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
7
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
8 Name: rubygem-%{gemname}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
9 Version: 1.0.0
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
10 Release: 1%{?dist}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
11 Summary: Lightweight Ruby Mail Library
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
12
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
13 Group: Development/Languages
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
14 License: BSD
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
15 URL: http://rubygems.org/gems/rmail
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
16 Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
18 BuildArch: noarch
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
19
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
20 BuildRequires: ruby(abi) = 1.8
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
21 BuildRequires: ruby
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
22 BuildRequires: ruby(rubygems)
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
23 Requires: ruby(abi) = 1.8
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
24 Requires: ruby
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
25 Requires: ruby(rubygems)
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
26 Provides: rubygem(%{gemname}) = %{version}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
27
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
28 %description
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
29 RMail is a lightweight mail library containing various utility classes and
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
30 modules that allow ruby scripts to parse, modify, and generate MIME mail
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
31 messages.
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
32
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
33 %package doc
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
34 Summary: Documentation for %{name}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
35 Group: Documentation
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
36 Requires: %{name} = %{version}-%{release}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
37 BuildArch: noarch
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
38
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
39 %description doc
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
40 Documentation for %{name}.
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
41
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
42 %prep
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
43 %setup -q -c -T
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
44
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
45 %build
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
46
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
47 %install
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
48 rm -rf %{buildroot}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
49 mkdir -p %{buildroot}%{gemdir}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
50 gem install --local --install-dir %{buildroot}%{gemdir} \
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
51 --force %{SOURCE0}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
52 for f in %{buildroot}%{geminstdir}/test/*.rb; do
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
53 sed -i 's|^#!/usr/bin/env ruby|#!/usr/bin/ruby|' "$f"
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
54 chmod 755 "$f"
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
55 done
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
56 sed -i '/^#!\/usr\/bin\/env /d' %{buildroot}%{geminstdir}/lib/rmail.rb \
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
57 %{buildroot}%{geminstdir}/lib/rmail/mailbox.rb
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
58
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
59 %clean
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
60 rm -rf %{buildroot}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
61
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
62 %files
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
63 %defattr(-, root, root, -)
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
64 %dir %{geminstdir}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
65 %doc %{geminstdir}/README
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
66 %{geminstdir}/Rakefile
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
67 %{geminstdir}/install.rb
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
68 %{geminstdir}/version
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
69 %{geminstdir}/lib
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
70 %{geminstdir}/test
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
71 %{gemdir}/cache/%{gemname}-%{version}.gem
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
72 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
73
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
74 %files doc
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
75 %defattr(-,root,root,-)
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
76 %doc %{gemdocdir}
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
77 %doc %{geminstdir}/NEWS
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
78 %doc %{geminstdir}/NOTES
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
79 %doc %{geminstdir}/THANKS
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
80 %doc %{geminstdir}/TODO
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
81 %dir %{geminstdir}/guide
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
82 %doc %{geminstdir}/guide/Intro.txt
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
83 %doc %{geminstdir}/guide/MIME.txt
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
84 %doc %{geminstdir}/guide/TableOfContents.txt
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
85
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
86 %changelog
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
87 * Wed Jan 09 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.0.0-1
6a2bbb1f9321 Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff changeset
88 - Initial packaging