File perl-aliased.spec of Package perl-aliased
#
# spec file for package perl-aliased
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-aliased
%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Use shorter versions of class names
Url: http://search.cpan.org/perldoc?aliased
Group: Development/Libraries/Perl
License: Artistic
Version: 0.30
Release: 1
Source: %{real_name}-%{version}.tar.bz2
BuildRequires: perl-macros
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%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.
This module is useful if you prefer a shorter name for a class. It's also handy
if a class has been renamed.
Author:
-------
Curtis Poe, ovid [at] cpan [dot] org
%prep
%setup -q -n %{real_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%changelog