Reformat to match cpanspec output. Use fixperms macro instead of our own
chmod incantation. BR ExtUtils::MakeMaker.
This commit is contained in:
parent
0d1f552da3
commit
6528bcc185
@ -1,49 +1,44 @@
|
||||
Name: perl-String-ShellQuote
|
||||
Version: 1.03
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Perl module for quoting strings for passing through the shell
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/String-ShellQuote/
|
||||
Source0: http://www.cpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This package contains a Perl module and a command line utility which
|
||||
are useful for quoting strings which are going to pass through the
|
||||
shell or a shell-like object.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n String-ShellQuote-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
@ -52,8 +47,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man1/shell-quote.1*
|
||||
%{_mandir}/man3/String::ShellQuote.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 1.03-4
|
||||
- Reformat to match cpanspec output.
|
||||
- Use fixperms macro instead of our own chmod incantation.
|
||||
- BR ExtUtils::MakeMaker.
|
||||
|
||||
* Tue Aug 29 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.03-3
|
||||
- Fix order of arguments to find(1).
|
||||
- Drop version from perl build dependency.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user