Cosmetic spec changes suiting new maintainer's preferences

This commit is contained in:
Paul Howarth 2007-11-28 18:25:18 +00:00
parent 629eb3add7
commit 4084ca1aa7

View File

@ -1,24 +1,20 @@
# #
# Rebuild switch: # Rebuild switch:
# --with sessiontests enable session tests # --with sessiontests enable session tests
# #
Name: perl-IO-Socket-SSL Name: perl-IO-Socket-SSL
Version: 1.12 Version: 1.12
Release: 1%{?dist} Release: 2%{?dist}
Summary: Perl library for transparent SSL Summary: Perl library for transparent SSL
Group: Development/Libraries
Group: Development/Libraries License: GPL+ or Artistic
License: GPL+ or Artistic URL: http://search.cpan.org/dist/IO-Socket-SSL/
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
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)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker), perl(Net::SSLeay), perl(Test::Simple)
BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Net::SSLeay)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Simple)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
This module is a true drop-in replacement for IO::Socket::INET that This module is a true drop-in replacement for IO::Socket::INET that
@ -29,37 +25,31 @@ multiple SSL contexts, cipher selection, certificate verification, and
SSL version selection. As an extra bonus, it works perfectly with SSL version selection. As an extra bonus, it works perfectly with
mod_perl. mod_perl.
%prep %prep
%setup -q -n IO-Socket-SSL-%{version} %setup -q -n IO-Socket-SSL-%{version}
for f in README SSL.pm ; do 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 done
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %{__make} %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT %{__rm} -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' /usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* %{__chmod} -R u+w %{buildroot}/*
%check %check
# Avoid running the session tests (spawns servers, requires 3 free ports # Avoid running the session tests (spawns servers, requires 3 free ports
# and possibly manual configuration). # and possibly manual configuration).
%{?!_with_sessiontests:mv t/sessions.t t/sessions.t.disable} %{?!_with_sessiontests:mv t/sessions.t t/sessions.t.disable}
make test %{__make} test
%clean %clean
rm -rf $RPM_BUILD_ROOT %{__rm} -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -67,8 +57,10 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorlib}/IO/ %{perl_vendorlib}/IO/
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %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 * Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 1.12-1
- Update to latest upstream version: 1.12 - Update to latest upstream version: 1.12
- Fix license tag - Fix license tag