diff --git a/.cvsignore b/.cvsignore index e69de29..dc368ce 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +aliased-0.20.tar.gz diff --git a/perl-aliased.spec b/perl-aliased.spec new file mode 100644 index 0000000..b4832d3 --- /dev/null +++ b/perl-aliased.spec @@ -0,0 +1,51 @@ +Name: perl-aliased +Version: 0.20 +Release: 1%{?dist} +Summary: Use shorter versions of class names +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/aliased/ +Source0: http://www.cpan.org/authors/id/O/OV/OVID/aliased-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Pod::Coverage), perl(Test::Pod) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +aliased is simple in concept but is a rather handy module. It loads the +class you specify and exports into your namespace a subroutine that returns +the class name. You can explicitly alias the class to another name or, if +you prefer, you can do so implicitly. In the latter case, the name of the +subroutine is the last part of the class name. + +%prep +%setup -q -n aliased-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf %{buildroot} + +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Oct 09 2006 Chris Weyl 0.20-1 +- Specfile autogenerated by cpanspec 1.69. diff --git a/sources b/sources index e69de29..d473c63 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0bfab0c5dcff5a4903e04feb22d37b9b aliased-0.20.tar.gz