2011-04-22 18:29:15 +00:00
|
|
|
#
|
2015-09-10 07:19:23 +00:00
|
|
|
# spec file for package perl-Inline-Python
|
2011-04-22 18:29:15 +00:00
|
|
|
#
|
2017-06-09 07:20:31 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-04-22 18:29:15 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-09-10 07:19:23 +00:00
|
|
|
|
2011-04-22 18:29:15 +00:00
|
|
|
Name: perl-Inline-Python
|
2017-06-09 07:20:31 +00:00
|
|
|
Version: 0.53
|
2015-09-10 07:19:23 +00:00
|
|
|
Release: 0
|
2011-04-22 18:29:15 +00:00
|
|
|
%define cpan_name Inline-Python
|
2015-09-10 07:19:23 +00:00
|
|
|
Summary: Write Perl subs and classes in Python
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-04-22 18:29:15 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-09-10 07:19:23 +00:00
|
|
|
Url: http://search.cpan.org/dist/Inline-Python/
|
2017-06-09 07:20:31 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/N/NI/NINE/%{cpan_name}-%{version}.tar.gz
|
2015-09-10 07:19:23 +00:00
|
|
|
Source1: cpanspec.yml
|
2011-04-22 18:29:15 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-09-10 07:19:23 +00:00
|
|
|
BuildRequires: perl(Digest::MD5) >= 2.5
|
2011-04-22 18:29:15 +00:00
|
|
|
BuildRequires: perl(Inline) >= 0.46
|
2016-11-12 17:07:14 +00:00
|
|
|
BuildRequires: perl(Proc::ProcessTable) >= 0.53
|
|
|
|
BuildRequires: perl(Test::Deep)
|
2015-09-10 07:19:23 +00:00
|
|
|
Requires: perl(Digest::MD5) >= 2.5
|
2011-04-22 18:29:15 +00:00
|
|
|
Requires: perl(Inline) >= 0.46
|
|
|
|
%{perl_requires}
|
2015-09-10 07:19:23 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: python-devel
|
|
|
|
# MANUAL END
|
2009-12-08 09:54:25 +00:00
|
|
|
|
|
|
|
%description
|
2011-04-22 18:29:15 +00:00
|
|
|
The 'Inline::Python' module allows you to put Python source code directly
|
|
|
|
"inline" in a Perl script or module. It sets up an in-process Python
|
|
|
|
interpreter, runs your code, and then examines Python's symbol table for
|
|
|
|
things to bind to Perl. The process of interrogating the Python interpreter
|
|
|
|
for globals only occurs the first time you run your Python code. The
|
|
|
|
namespace is cached, and subsequent calls use the cached version.
|
|
|
|
|
|
|
|
This document describes 'Inline::Python', the Perl package which gives you
|
|
|
|
access to a Python interpreter. For lack of a better place to keep it, it
|
|
|
|
also gives you instructions on how to use 'perlmodule', the Python package
|
|
|
|
which gives you access to the Perl interpreter.
|
2009-12-08 09:54:25 +00:00
|
|
|
|
|
|
|
%prep
|
2011-04-22 18:29:15 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-12-08 09:54:25 +00:00
|
|
|
|
|
|
|
%build
|
2011-04-22 18:29:15 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-12-08 09:54:25 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
2011-04-22 18:29:15 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
2009-12-08 09:54:25 +00:00
|
|
|
|
2011-04-22 18:29:15 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes README TESTED ToDo
|
2009-12-08 09:54:25 +00:00
|
|
|
|
|
|
|
%changelog
|