summaryrefslogtreecommitdiff
path: root/perl-Package-New.spec
blob: 232a9e42c0134cb6d262307776a15f4ecec71835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Name:           perl-Package-New
Version:        0.08
Release:        1%{?dist}
Summary:        Simple base package from which to inherit
License:        BSD
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Package-New/
Source0:        http://search.cpan.org/CPAN/authors/id/M/MR/MRDVT/Package-New-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Devel::Hide)
BuildRequires:  perl(Test::Simple) >= 0.44
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
The Package::New object provides a consistent object constructor for
objects.

%prep
%setup -q -n Package-New-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes LICENSE README Todo
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
*Thu Dec 03 2011 Michael R. Davis (mdavis@stopllc.com) 0.07-2
-CPAN did not symlink the package into the by_module tree. 

*Thu Dec 02 2011 Michael R. Davis (mdavis@stopllc.com) 0.07-1
-Updated for version 0.07

*Wed Feb 23 2011 Michael R. Davis (mdavis@stopllc.com) 0.05-1
-Updated for version 0.05

*Wed Feb 23 2011 Michael R. Davis (mdavis@stopllc.com) 0.04-1
-Updated for version 0.04

*Sat Feb 05 2011 Michael R. Davis (mdavis@stopllc.com) 0.03-1
-Updated for version 0.03

*Fri Feb 04 2011 Michael R. Davis (mdavis@stopllc.com) 0.02-1
-Updated for version 0.02

*Fri Feb 04 2011 Michael R. Davis (mdavis@stopllc.com) 0.01-1
-Specfile autogenerated by cpanspec 1.78.