packages: perl-namespace-autoclean/perl-namespace-autoclean.spec (NEW) - in...
amateja
amateja at pld-linux.org
Fri Aug 21 14:14:23 CEST 2009
Author: amateja Date: Fri Aug 21 12:14:23 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-namespace-autoclean:
perl-namespace-autoclean.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-namespace-autoclean/perl-namespace-autoclean.spec
diff -u /dev/null packages/perl-namespace-autoclean/perl-namespace-autoclean.spec:1.1
--- /dev/null Fri Aug 21 14:14:23 2009
+++ packages/perl-namespace-autoclean/perl-namespace-autoclean.spec Fri Aug 21 14:14:18 2009
@@ -0,0 +1,81 @@
+# $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 namespace
+%define pnam autoclean
+Summary: namespace::autoclean removes all imported symbols at the end of compile cycle
+Summary(pl.UTF-8): namespace::autoclean usuwa wszystkie zaimportowane symbole pod koniec cyklu kompilacji
+Name: perl-namespace-autoclean
+Version: 0.08
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b0d086797cdb060d23c0697605c39002
+URL: http://search.cpan.org/dist/namespace-autoclean/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires: perl-B-Hooks-EndOfScope >= 0.07
+BuildRequires: perl-Class-MOP >= 0.80
+BuildRequires: perl-namespace-clean >= 0.11
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+When you import a function into a Perl package, it will naturally also
+be available as a method.
+
+The namespace::autoclean pragma will remove all imported symbols at
+the end of the current package's compile cycle. Functions called in
+the package itself will still be bound by their name, but they won't
+show up as methods on your class or instances.
+
+This module is very similar to namespace::clean, except it will clean
+all imported functions, no matter if you imported them before or after
+you used the pagma. It will also not touch anything that looks like a
+method, according to Class::MOP::Class::get_method_list.
+
+%description -l pl.UTF-8
+namespace::autoclean usuwa wszystkie zaimportowane symbole pod koniec
+cyklu kompilacji
+
+%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} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/namespace/*.pm
+%{_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/08/21 12:14:18 amateja
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list