perl-String-Strip/perl-String-Strip.spec

Name: perl-String-Strip
Summary: Fast, commonly used, string operations
Version: 1.01
Release: 1.2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/String-Strip/
Description: String::Strip is an XS extension that implements four white space removal routines: StripSpace (remove all white space), StripLSpace (strip leading white space), StripTSpace (strip trailing white space), and StripLTSpace (strip leading and trailing white space). All four of these routines work directly on the input argument, rather than passing back a result. The routines tend to be roughly 30% faster than equivalent function regex code.

CentOS 7 x86_64

The build could not start because the following file is missing: String-Strip-1.01.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: String-Strip-1.01.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Brent B. Powers <cpan$B2Pi,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name String-Strip

Summary: Fast, commonly used, string operations
Name: perl-String-Strip
Version: 1.01
Release: 1.2%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/String-Strip/

Source: http://www.cpan.org/modules/by-module/String/String-Strip-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
String::Strip is an XS extension that implements four white space
removal routines: StripSpace (remove all white space), StripLSpace
(strip leading white space), StripTSpace (strip trailing white space),
and StripLTSpace (strip leading and trailing white space). All four of
these routines work directly on the input argument, rather than
passing back a result. The routines tend to be roughly 30% faster than
equivalent function regex code.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes README
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorarch}/String/
%{perl_vendorarch}/String/Strip.pm
%dir %{perl_vendorarch}/auto/String/
%{perl_vendorarch}/auto/String/Strip/

%changelog
* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 1.01-1
- Initial package.