packages: perl-Tie-RefHash-Weak/perl-Tie-RefHash-Weak.spec (NEW) - new, use...

glen glen at pld-linux.org
Sat Aug 20 17:37:19 CEST 2011


Author: glen                         Date: Sat Aug 20 15:37:19 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, used pldcpan

---- Files affected:
packages/perl-Tie-RefHash-Weak:
   perl-Tie-RefHash-Weak.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-Tie-RefHash-Weak/perl-Tie-RefHash-Weak.spec
diff -u /dev/null packages/perl-Tie-RefHash-Weak/perl-Tie-RefHash-Weak.spec:1.1
--- /dev/null	Sat Aug 20 17:37:19 2011
+++ packages/perl-Tie-RefHash-Weak/perl-Tie-RefHash-Weak.spec	Sat Aug 20 17:37:14 2011
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+
+%define		pdir	Tie
+%define		pnam	RefHash-Weak
+%include	/usr/lib/rpm/macros.perl
+Summary:	Tie::RefHash::Weak - A Tie::RefHash subclass with weakened references in the keys
+Name:		perl-Tie-RefHash-Weak
+Version:	0.09
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Tie/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	c7c6793fab417c9761d88f596dfb32e9
+URL:		http://search.cpan.org/dist/Tie-RefHash-Weak/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Task-Weaken
+BuildRequires:	perl-Variable-Magic
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Tie::RefHash module can be used to access hashes by reference.
+This is useful when you index by object, for example.
+
+The problem with Tie::RefHash, and cross indexing, is that sometimes
+the index should not contain strong references to the objecs.
+Tie::RefHash's internal structures contain strong references to the
+key, and provide no convenient means to make those references weak.
+
+This subclass of Tie::RefHash has weak keys, instead of strong ones.
+The values are left unaltered, and you'll have to make sure there are
+no strong references there yourself.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes TODO
+%{perl_vendorlib}/Tie/RefHash/Weak.pm
+%{_mandir}/man3/Tie::RefHash::Weak.3pm*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/08/20 15:37:14  glen
+- new, used pldcpan
================================================================


More information about the pld-cvs-commit mailing list