forked from pool/perl-Probe-Perl
Accepting request 34258 from devel:languages:perl
Copy from devel:languages:perl/perl-Probe-Perl based on submit request 34258 from user coolo OBS-URL: https://build.opensuse.org/request/show/34258 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Probe-Perl?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
cb2e642f2b
commit
c04d1e354c
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 4 21:45:27 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- cleanup spec
|
||||
- fixed deps
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 25 15:05:03 CET 2010 - anicka@suse.cz
|
||||
|
||||
|
@@ -15,19 +15,30 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Probe-Perl
|
||||
Version: 0.01
|
||||
Release: 1
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
Summary: Information about the currently running perl
|
||||
Version: 0.01
|
||||
Release: 2
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
Url: http://search.cpan.org/dist/Probe-Perl/
|
||||
Source0: http://www.cpan.org/authors/id/K/KW/KWILLIAMS/Probe-Perl-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(Test)
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
#
|
||||
Requires: perl = %{perl_version}
|
||||
#
|
||||
Provides: %{cpan_name}
|
||||
|
||||
%description
|
||||
This module provides methods for obtaining information about the currently
|
||||
@@ -35,27 +46,25 @@ running perl interpreter. It originally began life as code in the
|
||||
Module::Build project, but has been externalized here for general use.
|
||||
|
||||
%prep
|
||||
%setup -q -n Probe-Perl-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build
|
||||
|
||||
%install
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%install
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
%doc Changes README SIGNATURE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user