%define pkg_name App-Env %define pkg_version 0.04 %define rpm_pkg_version 0.04 %define rpm_pkg_release 1.n0i.1 Summary: Manage application specific environments Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPLv3+ URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module//%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(Env::Path) BuildRequires: perl(File::Temp) BuildRequires: perl(Params::Validate) BuildRequires: perl(Scalar::Util) %description This module is useful when a Perl program must run external applications in environments specific to them. Often an application or application suite requires a specific environmental variable setup to operate correctly. App::Env provides a uniform mechanism for accessing environments and is most useful in situations where multiple applications with differing environments are to be invoked, although it is still useful in simpler contexts. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog Changes LICENSE README t/ lib/App/Env/Example.pm %{perl_files} %exclude %{perl_vendorlib}/App/Env %exclude %{_mandir}/man3/App::Env::Example.* %changelog * Thu Sep 20 2007 Marius Feraru - 0.04-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - rebuild on perl 5.8.8