]>
Commit | Line | Data |
---|---|---|
b2ef0614 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir User | |
7 | %define pnam Identity | |
8 | Summary: Mail::Identity - an e-mail role | |
9 | #Summary(pl.UTF-8): | |
10 | Name: perl-User-Identity | |
5fdb95d7 | 11 | Version: 0.93 |
12 | Release: 1 | |
b2ef0614 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/%{pdir}-%{pnam}-%{version}.tar.gz | |
5fdb95d7 | 17 | # Source0-md5: c6efb646ea66ef7c479b0eed2a24480d |
b2ef0614 | 18 | URL: http://search.cpan.org/dist/User-Identity/ |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Test-Pod >= 1 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | The Mail::Identity object contains the description of role played by a | |
29 | human when sending e-mail. Most people have more than one role these | |
30 | days: for instance, a private and a company role with different e-mail | |
31 | addresses. | |
32 | ||
33 | An Mail::Identity object combines an e-mail address, user description | |
34 | ("phrase"), a signature, pgp-key, and so on. All fields are optional, | |
35 | and some fields are smart. One such set of data represents one role. | |
36 | Mail::Identity is therefore the smart cousine of the Mail::Address | |
37 | object. | |
38 | ||
39 | # %description -l pl.UTF-8 # TODO | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} pure_install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes README | |
8af4323f | 63 | %dir %{perl_vendorlib}/User |
b2ef0614 | 64 | %{perl_vendorlib}/User/*.pm |
65 | %{perl_vendorlib}/User/Identity | |
66 | %{perl_vendorlib}/Mail/Identity.pm | |
67 | %{_mandir}/man3/* |