source: projects/specs/trunk/p/perl-DateTime-Locale/perl-DateTime-Locale-vl.spec @ 5858

Revision 5858, 2.3 KB checked in by shaolin, 12 years ago (diff)
  • new packages
Line 
1Name:           perl-DateTime-Locale
2Version:        0.45
3Release:        1%{?_dist_release}
4Summary:        Localization support for DateTime.pm
5# package itself is 'same terms as Perl'
6# modules under DateTime/Locale/ are generated from data provided by the CLDR project
7# tools/t/test-data contains CLDR data files under MIT license
8License:        (GPL+ or Artistic) and MIT
9Group:          Development/Libraries
10URL:            http://search.cpan.org/dist/DateTime-Locale/
11Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-%{version}.tar.gz
12BuildArch:      noarch
13BuildRequires:  perl >= 0:5.006
14BuildRequires:  perl(List::MoreUtils)
15BuildRequires:  perl(Module::Build)
16BuildRequires:  perl(Params::Validate) >= 0.91
17BuildRequires:  perl(Test::More)
18BuildRequires:  perl(Test::Output)
19Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
20
21# perl-DateTime-Locale used to be bundled with perl-DateTime
22# ideally, this would be resolved with
23# Requires:     perl-DateTime >= 2:0.70-1
24# but DateTime::Locale doesn't strictly require DateTime
25# and this would introduce circular build dependencies
26Conflicts:      perl-DateTime <= 1:0.7000-3.fc16
27
28%{?perl_default_filter}
29
30%description
31DateTime::Locale is primarily a factory for the various locale sub-classes.
32It also provides some functions for getting information on all the
33available locales.
34
35%prep
36%setup -q -n DateTime-Locale-%{version}
37
38iconv -f iso-8859-1 -t utf-8 Changes >Changes.iconv \
39&& touch -r Changes Changes.iconv \
40&& mv -f Changes.iconv Changes
41
42%build
43%{__perl} Build.PL installdirs=vendor
44./Build
45
46%install
47rm -rf %{buildroot}
48
49./Build install destdir=%{buildroot} create_packlist=0
50find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
51
52%{_fixperms} %{buildroot}/*
53
54%check
55./Build test
56
57%clean
58rm -rf %{buildroot}
59
60%files
61%doc Changes LICENSE LICENSE.cldr README
62%{perl_vendorlib}/*
63%{_mandir}/man3/*
64
65%changelog
66* Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.45-1
67- initial build for Vine Linux
68
69* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.45-2
70- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
71
72* Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 0.45-1
73- Specfile autogenerated by cpanspec 1.78.
Note: See TracBrowser for help on using the repository browser.