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