3 %include /usr/lib/rpm/macros.perl
4 Summary: Devel::LexAlias - alias lexical variables
6 Name: perl-Devel-LexAlias
9 License: GPL v1+ or Artistic
10 Group: Development/Languages/Perl
11 Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
12 # Source0-md5: 1a4f70dff1a47b3eb96bdeac50db2ec5
13 URL: http://search.cpan.org/dist/Devel-LexAlias/
14 BuildRequires: perl-devel >= 1:5.8.0
15 BuildRequires: rpm-perlprov >= 4.1-13
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Devel::LexAlias provides the ability to alias a lexical variable in a
20 subroutines scope to one of your choosing.
23 %setup -q -n %{pdir}-%{pnam}-%{version}
26 %{__perl} Makefile.PL \
30 OPTIMIZE="%{rpmcflags}"
32 %{?with_tests:%{__make} test}
35 rm -rf $RPM_BUILD_ROOT
37 %{__make} pure_install \
38 DESTDIR=$RPM_BUILD_ROOT
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
46 %{perl_vendorarch}/Devel/*.pm
47 %dir %{perl_vendorarch}/auto/Devel/LexAlias
48 %attr(755,root,root) %{perl_vendorarch}/auto/Devel/LexAlias/*.so