diff --git a/.gitignore b/.gitignore index e69de29..0f36992 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Env-Sanctify-[0-9.]*.tar.gz diff --git a/Env-Sanctify-1.04-UTF8.patch b/Env-Sanctify-1.04-UTF8.patch new file mode 100644 index 0000000..be6f12f --- /dev/null +++ b/Env-Sanctify-1.04-UTF8.patch @@ -0,0 +1,11 @@ +--- README ++++ README +@@ -50,7 +50,7 @@ + Chris "BinGOs" Williams + + LICENSE +- Copyright © Chris Williams ++ Copyright © Chris Williams + + This module may be used, modified, and distributed under the same terms + as Perl itself. Please see the license that came with your Perl diff --git a/perl-Env-Sanctify.spec b/perl-Env-Sanctify.spec new file mode 100644 index 0000000..e5a6709 --- /dev/null +++ b/perl-Env-Sanctify.spec @@ -0,0 +1,66 @@ +Name: perl-Env-Sanctify +Summary: Lexically scoped sanctification of %%ENV +Version: 1.04 +Release: 2%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Env-Sanctify/ +Source0: http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/Env-Sanctify-%{version}.tar.gz +Patch0: Env-Sanctify-1.04-UTF8.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +# Build +BuildRequires: perl(base) +BuildRequires: perl(Cwd) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +# Test suite +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Env::Sanctify is a module that provides lexically-scoped manipulation and +sanctification of %%ENV. You can specify that it alter or add additional +environment variables or remove existing ones according to a list of matching +regexen. You can then either restore the environment back manually or let the +object fall out of scope, which automagically restores. It's useful for +manipulating the environment that forked processes and sub-processes will +inherit. + +%prep +%setup -q -n Env-Sanctify-%{version} + +# Recode documentation as UTF-8 +%patch0 + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +%{_fixperms} %{buildroot} + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%doc Changes LICENSE README examples/ +%{perl_vendorlib}/Env/ +%{_mandir}/man3/Env::Sanctify.3pm* + +%changelog +* Mon Mar 12 2012 Paul Howarth - 1.04-2 +- Add buildreqs for modules used by bundled Module::Install (#802377) + +* Mon Mar 12 2012 Paul Howarth - 1.04-1 +- Initial RPM package diff --git a/sources b/sources index e69de29..9dd342c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +304b28041d75f64da4551e4db238d354 Env-Sanctify-1.04.tar.gz