auto-import perl-Readonly-1.03-4 on branch devel from
perl-Readonly-1.03-4.src.rpm
This commit is contained in:
parent
f549b214d4
commit
d88d89bf78
@ -0,0 +1 @@
|
||||
Readonly-1.03.tar.gz
|
||||
72
perl-Readonly.spec
Normal file
72
perl-Readonly.spec
Normal file
@ -0,0 +1,72 @@
|
||||
Name: perl-Readonly
|
||||
Version: 1.03
|
||||
Release: 4%{?dist}
|
||||
Summary: Facility for creating read-only scalars, arrays, hashes
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL or Artistic
|
||||
URL: http://search.cpan.org/dist/Readonly/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Readonly.pm provides a facility for creating non-modifiable scalars,
|
||||
arrays, and hashes.
|
||||
|
||||
Readonly.pm
|
||||
* Creates scalars, arrays (not lists), and hashes.
|
||||
* Creates variables that look and work like native perl variables.
|
||||
* Creates global or lexical variables.
|
||||
* Works at runtime or compile time.
|
||||
* Works with deep or shallow data structures.
|
||||
* Prevents reassignment of Readonly variables.
|
||||
|
||||
%prep
|
||||
%setup -q -n Readonly-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
mv $RPM_BUILD_ROOT%{perl_vendorlib}/benchmark.pl .
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README benchmark.pl
|
||||
%{perl_vendorlib}/Readonly.pm
|
||||
%{_mandir}/man3/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3
|
||||
- Remove requires on perl-Readonly-XS
|
||||
|
||||
* Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3
|
||||
- Fix license and BuildRequires, use %%{?_smp_mflags} with make,
|
||||
|
||||
* Sat Nov 12 2005 Michael A. Peters <mpeters@mac.com> - 1.03-2
|
||||
- separate out perl-Readonly-XS into its own package
|
||||
- package benchmark.pl as a doc
|
||||
|
||||
* Mon Nov 7 2005 Michael A. Peters <mpeters@mac.com> - 1.03-1
|
||||
- Initial spec file
|
||||
Loading…
Reference in New Issue
Block a user