Cosmetic spec changes suiting new maintainer's preferences
This commit is contained in:
parent
629eb3add7
commit
4084ca1aa7
@ -5,19 +5,15 @@
|
||||
|
||||
Name: perl-IO-Socket-SSL
|
||||
Version: 1.12
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Perl library for transparent SSL
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/IO-Socket-SSL/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Net::SSLeay)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::Simple)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker), perl(Net::SSLeay), perl(Test::Simple)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
@ -29,37 +25,31 @@ multiple SSL contexts, cipher selection, certificate verification, and
|
||||
SSL version selection. As an extra bonus, it works perfectly with
|
||||
mod_perl.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n IO-Socket-SSL-%{version}
|
||||
for f in README SSL.pm; do
|
||||
iconv -f iso-8859-1 -t utf-8 -o $f{.utf8,} ; mv $f{.utf8,}
|
||||
/usr/bin/iconv -f iso-8859-1 -t utf-8 -o $f{.utf8,}; %{__mv} $f{.utf8,}
|
||||
done
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%{__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 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
|
||||
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';'
|
||||
%{__chmod} -R u+w %{buildroot}/*
|
||||
|
||||
%check
|
||||
# Avoid running the session tests (spawns servers, requires 3 free ports
|
||||
# and possibly manual configuration).
|
||||
%{?!_with_sessiontests:mv t/sessions.t t/sessions.t.disable}
|
||||
make test
|
||||
|
||||
%{__make} test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
@ -67,8 +57,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{perl_vendorlib}/IO/
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 28 2007 Paul Howarth <paul@city-fan.org> - 1.12-2
|
||||
- Cosmetic spec changes suiting new maintainer's preferences
|
||||
|
||||
* Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 1.12-1
|
||||
- Update to latest upstream version: 1.12
|
||||
- Fix license tag
|
||||
|
Loading…
Reference in New Issue
Block a user