| 1 | Name: perl-STD
|
|---|
| 2 | Version: 20101111
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: The Standard Perl 6 Grammar
|
|---|
| 5 | License: Artistic 2.0
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 | URL: http://search.cpan.org/dist/STD/
|
|---|
| 9 | Source0: http://www.cpan.org/authors/id/S/SO/SOREAR/STD-%{version}.tar.gz
|
|---|
| 10 | # Remove /usr/bin/env from shebang
|
|---|
| 11 | #Patch0: STD-20101111-Remove-usr-bin-env-from-shebang.patch
|
|---|
| 12 | BuildArch: noarch
|
|---|
| 13 | BuildRequires: perl-generators
|
|---|
| 14 | #BuildRequires: perl-interpreter
|
|---|
| 15 | #BuildRequires: perl(:VERSION) >= 5.10
|
|---|
| 16 | BuildRequires: perl(base)
|
|---|
| 17 | BuildRequires: perl(lib)
|
|---|
| 18 | BuildRequires: perl(Module::Build) >= 0.37
|
|---|
| 19 | BuildRequires: perl(strict)
|
|---|
| 20 | BuildRequires: perl(warnings)
|
|---|
| 21 | # No tests run
|
|---|
| 22 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 23 | Requires: perl(File::ShareDir) >= 1.02
|
|---|
| 24 | Provides: perl(STD) = %{version}
|
|---|
| 25 |
|
|---|
| 26 | # Remove under-specified dependencies
|
|---|
| 27 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::ShareDir\\)$
|
|---|
| 28 | # Remove private packages
|
|---|
| 29 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(mangle.pl|STD_P5|STD_P6|RE_ast|STD::Cursor\\)$
|
|---|
| 30 |
|
|---|
| 31 | %description
|
|---|
| 32 | %{summary}.
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | %setup -q -n STD-%{version}
|
|---|
| 36 | #%patch0 -p1
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 | perl Build.PL --installdirs=vendor
|
|---|
| 40 | ./Build
|
|---|
| 41 |
|
|---|
| 42 | %install
|
|---|
| 43 | ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|---|
| 44 | %{_fixperms} $RPM_BUILD_ROOT/*
|
|---|
| 45 |
|
|---|
| 46 | %check
|
|---|
| 47 | #./Build test
|
|---|
| 48 |
|
|---|
| 49 | %files
|
|---|
| 50 | %doc LICENSE
|
|---|
| 51 | %{perl_privlib}/*
|
|---|
| 52 | %{_bindir}/*
|
|---|
| 53 | %{_mandir}/man1/*
|
|---|
| 54 |
|
|---|
| 55 | %changelog
|
|---|
| 56 | * Thu 08 2018 Elbert Pol <elbert.pol@gmail.com> - 20101111-1
|
|---|
| 57 | - initial rpm for OS2
|
|---|