23f4d0d
Name:           perl-Inline-Python
2e32db9
Version:        0.56
0b253b2
Release:        23%{?dist}
23f4d0d
Summary:        Write Perl subs and classes in Python
23f4d0d
License:        GPL+ or Artistic
6896898
URL:            https://metacpan.org/release/Inline-Python
6896898
Source0:        https://cpan.metacpan.org/authors/id/N/NI/NINE/Inline-Python-%{version}.tar.gz
0fa34c0
#               Call Py_Initialize() before calling PyBytes_FromString()
0fa34c0
#               Fixes segmentation fault with python 3.10
0fa34c0
#               https://github.com/niner/inline-python-pm/pull/33
0fa34c0
Patch0:         %{name}-pyinit.patch
9a4c87c
BuildRequires:  gcc
23f4d0d
BuildRequires:  findutils
23f4d0d
BuildRequires:  make
1c3800f
BuildRequires:  perl-devel
1c3800f
BuildRequires:  perl-generators
2e32db9
BuildRequires:  perl-interpreter
23f4d0d
BuildRequires:  perl(base)
23f4d0d
BuildRequires:  perl(Carp)
23f4d0d
BuildRequires:  perl(Config)
23f4d0d
BuildRequires:  perl(Cwd)
23f4d0d
BuildRequires:  perl(Data::Dumper)
23f4d0d
BuildRequires:  perl(DynaLoader)
23f4d0d
BuildRequires:  perl(Exporter)
2e32db9
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
23f4d0d
BuildRequires:  perl(File::Path)
23f4d0d
BuildRequires:  perl(Getopt::Long)
23f4d0d
BuildRequires:  perl(Inline) >= 0.46
23f4d0d
BuildRequires:  perl(Inline::denter)
f9e4bf5
BuildRequires:  perl(JSON)
23f4d0d
BuildRequires:  perl(overload)
23f4d0d
BuildRequires:  perl(Parse::RecDescent)
23f4d0d
BuildRequires:  perl(POSIX)
1ff6543
BuildRequires:  perl(Proc::ProcessTable) >= 0.53
23f4d0d
BuildRequires:  perl(strict)
23f4d0d
BuildRequires:  perl(Test)
1ff6543
BuildRequires:  perl(Test::Deep)
23f4d0d
BuildRequires:  perl(Test::More)
2e32db9
BuildRequires:  perl(Test::Number::Delta)
23f4d0d
BuildRequires:  perl(Test::Simple)
23f4d0d
BuildRequires:  perl(utf8)
23f4d0d
BuildRequires:  perl(warnings)
d8c939b
BuildRequires:  python3
d8c939b
BuildRequires:  python3-devel
23f4d0d
Requires:       perl(Inline) >= 0.46
23f4d0d
Requires:       perl(Inline::denter)
23f4d0d
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
23f4d0d
23f4d0d
# Remove underspecified generated dependency
23f4d0d
%global __requires_exclude ^perl\\(Inline\\)$
23f4d0d
23f4d0d
%description
23f4d0d
The Inline::Python module allows you to put Python source code directly
23f4d0d
"inline" in a Perl script or module. It sets up an in-process Python
23f4d0d
interpreter, runs your code, and then examines Python's symbol table for
23f4d0d
things to bind to Perl. The process of interrogating the Python interpreter
23f4d0d
for global variables only occurs the first time you run your Python code. The
23f4d0d
name-space is cached, and subsequent calls use the cached version.
23f4d0d
23f4d0d
%prep
23f4d0d
%setup -q -n Inline-Python-%{version}
d8c939b
%patch0 -p1
23f4d0d
23f4d0d
%build
0fa34c0
INLINE_PYTHON_EXECUTABLE=/usr/bin/python3 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
23f4d0d
make %{?_smp_mflags}
23f4d0d
23f4d0d
%install
23f4d0d
make pure_install DESTDIR=$RPM_BUILD_ROOT
23f4d0d
1ff6543
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
23f4d0d
23f4d0d
%{_fixperms} $RPM_BUILD_ROOT/*
23f4d0d
23f4d0d
%check
23f4d0d
make test
23f4d0d
23f4d0d
%files
23f4d0d
%doc Changes README ToDo
23f4d0d
%{perl_vendorarch}/auto/*
23f4d0d
%{perl_vendorarch}/Inline*
23f4d0d
%{_mandir}/man3/*
23f4d0d
23f4d0d
%changelog
0b253b2
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-23
0b253b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0b253b2
dbb99a0
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.56-22
dbb99a0
- Rebuilt for Python 3.11
dbb99a0
f08bffa
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-21
f08bffa
- Perl 5.36 rebuild
f08bffa
ee9e778
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-20
ee9e778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ee9e778
0fa34c0
* Thu Aug 19 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.56-19
0fa34c0
- Fix segmentation fault with python 3.10
0fa34c0
e471d49
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-18
e471d49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e471d49
a4bfc43
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.56-17
a4bfc43
- Rebuilt for Python 3.10
a4bfc43
fd27662
* Sat May 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-16
fd27662
- Perl 5.34 rebuild
fd27662
2007818
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-15
2007818
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2007818
a92617d
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-14
a92617d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a92617d
cc4f6d3
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-13
cc4f6d3
- Perl 5.32 rebuild
cc4f6d3
69eb18e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.56-12
69eb18e
- Rebuilt for Python 3.9
69eb18e
6f20f6c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-11
6f20f6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6f20f6c
930aaaa
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.56-10
930aaaa
- Rebuilt for Python 3.8
930aaaa
fba2205
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-9
fba2205
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fba2205
ff0f89f
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-8
ff0f89f
- Perl 5.30 rebuild
ff0f89f
31cb5cf
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-7
31cb5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
31cb5cf
398ed76
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-6
398ed76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
398ed76
d8c939b
* Mon Jul 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-5
d8c939b
- Use Python 3 for build
d8c939b
bce5ef8
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-4
bce5ef8
- Perl 5.28 rebuild
bce5ef8
3bc3c1e
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.56-3
3bc3c1e
- Update Python 2 dependency declarations to new packaging standards
3bc3c1e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
3bc3c1e
8819fb4
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-2
8819fb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8819fb4
2e32db9
* Mon Aug 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.56-1
2e32db9
- 0.56 bump
2e32db9
00b1287
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.54-3
00b1287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
00b1287
c4d72b3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.54-2
c4d72b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c4d72b3
f9e4bf5
* Tue Jun 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.54-1
f9e4bf5
- 0.54 bump
f9e4bf5
47bfe7a
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-3
47bfe7a
- Perl 5.26 rebuild
47bfe7a
6786ba2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.52-2
6786ba2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6786ba2
1ff6543
* Wed Dec 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-1
1ff6543
- 0.52 bump
1ff6543
9b538b2
* Tue Aug 23 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.50-1
9b538b2
- 0.50 bump
9b538b2
8e4351a
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.49-5
8e4351a
- Perl 5.24 rebuild
8e4351a
b933cfe
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.49-4
b933cfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b933cfe
23f4d0d
* Wed Jun 24 2015 Jon Kerr Nilsen <j.k.nilsen@usit.uio.no> 0.49-3
23f4d0d
- added two forgotten BuildRequires
23f4d0d
* Wed Jun 24 2015 Jon Kerr Nilsen <j.k.nilsen@usit.uio.no> 0.49-2
23f4d0d
- adjusted to fit Fedora packaging guidelines.
23f4d0d
* Fri Jun 19 2015 Jon Kerr Nilsen <j.k.nilsen@usit.uio.no> 0.49-1
23f4d0d
- Specfile autogenerated by cpanspec 1.78.