8
0
Files
perl-Class-MethodMaker/perl-Class-MethodMaker.spec

83 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Class-MethodMaker (Version 2.11)
#
# Copyright (c) 2010 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-MethodMaker
BuildRequires: perl-Module-Build
License: Artistic
Group: Development/Libraries/Perl
Requires: perl = %{perl_version}
AutoReqProv: on
Summary: Class::MethodMaker
Version: 2.11
Release: 37
Source: Class-MethodMaker-%{version}.tar.gz
Patch: Class-MethodMaker-Makefile.PL.diff
Patch1: suppress_warning.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module solves the problem of having to write a bazillion get/set
methods that are all the same.
Authors:
--------
fluffy@engineer.com
%prep
%setup -n Class-MethodMaker-%{version}
%patch
%patch1
%build
./configure
make %{?_smp_mflags}
make test
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make DESTDIR=$RPM_BUILD_ROOT \
INSTALLMAN1DIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \
INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
install_vendor
%perl_process_packlist
%files
%defattr(-, root, root)
%doc Changes MANIFEST README TODO end.pod examples benchmark
%doc %{_mandir}/man3/Class::MethodMaker.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::Constants.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::Engine.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::OptExt.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::V1Compat.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::array.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::hash.3pm.gz
%doc %{_mandir}/man3/Class::MethodMaker::scalar.3pm.gz
%dir %{perl_vendorarch}/Class
%dir %{perl_vendorarch}/Class/MethodMaker
%dir %{perl_vendorarch}/auto/Class
%{perl_vendorarch}/Class/MethodMaker.pm
%{perl_vendorarch}/Class/MethodMaker
%{perl_vendorarch}/auto/Class/MethodMaker/
/var/adm/perl-modules/%{name}
%changelog