|
|
|
@ -1,14 +1,20 @@
|
|
|
|
|
# Perform an optional test
|
|
|
|
|
%bcond_without perl_Inline_enables_optional_test
|
|
|
|
|
|
|
|
|
|
Name: perl-Inline
|
|
|
|
|
Version: 0.80
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Version: 0.81
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Inline Perl module
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Url: https://metacpan.org/release/Inline
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/Inline-%{version}.tar.gz
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TI/TINITA/Inline-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.8.1
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
@ -19,29 +25,37 @@ BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
|
BuildRequires: perl(DynaLoader)
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.80
|
|
|
|
|
BuildRequires: perl(File::Spec::Unix)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(Socket)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(version) >= 0.82
|
|
|
|
|
# Tests only
|
|
|
|
|
BuildRequires: perl(diagnostics)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(Inline::Files)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Warn)
|
|
|
|
|
# Test::Pod 1.41 not used
|
|
|
|
|
BuildRequires: perl(Test::Warn) >= 0.23
|
|
|
|
|
%if %{with perl_Inline_enables_optional_test}
|
|
|
|
|
# Optional tests
|
|
|
|
|
BuildRequires: perl(diagnostics)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
# not automatically detected
|
|
|
|
|
Requires: perl(Digest::MD5)
|
|
|
|
|
Requires: perl(DynaLoader)
|
|
|
|
|
Requires: perl(File::Spec) >= 0.80
|
|
|
|
|
Requires: perl(FindBin)
|
|
|
|
|
Requires: perl(Socket)
|
|
|
|
|
Requires: perl(version) >= 0.82
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
%global __provides_exclude %{?__provides_exclude}|perl\\(Inline\\)$
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((File::Spec|version)\\)$
|
|
|
|
|
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Inline\\)$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Inline module allows you to put source code from other programming
|
|
|
|
@ -63,26 +77,31 @@ will get compiled when the module is installed, so the end user will
|
|
|
|
|
never notice the compilation time.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Inline-%{version}
|
|
|
|
|
%setup -q -n Inline-%{version}
|
|
|
|
|
find example -type f -exec chmod 0644 {} +
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
%{make_install}
|
|
|
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
unset AUTHOR_TESTING PERL_INLINE_DIRECTORY
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
|
%doc Changes CONTRIBUTING example README
|
|
|
|
|
%{perl_vendorlib}/Inline*
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Feb 04 2019 Petr Pisar <ppisar@redhat.com> - 0.81-1
|
|
|
|
|
- 0.81 bump
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.80-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|