forked from pool/perl-Module-Build
Accepting request 54383 from home:seife:SLES11
thanks OBS-URL: https://build.opensuse.org/request/show/54383 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Build?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
5a157f85b5
commit
bbb093a06e
@@ -20,15 +20,18 @@
|
||||
Name: perl-Module-Build
|
||||
%define cpan_name Module-Build
|
||||
Summary: Build and install Perl modules
|
||||
Version: 0.36
|
||||
Version: 0.36.07
|
||||
%define _version 0.3607
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Module-Build/
|
||||
#Source: http://www.cpan.org/modules/by-module/Module/Module-Build-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
Source: %{cpan_name}-%{_version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRoot: %{_tmppath}/%{name}-%{_version}-build
|
||||
# for rename
|
||||
BuildRequires: util-linux
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(Module::Build)
|
||||
%if 0%{?suse_version} < 1120
|
||||
@@ -108,7 +111,7 @@ Authors:
|
||||
Ken Williams <kwilliams@cpan.org>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%setup -q -n %{cpan_name}-%{_version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
@@ -120,6 +123,9 @@ Authors:
|
||||
|
||||
%install
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
# avoid conflict with Perl's own supplied version
|
||||
mv %{buildroot}/usr/bin/config_data %{buildroot}/usr/bin/config_data-%{_version}
|
||||
rename config_data config_data-%{_version} %{buildroot}/%{_mandir}/man1/config_data.*
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
|
Reference in New Issue
Block a user