source: projects/specs/trunk/p/perl-MailTools/perl-MailTools-vl.spec @ 12120

Revision 12120, 3.1 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

Line 
1Summary: a set of perl modules related to mail applications
2Summary(ja): メールアプリケーション関連の Perl モジュールセット
3Name: perl-MailTools
4Version: 2.20
5Release: 1%{_dist_release}
6License: Artistic
7Group: Development/Libraries
8Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
9Source1: filter-requires-MailTools.sh
10Url: http://search.cpan.org/author/MARKOV/MailTools/
11BuildRoot: %{_tmppath}/%{name}-%{version}-root
12BuildRequires: perl >= 5.8.0
13BuildRequires: perl-TimeDate
14Requires: perl >= 5.8.0
15Requires: perl-TimeDate
16BuildArch: noarch
17
18%if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
19%define __find_requires %{SOURCE1}
20%else
21%define __perl_requires %{SOURCE1}
22%endif
23
24Vendor: Project Vine
25Distribution: Vine Linux
26
27%description
28This is MailTools, a set of perl modules related to mail applications.
29
30%description -l ja
31MailTools は、メールアプリケーション関連の Perl モジュールセットです。
32
33%prep
34%setup -q -n MailTools-%{version}
35
36%build
37CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
38make
39
40%check
41make test
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%install
47rm -rf $RPM_BUILD_ROOT
48mkdir -p $RPM_BUILD_ROOT%{_prefix}
49make DESTDIR=$RPM_BUILD_ROOT install
50
51find $RPM_BUILD_ROOT%{_prefix} -type f -print |
52        sed "s@^$RPM_BUILD_ROOT@@g" |
53        grep -v ^%{_mandir} |
54        grep -v perllocal.pod |
55        grep -v "\.packlist" > %{name}.files
56if [ "$(cat %{name}.files)X" = "X" ] ; then
57    echo "ERROR: EMPTY FILE LIST"
58    exit -1
59fi
60
61find %{buildroot}%{_prefix} -type f -name 'perllocal.pod' -delete
62find %{buildroot}%{_prefix} -type f -name '.packlist' -delete
63
64%files -f %{name}.files
65%defattr(-,root,root)
66%doc ChangeLog README README.demos examples
67%{_mandir}/man3/*
68%dir %{perl_vendorlib}/Mail
69%dir %{perl_vendorlib}/Mail/Field
70%dir %{perl_vendorlib}/Mail/Mailer
71
72%changelog
73* Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20-1
74- new upstream release.
75- rebuilt with perl-5.26.
76
77* Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.13-1
78- new upstream release.
79
80* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.07-1
81- new upstream release
82- add requires filter (Source1)
83- add Vendor and Distribution tags
84- drop defined perl_vendorlib macro
85
86* Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.04-2
87- spec in utf-8
88
89* Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.04-1
90- new upstream release.
91
92* Thu May  1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.03-1
93- new upstream release.
94- built with perl-5.10.0.
95
96* Sat Jul 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.77-0vl1
97- new upstream release
98- changed Group to Development/Libraries
99
100* Thu Sep 15 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.67-0vl1
101- new upstream release
102- s/Copyright/License/
103- use vendor_perl dir
104
105* Sat Dec  4 2004 IWAI, Masaharu <iwai@alib.jp> 1.65-0vl1
106- new upstream release
107- build on perl-5.8.6-0vl1
108- update {Build,}Requires
109- add Japanese Summary and description
110
111* Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 1.58-0vl1
112- version up to 1.58
113- build with perl-5.8.0
114
115* Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 1.48-0vl1
116- first build for Vine Linux
Note: See TracBrowser for help on using the repository browser.