Hello community,

here is the log from the commit of package perl-Switch for openSUSE:Factory
checked in at Wed May 25 10:15:11 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Switch/perl-Switch.changes        
2010-12-01 14:55:04.000000000 +0100
@@ -0,0 +1,17 @@
+-------------------------------------------------------------------
+Wed Dec  1 13:35:25 UTC 2010 - [email protected]
+
+- switch to perl_requires macro
+
+-------------------------------------------------------------------
+Wed Oct 13 20:45:54 UTC 2010 - [email protected]
+
+- recreated by cpanspec
+- noarch pkg
+- fixed deps
+
+-------------------------------------------------------------------
+Wed Sep 22 21:50:09 UTC 2010 - [email protected]
+
+- Initial version 2.16
+

calling whatdependson for head-i586


New:
----
  Switch-2.16.tar.bz2
  perl-Switch.changes
  perl-Switch.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Switch.spec ++++++
#
# spec file for package perl-Switch
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Switch
%define cpan_name Switch
Summary:        Switch statement for Perl
Version:        2.16
Release:        1
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Switch/
#Source:         
http://www.cpan.org/modules/by-module/Switch/Switch-%{version}.tar.gz
Source:         %{cpan_name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Filter::Util::Call)
BuildRequires:  perl(Text::Balanced)
Requires:       perl(Filter::Util::Call)
Requires:       perl(Text::Balanced)

%description
The Switch.pm module implements a generalized case mechanism that covers  
most (but not all) of the numerous possible combinations of switch and  
case values described above.The module augments the standard Perl syntax  
with two new control statements: 'switch' and 'case'. The 'switch'  
statement takes a single scalar argument of any type, specified in  
parentheses. 'switch' stores this value as the current switch value in a  
(localized) control variable. The value is followed by a block which may  
contain one or more Perl statements (including the 'case' statement  
described below). The block is unconditionally executed once the switch  
value has been cached. A 'case' statement takes a single scalar argument  
(in mandatory parentheses if it's a variable; otherwise the parens are  
optional) and selects the appropriate type of matching between that  
argument and the current switch value. The type of matching used is  
determined by the respective types of the switch value and the 'case'  
argument, as specified in Table 1. If the match is successful, the  
mandatory block associated with the 'case' statement is executed.

Author:
-------
    Damian Conway <[email protected]>

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README

%changelog

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to