packages: perl-Guard/perl-Guard.spec (NEW) - initial
amateja
amateja at pld-linux.org
Wed Jun 17 09:14:01 CEST 2009
Author: amateja Date: Wed Jun 17 07:14:01 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-Guard:
perl-Guard.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Guard/perl-Guard.spec
diff -u /dev/null packages/perl-Guard/perl-Guard.spec:1.1
--- /dev/null Wed Jun 17 09:14:01 2009
+++ packages/perl-Guard/perl-Guard.spec Wed Jun 17 09:13:56 2009
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Guard
+Summary: Guard - safe cleanup blocks
+Summary(pl.UTF-8): Guard - bezpieczne czyszczenie bloków
+Name: perl-Guard
+Version: 1.02
+Release: 1
+License: unknown
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Guard/%{pdir}-%{version}.tar.gz
+# Source0-md5: c5ffd0db77ead5b8236dd7aad068bdf1
+#URL: http://search.cpan.org/dist/Guard/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+# generic URL, check or change before uncommenting
+%if %{with tests}
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module implements so-called "guards". A guard is something
+(usually an object) that "guards" a resource, ensuring that it is
+cleaned up when expected.
+
+Specifically, this module supports two different types of guards:
+guard objects, which execute a given code block when destroyed, and
+scoped guards, which are tied to the scope exit.
+
+%description -l pl.UTF-8
+Moduł ten implementuje tzw "strażników". Strażnik jest czymś (zwykle
+obiektem), co strzeże zasobu, zapewniając jego usunięcie wtedy kiedy
+jest ono pożądane.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?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 README
+%{perl_vendorarch}/Guard.pm
+%dir %{perl_vendorarch}/auto/Guard/
+%{perl_vendorarch}/auto/Guard/Guard.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Guard/Guard.so
+%{_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 2009/06/17 07:13:56 amateja
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list