2007-01-15 23:31:34 +00:00
|
|
|
#
|
2013-06-10 10:37:16 +00:00
|
|
|
# spec file for package perl-PerlIO-via-dynamic
|
2007-01-15 23:31:34 +00:00
|
|
|
#
|
2013-06-10 10:37:16 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:34 +00:00
|
|
|
#
|
2009-06-18 15:10:45 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:31:34 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-06-10 10:37:16 +00:00
|
|
|
|
2007-01-15 23:31:34 +00:00
|
|
|
Name: perl-PerlIO-via-dynamic
|
2013-06-10 10:37:16 +00:00
|
|
|
Version: 0.14
|
|
|
|
Release: 0
|
2011-04-02 19:35:51 +00:00
|
|
|
%define cpan_name PerlIO-via-dynamic
|
2007-01-15 23:31:34 +00:00
|
|
|
Summary: dynamic PerlIO layers
|
2013-06-10 10:37:16 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2011-04-02 19:35:51 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-10 10:37:16 +00:00
|
|
|
Url: http://search.cpan.org/dist/PerlIO-via-dynamic/
|
|
|
|
Source: http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
|
2011-04-02 19:35:51 +00:00
|
|
|
BuildArch: noarch
|
2007-01-15 23:31:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 11:11:22 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:46:50 +00:00
|
|
|
BuildRequires: perl-macros
|
2013-06-10 10:37:16 +00:00
|
|
|
#BuildRequires: perl(CPANPLUS::Backend)
|
|
|
|
#BuildRequires: perl(inc::Module::Install)
|
|
|
|
#BuildRequires: perl(Internals)
|
|
|
|
#BuildRequires: perl(JSON)
|
|
|
|
#BuildRequires: perl(LWP::Simple)
|
|
|
|
#BuildRequires: perl(Module::AutoInstall)
|
|
|
|
#BuildRequires: perl(Module::Build)
|
|
|
|
#BuildRequires: perl(Module::Install::Base)
|
|
|
|
#BuildRequires: perl(Parse::CPAN::Meta)
|
|
|
|
#BuildRequires: perl(PerlIO::via::dynamic)
|
|
|
|
#BuildRequires: perl(YAML::Tiny)
|
2011-04-02 19:35:51 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:34 +00:00
|
|
|
|
|
|
|
%description
|
2011-04-02 19:35:51 +00:00
|
|
|
'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)).
|
2007-01-15 23:31:34 +00:00
|
|
|
|
2011-04-02 19:35:51 +00:00
|
|
|
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.
|
2007-01-15 23:31:34 +00:00
|
|
|
|
2011-04-02 19:35:51 +00:00
|
|
|
Note that PerlIO::via::dynamic uses the scalar fields to reference to the
|
|
|
|
object representing the dynamic namespace.
|
2007-01-15 23:31:34 +00:00
|
|
|
|
|
|
|
%prep
|
2011-04-02 19:35:51 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:31:34 +00:00
|
|
|
|
|
|
|
%build
|
2011-04-02 19:35:51 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
2010-01-14 17:52:51 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-01-15 23:31:34 +00:00
|
|
|
|
2011-04-02 19:35:51 +00:00
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
2007-01-15 23:31:34 +00:00
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-04-02 19:35:51 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:34 +00:00
|
|
|
|
2011-04-02 19:35:51 +00:00
|
|
|
%files -f %{name}.files
|
2013-06-10 10:37:16 +00:00
|
|
|
%defattr(-,root,root,755)
|
2011-04-02 19:35:51 +00:00
|
|
|
%doc CHANGES README
|
2007-01-15 23:31:34 +00:00
|
|
|
|
2009-06-18 15:10:45 +00:00
|
|
|
%changelog
|