Summary: Typical installation tasks for system administrators Name: perl-Sysadm-Install Version: 0.36 Release: 1%{?dist} License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Sysadm-Install/ Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/Sysadm-Install-%{version}.tar.gz Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(Archive::Tar) BuildRequires: perl(Config) BuildRequires: perl(Cwd) BuildRequires: perl(Encode) BuildRequires: perl(Expect) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Copy) BuildRequires: perl(File::Path) BuildRequires: perl(File::Temp) >= 0.16 BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Status) BuildRequires: perl(Log::Log4perl) >= 1.00 BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Term::ReadKey) # For test suite BuildRequires: perl(Test::More) # Runtime deps not automatically picked up by RPM Requires: perl(Archive::Tar) Requires: perl(Config) Requires: perl(Encode) Requires: perl(Expect) Requires: perl(HTTP::Request) Requires: perl(HTTP::Status) Requires: perl(LWP::UserAgent) %description "Sysadm::Install" executes shell-like commands performing typical installation tasks: Copying files, extracting tarballs, calling "make". It has a "fail once and die" policy, meticulously checking the result of every operation and calling "die()" immediately if anything fails, with optional logging of everything. "Sysadm::Install" also supports a *dry_run* mode, in which it logs everything, but suppresses any write actions. %prep %setup -q -n Sysadm-Install-%{version} # Fix perl interpreter in eg/mkperl perl -pi -e 's|/usr/local/bin/perl|/usr/bin/perl|;' eg/mkperl # Note: not turning off exec bits in examples because they don't # introduce any unwanted dependencies %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test TEST_VERBOSE=1 %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null %{_fixperms} %{buildroot} %files %defattr(-,root,root,-) %doc Changes README eg # one-liner is an overly-generic name to include in %{_bindir} and is included # as %doc if needed %exclude %{_bindir}/one-liner %{perl_vendorlib}/Sysadm/ %{_mandir}/man3/Sysadm::Install.3pm* %changelog * Mon May 2 2011 Paul Howarth <paul@city-fan.org> 0.36-1 - Update to 0.36 - Added owner_cp() to copy uid and gid of a file or directory - Added raise_error option for tap() - snip() now returns original string (with unprintables replaced) if the data length is shorter than $maxlen - Clean up for modern perl and rpmbuild - Nobody else likes macros for commands * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.35-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> 0.35-3 - Rebuild to fix problems with vendorarch/lib (#661697) * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> 0.35-2 - Mass rebuild with perl-5.12.0 * Thu Apr 15 2010 Paul Howarth <paul@city-fan.org> 0.35-1 - Update to 0.35 - Fix blurt_atomic on Win32 (CPAN RT#54885) - Fixed local caller_depth increments - Fixed printable() bug masking '-' * Mon Feb 22 2010 Paul Howarth <paul@city-fan.org> 0.34-1 - Update to 0.34 (documentation update and fixes for Windows) - BR/R perl(Config), perl(Encode), perl(HTTP::Request), perl(HTTP::Status) * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> 0.33-2 - Rebuild against perl 5.10.1 * Mon Sep 14 2009 Paul Howarth <paul@city-fan.org> 0.33-1 - Update to 0.33 - No longer require perl(Encode) - Use perl(LWP::UserAgent) rather than perl(LWP::Simple) * Tue Sep 1 2009 Paul Howarth <paul@city-fan.org> 0.32-1 - Update to 0.32 (make UTF-8 handling configurable, not automatic) * Fri Aug 28 2009 Paul Howarth <paul@city-fan.org> 0.31-1 - Update to 0.31 (improved UTF-8 support) * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.29-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 3 2009 Paul Howarth <paul@city-fan.org> 0.29-1 - Update to 0.29 - Add proper error handling to print and pipe statements - Fix up some "if $dir" cases to protect against a value of "0" in $dir - Fix up logcroak calls to use the current logger * Tue May 12 2009 Paul Howarth <paul@city-fan.org> 0.28-1 - Update to 0.28 (fixed download() with a better check for getstore()) * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.27-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Oct 9 2008 Paul Howarth <paul@city-fan.org> 0.27-2 - Incorporate comments from package review (#466223) - don't include one-liner in %%{_bindir} - tighten up %%description * Thu Oct 9 2008 Paul Howarth <paul@city-fan.org> 0.27-1 - Initial RPM version