From b9b8177206c2ad353208d8b589bdc8f3516e7a5880c90dfc179317619fd0b844 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Mon, 26 Jul 2010 08:42:56 +0000 Subject: [PATCH] ignore .3 man files on <= SLE 10 as they conflict with the perl package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-MakeMaker?expand=0&rev=6 --- perl-ExtUtils-MakeMaker.changes | 5 +++++ perl-ExtUtils-MakeMaker.spec | 23 +++++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/perl-ExtUtils-MakeMaker.changes b/perl-ExtUtils-MakeMaker.changes index 317c104..9cd5817 100644 --- a/perl-ExtUtils-MakeMaker.changes +++ b/perl-ExtUtils-MakeMaker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 26 08:42:23 UTC 2010 - pascal.bleser@opensuse.org + +- also exclude .3 man pages for SLE <= 10, as it conflicts with Perl too + ------------------------------------------------------------------- Mon Jul 26 07:49:38 UTC 2010 - pascal.bleser@opensuse.org diff --git a/perl-ExtUtils-MakeMaker.spec b/perl-ExtUtils-MakeMaker.spec index 689f91f..d8dd7e6 100644 --- a/perl-ExtUtils-MakeMaker.spec +++ b/perl-ExtUtils-MakeMaker.spec @@ -12,7 +12,7 @@ Name: perl-ExtUtils-MakeMaker URL: http://cpan.org/modules/by-module/ExtUtils/ -License: Artistic License +License: Perl License Group: Development/Libraries/Perl Requires: perl = %{perl_version} # BuildRequires: perl-Test-Pod @@ -24,33 +24,36 @@ Source: http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/ExtUtils-Make BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -ExtUtils-MakeMaker Perl module +Up-to-date ExtUtils-MakeMaker Perl module. -Module::Build is the official heir apparent to MakeMaker and we encourage people to work on M::B rather than spending time adding features to MakeMaker. +Module::Build is the official heir apparent to MakeMaker and we encourage +people to work on M::B rather than spending time adding features to MakeMaker. -This is here just to fulfil a dependency in Jifty. - %prep %setup -n ExtUtils-MakeMaker-%{version} %build -perl Makefile.PL -make +%__perl Makefile.PL +%__make %check -make test +%__make test %install %perl_make_install %perl_process_packlist %clean -rm -rf $RPM_BUILD_ROOT +%{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc Changes README -%doc %{_mandir}/man3/* +%if 0%{?suse_version} < 1100 +%exclude %doc %{_mandir}/man3/*.%{perl_man3ext}%{ext_man} +%else +%doc %{_mandir}/man3/*.%{perl_man3ext}%{ext_man} +%endif %{perl_vendorlib}/ExtUtils %{perl_vendorarch}/auto/ExtUtils /var/adm/perl-modules/%{name}