source: projects/specs/trunk/p/perl-load/perl-load-vl.spec @ 9004

Revision 9004, 2.0 KB checked in by inagaki, 10 years ago (diff)

2014-10-11 Ryoichi INAGAKI <ryo1@…>

  • perl-Net-SMTP-SSL, perl-Thread-Tie, perl-Test-MockDBI: rebuild
  • perl-Thread-Serialize, perl-Test-MockObject?, perl-UNIERSAL-can, perl-UNIVERSAL-isa, perl-load: update


Line 
1%define real_name load
2
3Summary:        Control when subroutines will be loaded
4Name:           perl-%{real_name}
5Version:        0.23
6Release:        1%{?_dist_release}
7
8License:        Artistic or GPL+
9Group:          Development/Libraries
10URL:            http://search.cpan.org/dist/load/
11Source:         http://www.cpan.org/authors/id/E/EL/ELIZABETH/load-%{version}.tar.gz
12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
13
14BuildArch:      noarch
15BuildRequires:  perl
16BuildRequires:  perl(ExtUtils::MakeMaker)
17Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
18
19%description
20The "load" pragma allows a module developer to give the application
21developer more options with regards to optimize for memory or CPU
22usage. The "load" pragma gives more control on the moment when
23subroutines are loaded and start taking up memory. This allows the
24application developer to optimize for CPU usage (by loading all of a
25module at compile time and thus reducing the amount of CPU used during
26the execution of an application). Or allow the application developer
27to optimize for memory usage, by loading subroutines only when they
28are actually needed, thereby however increasing the amount of CPU
29needed during execution.
30
31%prep
32%setup -n %{real_name}-%{version}
33
34%build
35%{expand: %%define optflags %{optflags} -fPIC}
36perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
37make %{?_smp_mflags}
38
39%install
40rm -rf %{buildroot}
41make pure_install DESTDIR=%{buildroot}
42find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
43find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
44%{_fixperms} %{buildroot}
45
46%check
47make test
48
49%clean
50%{__rm} -rf %{buildroot}
51
52%files
53%defattr(-, root, root, -)
54%doc MANIFEST README CHANGELOG TODO
55%doc %{_mandir}/man3/load.3pm*
56%{perl_vendorlib}/load.pm
57
58%changelog
59* Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.23-1
60- updated to 0.23
61- build with perl 5.16.3
62
63* Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.20-1
64- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.