2009-07-15 09:32:02 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Class-Accessor-Chained
|
|
|
|
#
|
2011-05-25 08:37:20 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-15 09:32:02 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-07-22 12:43:02 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
|
|
|
|
Name: perl-Class-Accessor-Chained
|
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
|
|
Summary: Make chained accessors
|
|
|
|
Version: 0.01
|
|
|
|
Release: 1
|
2011-12-06 17:38:21 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2009-07-15 09:32:02 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-05-25 08:37:20 +00:00
|
|
|
Url: http://search.cpan.org/dist/Class-Accessor-Chained
|
2009-07-15 09:32:02 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2025-08-12 18:12:19 +02:00
|
|
|
Source100: README.md
|
2009-07-15 09:32:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 13:56:45 +00:00
|
|
|
%{perl_requires}
|
2011-05-25 08:37:20 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::More)
|
2009-07-15 09:32:02 +00:00
|
|
|
BuildRequires: perl(Class::Accessor)
|
2011-05-25 08:37:20 +00:00
|
|
|
Requires: perl(Class::Accessor)
|
2008-07-22 12:43:02 +00:00
|
|
|
|
2011-05-25 08:37:20 +00:00
|
|
|
Provides: %{cpan_name}
|
|
|
|
Provides: %{cpan_name}-Fast
|
|
|
|
Obsoletes: %{cpan_name}-Fast
|
2009-07-15 09:32:02 +00:00
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
2011-05-25 08:37:20 +00:00
|
|
|
|
2008-07-22 12:43:02 +00:00
|
|
|
%description
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2008-07-22 12:43:02 +00:00
|
|
|
A chained accessor is one that always returns the object when called with
|
|
|
|
parameters (to set), and the value of the field when called with no arguments.
|
|
|
|
|
|
|
|
This module subclasses Class::Accessor in order to provide the same
|
|
|
|
mk_accessors interface.
|
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
Authors: Richard Clamp <richardc@unixbeard.net>
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
#-------------------------------------------------------------------------------
|
2008-07-22 12:43:02 +00:00
|
|
|
%prep
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-07-22 12:43:02 +00:00
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2011-05-25 08:37:20 +00:00
|
|
|
|
2008-07-22 12:43:02 +00:00
|
|
|
%build
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
%{__make}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2008-07-22 12:43:02 +00:00
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2011-05-25 08:37:20 +00:00
|
|
|
|
2008-07-22 12:43:02 +00:00
|
|
|
%install
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2008-07-22 12:43:02 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2009-07-15 09:32:02 +00:00
|
|
|
%perl_gen_filelist
|
2008-07-22 12:43:02 +00:00
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2011-05-25 08:37:20 +00:00
|
|
|
|
2008-07-22 12:43:02 +00:00
|
|
|
%clean
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2008-07-22 12:43:02 +00:00
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2011-05-25 08:37:20 +00:00
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(0644,root,root,0755)
|
2008-07-22 12:43:02 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
2009-07-15 09:32:02 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
2008-07-22 12:43:02 +00:00
|
|
|
|
2011-05-25 08:37:20 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
%changelog
|