OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Exporter?expand=0&rev=1
57 lines
1.4 KiB
RPMSpec
57 lines
1.4 KiB
RPMSpec
#
|
|
# spec file for package perl-Exporter
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: perl-Exporter
|
|
%define real_name Exporter
|
|
Summary: Implements default import method for modules
|
|
Url: http://search.cpan.org/perldoc?Exporter
|
|
Group: Development/Libraries/Perl
|
|
License: Artistic License
|
|
Version: 5.63
|
|
Release: 1
|
|
Vendor: openSUSE-Education
|
|
Source: %{real_name}-%{version}.tar.bz2
|
|
Requires: perl = %{perl_version}
|
|
BuildRequires: perl-macros
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The Exporter module implements an import method which allows a module to export
|
|
functions and variables to its users' namespaces. Many modules use Exporter
|
|
rather than implementing their own import method because Exporter provides a
|
|
highly flexible interface, with an implementation optimised for the common
|
|
case.
|
|
|
|
Perl automatically calls the import method when processing a use statement for
|
|
a module. Modules and use are documented in perlfunc and perlmod. Understanding
|
|
the concept of modules and how the use statement operates is important to
|
|
understanding the Exporter.
|
|
|
|
|
|
%prep
|
|
%setup -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 MANIFEST
|
|
|
|
%changelog
|