SPECS: perl-Tie-RefHash.spec (NEW) - initial, builds here, rel 1

agaran agaran at pld-linux.org
Fri Feb 1 22:33:31 CET 2008


Author: agaran                       Date: Fri Feb  1 21:33:31 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, builds here, rel 1

---- Files affected:
SPECS:
   perl-Tie-RefHash.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Tie-RefHash.spec
diff -u /dev/null SPECS/perl-Tie-RefHash.spec:1.1
--- /dev/null	Fri Feb  1 22:33:31 2008
+++ SPECS/perl-Tie-RefHash.spec	Fri Feb  1 22:33:26 2008
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Tie
+%define	pnam	RefHash
+Summary:	Tie::RefHash - use references as hash keys
+#Summary(pl.UTF-8):	
+Name:		perl-Tie-RefHash
+Version:	1.37
+Release:	1
+# same as perl (REMOVE THIS LINE IF NOT TRUE)
+#License:	GPL v1+ or Artistic
+# even cpan dont know license
+License:	unknown
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Tie/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	42dbd4d263d051ddcebc74dcd852c329
+URL:		http://search.cpan.org/dist/Tie-RefHash/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides the ability to use references as hash keys if you first
+tie the hash variable to this module. Normally, only the keys of the tied hash
+itself are preserved as references; to use references as keys in
+hashes-of-hashes, use Tie::RefHash::Nestable, included as part of Tie::RefHash.
+
+It is implemented using the standard perl TIEHASH interface. Please see the tie
+entry in perlfunc(1) and perltie(1) for more information.
+
+The Nestable version works by looking for hash references being stored and
+converting them to tied hashes so that they too can have references as keys.
+This will happen without warning whenever you store a reference to one of your
+own hashes in the tied hash.
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%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
+%{perl_vendorlib}/Tie/*.pm
+#%%{perl_vendorlib}/Tie/RefHash
+%{_mandir}/man3/*
+
+%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  2008-02-01 21:33:26  agaran
+- initial, builds here, rel 1
+
================================================================


More information about the pld-cvs-commit mailing list