1 | %define pkgname Mail-Sender |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.8.16 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/J/JE/JENDA/%{pkgname}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildArch: noarch |
---|
12 | |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | Packager: yasumichi |
---|
16 | |
---|
17 | Summary: Mail::Sender - module for sending mails with attachments through an SMTP server |
---|
18 | Summary(ja): Mail::Sender - SMTP サーバー経由で添付ファイル付メールを送信するためのモジュール |
---|
19 | |
---|
20 | # Dependency |
---|
21 | Requires: perl |
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
23 | |
---|
24 | BuildRequires: perl |
---|
25 | |
---|
26 | %description |
---|
27 | Mail::Sender provides an object oriented interface to sending mails. It |
---|
28 | doesn't need any outer program. It connects to a mail server directly from |
---|
29 | Perl, using Socket. |
---|
30 | |
---|
31 | %description -l ja |
---|
32 | Mail::Sender は、メール送信のためのオブジェクト指向インターフェースを提供し |
---|
33 | ます。他の外部プログラムは必要ありません。ソケットを使って Perl から直接、 |
---|
34 | メールサーバーへ接続します。 |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q -n Mail-Sender-0.8.16 |
---|
38 | |
---|
39 | %build |
---|
40 | perl Makefile.PL |
---|
41 | %{__make} << EOM |
---|
42 | n |
---|
43 | EOM |
---|
44 | |
---|
45 | |
---|
46 | %install |
---|
47 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
48 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
49 | |
---|
50 | # Remove the Win32 module in order to avoid requiring perl(Win32API::Registry) |
---|
51 | # This idea is from fedora. |
---|
52 | find $RPM_BUILD_ROOT -type f -name Win32.pm -exec rm -f {} ';' |
---|
53 | |
---|
54 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
55 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
56 | grep -v ^%{_mandir} | |
---|
57 | grep -v perllocal.pod | |
---|
58 | grep -v "\.packlist" > %{name}.files |
---|
59 | |
---|
60 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
61 | echo "ERROR: EMPTY FILE LIST" |
---|
62 | exit -1 |
---|
63 | fi |
---|
64 | |
---|
65 | # remove unnecessary files. |
---|
66 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
67 | %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Mail/Sender/.packlist |
---|
68 | |
---|
69 | %clean |
---|
70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
71 | |
---|
72 | |
---|
73 | %files -f %{name}.files |
---|
74 | %defattr(-,root,root) |
---|
75 | %doc Changes README |
---|
76 | |
---|
77 | %changelog |
---|
78 | * Wed Jan 25 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.8.16-1 |
---|
79 | - initial build for Vine Linux |
---|