diff --git a/.gitignore b/.gitignore index e69de29..e45a5d4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Inline-Python-0.49.tar.gz diff --git a/perl-Inline-Python.spec b/perl-Inline-Python.spec new file mode 100644 index 0000000..84ea644 --- /dev/null +++ b/perl-Inline-Python.spec @@ -0,0 +1,80 @@ +Name: perl-Inline-Python +Version: 0.49 +Release: 3%{?dist} +Summary: Write Perl subs and classes in Python +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Inline-Python/ +Source0: http://www.cpan.org/authors/id/N/NI/NINE/Inline-Python-%{version}.tar.gz +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Config) +BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Path) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(Inline) >= 0.46 +BuildRequires: perl(Inline::denter) +BuildRequires: perl(overload) +BuildRequires: perl(Parse::RecDescent) +BuildRequires: perl(POSIX) +BuildRequires: perl(strict) +BuildRequires: perl(Test) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Simple) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +BuildRequires: python-devel >= 2.5 +Requires: perl(Inline) >= 0.46 +Requires: perl(Inline::denter) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Remove underspecified generated dependency +%global __requires_exclude ^perl\\(Inline\\)$ + +%description +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 global variables only occurs the first time you run your Python code. The +name-space is cached, and subsequent calls use the cached version. + +%prep +%setup -q -n Inline-Python-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README ToDo +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Inline* +%{_mandir}/man3/* + +%changelog +* Wed Jun 24 2015 Jon Kerr Nilsen 0.49-3 +- added two forgotten BuildRequires +* Wed Jun 24 2015 Jon Kerr Nilsen 0.49-2 +- adjusted to fit Fedora packaging guidelines. +* Fri Jun 19 2015 Jon Kerr Nilsen 0.49-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..b3f8749 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3900f3fbd0bb33c3b8e06c908a14ec2d Inline-Python-0.49.tar.gz