File perl-Class-Multimethods.spec of Package perl-Class-Multimethods

#
# spec file for package perl-Class-Multimethods (Version 1.70)
#
# Copyright (c) 2009 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-Class-Multimethods
Version:        1.70
Release:        567
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License
Url:            http://cpan.org/modules/by-module/Class
Summary:        This Package Supports Multimethods and Subroutine Overloading in Perl.
Source:         Class-Multimethods-%{version}.tar.bz2
Patch0:         Class-Multimethods-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Class::Multimethods -- Supports multimethods and subroutine overloading
in Perl.



Authors:
--------
    Damian Conway <damian@cs.monash.edu.au>

%prep
%setup -n Class-Multimethods-%{version}
%patch0

%build
perl Makefile.PL
make
make test

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod 644 Changes README tutorial.html $RPM_BUILD_ROOT%{perl_vendorlib}/Class/Multimethods.*
chmod 644 demo/demo.ambig.pl demo/demo.analyse.pl demo/demo.global.pl demo/demo.multi.pl

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc Changes README tutorial.html demo
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Class
%{perl_vendorarch}/auto/Class
/var/adm/perl-modules/%{name}

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 28 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Tue Jul 15 2003 mjancar@suse.cz
- adapt to perl-5.8.1
- use %%perl_process_packlist
* Wed Jun 18 2003 mjancar@suse.cz
- fix filelist
* Thu May 22 2003 mjancar@suse.cz
- package omited documentation
- use diff instead of script
- fix permissions
* Tue May 20 2003 mjancar@suse.cz
- remove unpackaged files
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Fri Aug 03 2001 rvasice@suse.cz
- initial package release (version 1.70)
openSUSE Build Service is sponsored by