source: projects/specs/trunk/p/perl-Email-Valid-Loose/perl-Email-Valid-Loose-vl.spec @ 8725

Revision 8725, 2.9 KB checked in by iwaim, 10 years ago (diff)

perl-Email-Valid-Loose 0.05-4

Line 
1Summary: Email::Valid which allows dot before at mark for Perl
2Name: perl-Email-Valid-Loose
3Version: 0.05
4Release: 4%{?_dist_release}
5License: Artistic and GPL
6Group: Development/Libraries
7Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Email-Valid-Loose-%{version}.tar.gz
8# based http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/*checkout*/perldocjp/docs/modules/Email-Valid-Loose-0.04/Email/Valid/Loose.pod?rev=1.2
9Source1: Email-Valid-Loose-0.04.pod.ja
10URL: http://search.cpan.org/author/MIYAGAWA/Email-Valid-Loose/
11BuildRoot: %{_tmppath}/%{name}-%{version}-root
12BuildRequires: perl >= 5.4
13BuildRequires: perl(Test::More) >= 0.32
14BuildRequires: perl(Email::Valid) >= 0.17
15Requires: perl >= 5.4
16Requires: perl(Email::Valid)
17BuildArch: noarch
18
19Vendor: Project Vine
20Distribution: Vine Linux
21
22%description
23Email::Valid which allows dot before at mark for Perl.
24Email::Valid::Loose is a subclass of Email::Valid, which allows . (dot)
25before @ (at-mark). It is invalid in RFC822, but is commonly used in
26some of mobile phone addresses in Japan (like docomo.ne.jp or
27jp-t.ne.jp).
28
29%prep
30%setup -q -n Email-Valid-Loose-%{version}
31
32%build
33CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
34make
35cp %{SOURCE1} Loose.ja.pm
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%install
41rm -rf $RPM_BUILD_ROOT
42mkdir -p $RPM_BUILD_ROOT%{_prefix}
43make DESTDIR=$RPM_BUILD_ROOT install
44
45find $RPM_BUILD_ROOT%{_prefix} -type f -print |
46        sed "s@^$RPM_BUILD_ROOT@@g" |
47        grep -v ^%{_mandir} |
48        grep -v perllocal.pod |
49        grep -v "\.packlist" > %{name}.files
50if [ "$(cat %{name}.files)X" = "X" ] ; then
51    echo "ERROR: EMPTY FILE LIST"
52    exit -1
53fi
54
55mkdir -p %{buildroot}%{_mandir}/ja/man3
56pod2man --section=3 Loose.ja.pm %{buildroot}%{_mandir}/ja/man3/Email::Valid::Loose.3pm
57
58%check
59make test
60
61%files -f %{name}.files
62%defattr(-,root,root)
63%doc README Changes
64%{_mandir}/man3/*
65%{_mandir}/ja/man3/*
66%dir %{perl_vendorlib}/Email/Valid
67
68%changelog
69* Tue Jul  1 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.05-4
70- build with Perl 5.16
71- update BuildRequires and Requires
72
73* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 0.05-3vl6
74- build with perl 5.12.3
75- add Vendor and Distribution tags
76
77* Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-2
78- fixed Group tag
79
80* Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-1
81- new upstream release
82- built with perl-5.10.0
83- installed files to vendor_perl dir
84- applied new versioning policy
85- changed Group to Development/Libraries
86
87* Sat Dec  4 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl2
88- build on perl-5.8.6-0vl1
89- add manpage translated into Japanese ( Source1 ) from perldoc.jp
90
91* Mon Aug 16 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl1
92- new upstream release
93
94* Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 0.02-0vl2
95- build with perl-5.8.0
96- add %%doc README Changes in %%files section
97- add test in %%build section
98- add perl-Email-Valid in BuildRequires
99
100* Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 0.02-0vl1
101- first build for Vine Linux
Note: See TracBrowser for help on using the repository browser.