generated from smedev/Template-for-SMEServer-Core-Perl
67 lines
1.8 KiB
RPMSpec
67 lines
1.8 KiB
RPMSpec
![]() |
%define name perl-Exporter-Tiny
|
||
|
%define version 1.0
|
||
|
%define release 1
|
||
|
Summary: This is what perl-Exporter-Tiny does.
|
||
|
Name: %{name}
|
||
|
Version: %{version}
|
||
|
Release: %{release}%{?dist}
|
||
|
Source: %{name}-%{version}.tar.gz
|
||
|
License: GNU GPL version 2
|
||
|
Group: SMEserver/addon
|
||
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||
|
Prefix: %{_prefix}
|
||
|
BuildArchitectures: noarch
|
||
|
BuildRequires: smeserver-devtools
|
||
|
Requires: smeserver-release >= 11.0
|
||
|
AutoReqProv: no
|
||
|
|
||
|
%description
|
||
|
Exporter::Tiny supports many of Sub::Exporter's external-facing features
|
||
|
including renaming imported functions with the -as, -prefix and -suffix
|
||
|
options; explicit destinations with the into option; and alternative
|
||
|
installers with the installer option. But it's written in only about 40%
|
||
|
as many lines of code and with zero non-core dependencies.
|
||
|
|
||
|
Its internal-facing interface is closer to Exporter.pm, with configuration
|
||
|
done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables.
|
||
|
|
||
|
Exporter::Tiny performs most of its internal duties (including resolution of
|
||
|
tag names to sub names, resolution of sub names to coderefs, and installation
|
||
|
of coderefs into the target package) as method calls, which means they can be
|
||
|
overridden to provide interesting behavior.
|
||
|
|
||
|
%changelog
|
||
|
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
||
|
- Initial code - create RPM [SME:99999]
|
||
|
|
||
|
%prep
|
||
|
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||
|
rm -f %{name}-%{version}-filelist
|
||
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
||
|
> %{name}-%{version}-filelist
|
||
|
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
||
|
#--dir <dir> 'attr(755,user,grp)' \
|
||
|
#--file <file> 'attr(755,root,root)' \
|
||
|
|
||
|
%clean
|
||
|
cd ..
|
||
|
rm -rf %{name}-%{version}
|
||
|
|
||
|
%pre
|
||
|
|
||
|
%preun
|
||
|
|
||
|
%post
|
||
|
|
||
|
%postun
|
||
|
#uninstall
|
||
|
%files -f %{name}-%{version}-filelist
|
||
|
%defattr(-,root,root)
|