source: projects/specs/trunk/p/perl-Log-Dispatch-Config/perl-Log-Dispatch-Config-vl.spec @ 5862

Revision 5862, 2.1 KB checked in by shaolin, 12 years ago (diff)
  • new package
Line 
1%define real_name Log-Dispatch-Config
2
3Summary:        Perl module that implements Log4j
4Name:           perl-%{real_name}
5Version:        1.03
6Release:        1%{?_dist_release}
7License:        GPL+ or Artistic
8Group:          Development/Libraries
9Source0:        http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{real_name}-%{version}.tar.gz
10URL:            http://search.cpan.org/dist/Log-Dispatch-Config/
11BuildArch:      noarch
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
14
15BuildRequires:  perl(AppConfig) >= 1.52
16BuildRequires:  perl(ExtUtils::MakeMaker)
17BuildRequires:  perl(File::Temp) >= 0.12
18BuildRequires:  perl(IO::Scalar)
19BuildRequires:  perl(Log::Dispatch) >= 2
20BuildRequires:  perl(Test::More) >= 0.32
21Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
22Requires:       perl(AppConfig) >= 1.52
23Requires:       perl(File::Temp) >= 0.12
24Requires:       perl(IO::Scalar)
25Requires:       perl(Log::Dispatch) >= 2
26Requires:       perl(Test::More) >= 0.32
27
28Vendor:         Project Vine
29Distribution:   Vine Linux
30Packager:       shaolin
31
32%description
33Log-Dispatch-Config is a Perl module that implements Log4j.
34
35%prep
36%setup -n %{real_name}-%{version}
37
38%build
39perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
40make %{?_smp_mflags}
41
42%install
43rm -rf %{buildroot}
44make pure_install DESTDIR=%{buildroot}
45find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
46find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
47%{_fixperms} %{buildroot}
48
49%clean
50rm -rf %{buildroot}
51
52%check
53make test
54
55%files
56%defattr(-, root, root, 0755)
57%doc Changes MANIFEST META.yml README
58%doc %{_mandir}/man3/Log::Dispatch::Config.3pm*
59%doc %{_mandir}/man3/Log::Dispatch::Configurator.3pm*
60%doc %{_mandir}/man3/Log::Dispatch::Configurator::AppConfig.3pm*
61%dir %{perl_vendorlib}/Log/
62%dir %{perl_vendorlib}/Log/Dispatch/
63%{perl_vendorlib}/Log/Dispatch/Config.pm
64%{perl_vendorlib}/Log/Dispatch/Configurator.pm
65%dir %{perl_vendorlib}/Log/Dispatch/Configurator/
66%{perl_vendorlib}/Log/Dispatch/Configurator/AppConfig.pm
67
68%changelog
69* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
70- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.