68 lines
1.8 KiB
RPMSpec
68 lines
1.8 KiB
RPMSpec
Name: perl-Sub-Name
|
|
Version: 0.02
|
|
Release: 4%{?dist}.1
|
|
Summary: Name -- or rename -- a sub
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Sub-Name/
|
|
Source0: http://www.cpan.org/authors/id/X/XM/XMATH/Sub-Name-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
This module allows one to "name" or rename subroutines, including anonymous
|
|
ones.
|
|
|
|
Note that this is mainly for aid in debugging; you still cannot call the sub
|
|
by the new name (w/o some deep magic).
|
|
|
|
|
|
%prep
|
|
%setup -q -n Sub-Name-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor optimize="%{optflags}"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/Sub*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.02-4.1
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.02-3.1
|
|
- correct license tag
|
|
- add BR: perl(ExtUtils::MakeMaker)
|
|
|
|
* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.02-3
|
|
- bump
|
|
|
|
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-2
|
|
- bump
|
|
|
|
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
|
|
- Specfile autogenerated by cpanspec 1.69.1.
|