Jon Kerr Nilsen 23f4d0
Name:           perl-Inline-Python
2e32db
Version:        0.56
a92617
Release:        14%{?dist}
Jon Kerr Nilsen 23f4d0
Summary:        Write Perl subs and classes in Python
Jon Kerr Nilsen 23f4d0
License:        GPL+ or Artistic
689689
URL:            https://metacpan.org/release/Inline-Python
689689
Source0:        https://cpan.metacpan.org/authors/id/N/NI/NINE/Inline-Python-%{version}.tar.gz
d8c939
Patch0:         Inline-Python-0.56-Use-python3.patch
9a4c87
BuildRequires:  gcc
Jon Kerr Nilsen 23f4d0
BuildRequires:  findutils
Jon Kerr Nilsen 23f4d0
BuildRequires:  make
1c3800
BuildRequires:  perl-devel
1c3800
BuildRequires:  perl-generators
2e32db
BuildRequires:  perl-interpreter
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(base)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Carp)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Config)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Cwd)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Data::Dumper)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(DynaLoader)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Exporter)
2e32db
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(File::Path)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Getopt::Long)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Inline) >= 0.46
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Inline::denter)
f9e4bf
BuildRequires:  perl(JSON)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(overload)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Parse::RecDescent)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(POSIX)
1ff654
BuildRequires:  perl(Proc::ProcessTable) >= 0.53
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(strict)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Test)
1ff654
BuildRequires:  perl(Test::Deep)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Test::More)
2e32db
BuildRequires:  perl(Test::Number::Delta)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(Test::Simple)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(utf8)
Jon Kerr Nilsen 23f4d0
BuildRequires:  perl(warnings)
d8c939
BuildRequires:  python3
d8c939
BuildRequires:  python3-devel
Jon Kerr Nilsen 23f4d0
Requires:       perl(Inline) >= 0.46
Jon Kerr Nilsen 23f4d0
Requires:       perl(Inline::denter)
Jon Kerr Nilsen 23f4d0
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
# Remove underspecified generated dependency
Jon Kerr Nilsen 23f4d0
%global __requires_exclude ^perl\\(Inline\\)$
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%description
Jon Kerr Nilsen 23f4d0
The Inline::Python module allows you to put Python source code directly
Jon Kerr Nilsen 23f4d0
"inline" in a Perl script or module. It sets up an in-process Python
Jon Kerr Nilsen 23f4d0
interpreter, runs your code, and then examines Python's symbol table for
Jon Kerr Nilsen 23f4d0
things to bind to Perl. The process of interrogating the Python interpreter
Jon Kerr Nilsen 23f4d0
for global variables only occurs the first time you run your Python code. The
Jon Kerr Nilsen 23f4d0
name-space is cached, and subsequent calls use the cached version.
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%prep
Jon Kerr Nilsen 23f4d0
%setup -q -n Inline-Python-%{version}
d8c939
%patch0 -p1
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%build
2e32db
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
Jon Kerr Nilsen 23f4d0
make %{?_smp_mflags}
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%install
Jon Kerr Nilsen 23f4d0
make pure_install DESTDIR=$RPM_BUILD_ROOT
Jon Kerr Nilsen 23f4d0
1ff654
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%{_fixperms} $RPM_BUILD_ROOT/*
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%check
Jon Kerr Nilsen 23f4d0
make test
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%files
Jon Kerr Nilsen 23f4d0
%doc Changes README ToDo
Jon Kerr Nilsen 23f4d0
%{perl_vendorarch}/auto/*
Jon Kerr Nilsen 23f4d0
%{perl_vendorarch}/Inline*
Jon Kerr Nilsen 23f4d0
%{_mandir}/man3/*
Jon Kerr Nilsen 23f4d0
Jon Kerr Nilsen 23f4d0
%changelog
a92617
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-14
a92617
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a92617
cc4f6d
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-13
cc4f6d
- Perl 5.32 rebuild
cc4f6d
69eb18
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.56-12
69eb18
- Rebuilt for Python 3.9
69eb18
6f20f6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-11
6f20f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6f20f6
930aaa
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.56-10
930aaa
- Rebuilt for Python 3.8
930aaa
fba220
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-9
fba220
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fba220
ff0f89
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-8
ff0f89
- Perl 5.30 rebuild
ff0f89
31cb5c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-7
31cb5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
31cb5c
398ed7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-6
398ed7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
398ed7
d8c939
* Mon Jul 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-5
d8c939
- Use Python 3 for build
d8c939
bce5ef
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-4
bce5ef
- Perl 5.28 rebuild
bce5ef
3bc3c1
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.56-3
3bc3c1
- Update Python 2 dependency declarations to new packaging standards
3bc3c1
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
3bc3c1
8819fb
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-2
8819fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8819fb
2e32db
* Mon Aug 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-1
2e32db
- 0.56 bump
2e32db
00b128
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.54-3
00b128
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
00b128
c4d72b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.54-2
c4d72b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c4d72b
f9e4bf
* Tue Jun 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.54-1
f9e4bf
- 0.54 bump
f9e4bf
47bfe7
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-3
47bfe7
- Perl 5.26 rebuild
47bfe7
6786ba
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.52-2
6786ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6786ba
1ff654
* Wed Dec 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-1
1ff654
- 0.52 bump
1ff654
9b538b
* Tue Aug 23 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.50-1
9b538b
- 0.50 bump
9b538b
8e4351
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.49-5
8e4351
- Perl 5.24 rebuild
8e4351
b933cf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.49-4
b933cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b933cf
Jon Kerr Nilsen 23f4d0
* Wed Jun 24 2015 Jon Kerr Nilsen <j.k.nilsen@usit.uio.no> 0.49-3
Jon Kerr Nilsen 23f4d0
- added two forgotten BuildRequires
Jon Kerr Nilsen 23f4d0
* Wed Jun 24 2015 Jon Kerr Nilsen <j.k.nilsen@usit.uio.no> 0.49-2
Jon Kerr Nilsen 23f4d0
- adjusted to fit Fedora packaging guidelines.
Jon Kerr Nilsen 23f4d0
* Fri Jun 19 2015 Jon Kerr Nilsen <j.k.nilsen@usit.uio.no> 0.49-1
Jon Kerr Nilsen 23f4d0
- Specfile autogenerated by cpanspec 1.78.