forked from pool/perl-WeakRef
75 lines
2.2 KiB
RPMSpec
75 lines
2.2 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-WeakRef (Version 0.01)
|
||
|
#
|
||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: perl-WeakRef
|
||
|
Version: 0.01
|
||
|
Release: 1
|
||
|
Provides: perl-Weakref
|
||
|
Obsoletes: perl-Weakref
|
||
|
Requires: perl = %{perl_version}
|
||
|
Summary: API for weak references to be created in Perl
|
||
|
License: GPL, Artistic License
|
||
|
URL: http://search.cpan.org/dist/WeakRef/
|
||
|
Group: Development/Libraries/Perl
|
||
|
Autoreqprov: on
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/L/LU/LUKKA/WeakRef-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
A patch to Perl 5.005_55 by the author implements a core API for weak
|
||
|
references. This module is a Perl-level interface to that API, allowing
|
||
|
weak references to be created in Perl.
|
||
|
|
||
|
A weak reference is just like an ordinary Perl reference except that it
|
||
|
isn't included in the reference count of the thing referred to. This
|
||
|
means that once all references to a particular piece of data are weak,
|
||
|
the piece of data is freed and all the weak references are set to
|
||
|
undef. This is particularly useful for implementing circular data
|
||
|
structures without memory leaks or caches of objects.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Tuomas J. Lukka <lukka@iki.fi>
|
||
|
|
||
|
%prep
|
||
|
%setup -n WeakRef-%{version}
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL INSTALLDIRS=site
|
||
|
make
|
||
|
make test
|
||
|
|
||
|
%install
|
||
|
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
||
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%clean
|
||
|
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr (-, root, root)
|
||
|
%doc %{_mandir}/man?/*
|
||
|
%{perl_vendorarch}/WeakRef.pm
|
||
|
%{perl_vendorarch}/auto/WeakRef
|
||
|
/var/adm/perl-modules/%{name}
|
||
|
|
||
|
%changelog -n perl-WeakRef
|
||
|
* Mon Oct 02 2006 - anicka@suse.cz
|
||
|
- rename to perl-WeakRef
|
||
|
* Wed Jan 25 2006 - mls@suse.de
|
||
|
- converted neededforbuild to BuildRequires
|
||
|
* Tue Jun 22 2004 - rommel@suse.de
|
||
|
- initial checkin
|