]> git.pld-linux.org Git - packages/perl-Email-Valid-Loose.git/blob - perl-Email-Valid-Loose.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Email-Valid-Loose.git] / perl-Email-Valid-Loose.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Email
6 %define         pnam    Valid-Loose
7 Summary:        Email::Valid::Loose - Email::Valid which allows dot before @ mark
8 Summary(pl.UTF-8):      Email::Valid::Loose - Email::Valid zezwalający na kropkę przed znakiem @
9 Name:           perl-Email-Valid-Loose
10 Version:        0.05
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  06fec4697ef1c29c8e480e692175639a
17 URL:            http://search.cpan.org/dist/Email-Valid-Loose/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Email-Valid >= 0.17
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Email::Valid::Loose is a subclass of Email::Valid, which allows .
28 (dot) before @ (at-mark). It is invalid in RFC822, but is commonly
29 used in some of mobile phone addresses in Japan (like docomo.ne.jp or
30 jp-t.ne.jp).
31
32 %description -l pl.UTF-8
33 Email::Valid::Loose to podklasa Email::Valid zezwalająca na . (kropkę)
34 przed @ (znakiem "at"). Jest to niepoprawne wg RFC822, ale powszechnie
35 używane w niektórych adresach telefonów komórkowych w Japonii (na
36 przykład docomo.ne.jp lub jp-t.ne.jp).
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes
60 %dir %{perl_vendorlib}/Email/Valid
61 %{perl_vendorlib}/Email/Valid/*.pm
62 %{_mandir}/man3/*
This page took 0.073219 seconds and 4 git commands to generate.