[perl-Perl-Destruct-Level] Initial import (perl-Perl-Destruct-Level-0.02-2)
Paul Howarth
pghmcfc at fedoraproject.org
Fri Mar 30 17:27:46 UTC 2012
commit 1b0870e642ffb9d628c4dc8c478394753f1fe35c
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Mar 30 18:25:38 2012 +0100
Initial import (perl-Perl-Destruct-Level-0.02-2)
This module allows you to change perl's internal destruction level. The
default value of the destruct level is 0; it means that perl won't bother
destroying all of its internal data structures and lets the OS do the cleanup
for it at exit.
For perls built with debugging support (-DDEBUGGING), an environment variable
PERL_DESTRUCT_LEVEL allows you to control the destruction level. This module
enables you to modify it on non-debugging perls too.
Note that some embedded environments might extend the meaning of the
destruction level for their own purposes: mod_perl does that, for example.
.gitignore | 1 +
perl-Perl-Destruct-Level.spec | 63 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7869181 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Perl-Destruct-Level-[0-9.]*.tar.gz
diff --git a/perl-Perl-Destruct-Level.spec b/perl-Perl-Destruct-Level.spec
new file mode 100644
index 0000000..37843f3
--- /dev/null
+++ b/perl-Perl-Destruct-Level.spec
@@ -0,0 +1,63 @@
+Name: perl-Perl-Destruct-Level
+Summary: Allows you to change perl's internal destruction level
+Version: 0.02
+Release: 2%{?dist}
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Perl-Destruct-Level/
+Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Perl-Destruct-Level-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(XSLoader)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+# Don't "provide" private Perl libs
+%{?perl_default_filter}
+
+%description
+This module allows you to change perl's internal destruction level. The
+default value of the destruct level is 0; it means that perl won't bother
+destroying all of its internal data structures and lets the OS do the cleanup
+for it at exit.
+
+For perls built with debugging support (-DDEBUGGING), an environment variable
+PERL_DESTRUCT_LEVEL allows you to control the destruction level. This module
+enables you to modify it on non-debugging perls too.
+
+Note that some embedded environments might extend the meaning of the
+destruction level for their own purposes: mod_perl does that, for example.
+
+%prep
+%setup -q -n Perl-Destruct-Level-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%{perl_vendorarch}/auto/Perl/
+%{perl_vendorarch}/Perl/
+%{_mandir}/man3/Perl::Destruct::Level.3pm*
+
+%changelog
+* Tue Mar 13 2012 Paul Howarth <paul at city-fan.org> - 0.02-2
+- Sanitize for Fedora submission
+ - Drop %%defattr, redundant since rpm 4.4
+ - Use Fedora-style dist tag
+
+* Mon Mar 12 2012 Paul Howarth <paul at city-fan.org> - 0.02-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..4ba3987 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+688e73183bcc31a863571393566d587e Perl-Destruct-Level-0.02.tar.gz
More information about the scm-commits
mailing list