8
0

- update to 0.13

* Workaround a refcnt bug in Perl 5.10.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PerlIO-via-dynamic?expand=0&rev=12
This commit is contained in:
Stephan Kulow
2011-04-02 19:35:51 +00:00
committed by Git OBS Bridge
parent a6eab8777c
commit 6b721d646d
4 changed files with 38 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package perl-PerlIO-via-dynamic (Version 0.12)
# spec file for package perl-PerlIO-via-dynamic (Version 0.13)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -15,56 +15,54 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-PerlIO-via-dynamic
License: Artistic
Group: Development/Libraries/Perl
Url: http://cpan.org/
AutoReqProv: on
Version: 0.13
Release: 1
License: CHECK(GPL+ or Artistic)
%define cpan_name PerlIO-via-dynamic
Summary: dynamic PerlIO layers
Version: 0.12
Release: 130
Source: http://cpan.org/modules/by-module/PerlIO/PerlIO-via-dynamic-%{version}.tar.bz2
Url: http://search.cpan.org/dist/PerlIO-via-dynamic/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/C/CL/CLKAO/PerlIO-via-dynamic-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
PerlIO::via::dynamic is used for creating dynamic PerlIO layers. It is
useful when the behavior or the layer depends on variables. You should
not use this module as via layer directly (ie :via(dynamic)).
'PerlIO::via::dynamic' is used for creating dynamic the PerlIO manpage
layers. It is useful when the behavior or the layer depends on variables.
You should not use this module as via layer directly (ie :via(dynamic)).
Use the constructor to create new layers, with two arguments: translate and
untranslate. Then use '$p-'via ($fh)> to wrap the handle. Once <$fh> is
destroyed, the temporary namespace for the IO layer will be removed.
Authors:
--------
Chia-liang Kao <clkao at clkao dot org>
Note that PerlIO::via::dynamic uses the scalar fields to reference to the
object representing the dynamic namespace.
%prep
%setup -n PerlIO-via-dynamic-%{version}
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%dir %{perl_vendorlib}/PerlIO
%dir %{perl_vendorlib}/PerlIO/via
%{perl_vendorlib}/PerlIO/via/dynamic.pm
%dir %{perl_vendorarch}/auto/PerlIO
%dir %{perl_vendorarch}/auto/PerlIO/via
%dir %{perl_vendorarch}/auto/PerlIO/via/dynamic
%{_mandir}/man3/PerlIO::via::dynamic.3pm.gz
%files -f %{name}.files
%defattr(644,root,root,755)
%doc CHANGES README
%changelog