2007-01-15 23:31:00 +00:00
|
|
|
#
|
2011-02-22 10:14:17 +00:00
|
|
|
# spec file for package perl-Inline
|
2007-01-15 23:31:00 +00:00
|
|
|
#
|
2025-05-24 16:54:49 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:31:00 +00:00
|
|
|
#
|
2009-01-22 12:14:35 +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.
|
|
|
|
|
2019-02-04 09:49:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:00 +00:00
|
|
|
#
|
|
|
|
|
2009-01-22 12:14:35 +00:00
|
|
|
|
2022-01-17 13:46:15 +00:00
|
|
|
%define cpan_name Inline
|
2009-01-22 12:14:35 +00:00
|
|
|
Name: perl-Inline
|
2025-07-11 10:20:34 +00:00
|
|
|
Version: 0.870.0
|
2011-12-08 11:11:18 +00:00
|
|
|
Release: 0
|
2025-07-11 10:20:34 +00:00
|
|
|
# 0.87 -> normalize -> 0.870.0
|
|
|
|
%define cpan_version 0.87
|
2019-02-04 09:49:06 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-05-24 16:54:49 +00:00
|
|
|
Summary: Write Perl Subroutines in Other Programming Languages
|
2022-01-17 13:46:15 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-05-24 16:54:49 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 05:11:04 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:46 +02:00
|
|
|
Source100: README.md
|
2015-04-16 05:11:04 +00:00
|
|
|
BuildArch: noarch
|
2011-12-08 11:11:18 +00:00
|
|
|
BuildRequires: perl
|
2010-12-05 21:00:16 +00:00
|
|
|
BuildRequires: perl-macros
|
2020-01-10 09:41:24 +00:00
|
|
|
BuildRequires: perl(JSON::PP)
|
2015-04-16 05:11:04 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2025-05-24 16:54:49 +00:00
|
|
|
BuildRequires: perl(Test::Warn) >= 0.230
|
2019-02-04 09:49:06 +00:00
|
|
|
BuildRequires: perl(version) >= 0.82
|
|
|
|
Requires: perl(version) >= 0.82
|
2025-05-24 16:54:49 +00:00
|
|
|
Provides: perl(Foo::Tester) = 0.20.0
|
|
|
|
Provides: perl(Inline) = %{version}
|
|
|
|
Provides: perl(Inline::Foo) = %{version}
|
|
|
|
Provides: perl(Inline::MakeMaker) = %{version}
|
|
|
|
Provides: perl(Inline::denter)
|
|
|
|
%undefine __perllib_provides
|
2015-04-16 05:11:04 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:00 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-16 05:11:04 +00:00
|
|
|
The Inline module allows you to put source code from other programming
|
|
|
|
languages directly "inline" in a Perl script or module. The code is
|
|
|
|
automatically compiled as needed, and then loaded for immediate access from
|
|
|
|
Perl.
|
|
|
|
|
|
|
|
Inline saves you from the hassle of having to write and compile your own
|
|
|
|
glue code using facilities like XS or SWIG. Simply type the code where you
|
|
|
|
want it and run your Perl as normal. All the hairy details are handled for
|
|
|
|
you. The compilation and installation of your code chunks all happen
|
|
|
|
transparently; all you will notice is the delay of compilation on the first
|
|
|
|
run.
|
|
|
|
|
|
|
|
The Inline code only gets compiled the first time you run it (or whenever
|
|
|
|
it is modified) so you only take the performance hit once. Code that is
|
|
|
|
Inlined into distributed modules (like on the CPAN) will get compiled when
|
|
|
|
the module is installed, so the end user will never notice the compilation
|
|
|
|
time.
|
|
|
|
|
2019-02-04 09:49:06 +00:00
|
|
|
Best of all, it works the same on both Unix and Microsoft Windows. See
|
2025-07-11 10:20:34 +00:00
|
|
|
Inline-Support for support information.
|
2007-01-15 23:31:00 +00:00
|
|
|
|
|
|
|
%prep
|
2025-07-11 10:20:34 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2025-05-24 16:54:49 +00:00
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:31:00 +00:00
|
|
|
|
|
|
|
%build
|
2019-02-04 09:49:06 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2022-01-17 13:46:15 +00:00
|
|
|
%make_build
|
2009-01-22 12:14:35 +00:00
|
|
|
|
|
|
|
%check
|
2019-02-04 09:49:06 +00:00
|
|
|
make test
|
2007-01-15 23:31:00 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-04-16 05:11:04 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:00 +00:00
|
|
|
|
2015-04-16 05:11:04 +00:00
|
|
|
%files -f %{name}.files
|
2019-02-04 09:49:06 +00:00
|
|
|
%doc Changes CONTRIBUTING example README
|
|
|
|
%license LICENSE
|
2007-01-15 23:31:00 +00:00
|
|
|
|
2009-01-22 12:14:35 +00:00
|
|
|
%changelog
|