93 lines
3.2 KiB
RPMSpec
93 lines
3.2 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-Alien-Base-ModuleBuild
|
||
|
#
|
||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: perl-Alien-Base-ModuleBuild
|
||
|
Version: 0.040
|
||
|
Release: 0
|
||
|
%define cpan_name Alien-Base-ModuleBuild
|
||
|
Summary: Module::Build subclass for building Alien:: modules and their libraries
|
||
|
License: Artistic-1.0 or GPL-1.0+
|
||
|
Group: Development/Libraries/Perl
|
||
|
Url: http://search.cpan.org/dist/Alien-Base-ModuleBuild/
|
||
|
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: perl(Archive::Extract)
|
||
|
BuildRequires: perl(Capture::Tiny) >= 0.17
|
||
|
BuildRequires: perl(File::ShareDir)
|
||
|
BuildRequires: perl(File::chdir) >= 0.1005
|
||
|
BuildRequires: perl(HTTP::Tiny) >= 0.044
|
||
|
BuildRequires: perl(JSON::PP)
|
||
|
BuildRequires: perl(List::MoreUtils)
|
||
|
BuildRequires: perl(Module::Build) >= 0.360000
|
||
|
BuildRequires: perl(Shell::Config::Generate)
|
||
|
BuildRequires: perl(Shell::Guess)
|
||
|
BuildRequires: perl(Sort::Versions)
|
||
|
BuildRequires: perl(Test::More) >= 0.94
|
||
|
BuildRequires: perl(Text::ParseWords) >= 3.26
|
||
|
BuildRequires: perl(URI)
|
||
|
BuildRequires: perl(parent)
|
||
|
Requires: perl(Archive::Extract)
|
||
|
Requires: perl(Capture::Tiny) >= 0.17
|
||
|
Requires: perl(File::ShareDir)
|
||
|
Requires: perl(File::chdir) >= 0.1005
|
||
|
Requires: perl(HTTP::Tiny) >= 0.044
|
||
|
Requires: perl(JSON::PP)
|
||
|
Requires: perl(List::MoreUtils)
|
||
|
Requires: perl(Module::Build) >= 0.360000
|
||
|
Requires: perl(Shell::Config::Generate)
|
||
|
Requires: perl(Shell::Guess)
|
||
|
Requires: perl(Sort::Versions)
|
||
|
Requires: perl(Text::ParseWords) >= 3.26
|
||
|
Requires: perl(URI)
|
||
|
Requires: perl(parent)
|
||
|
Recommends: perl(HTML::LinkExtor)
|
||
|
%{perl_requires}
|
||
|
|
||
|
%description
|
||
|
This is a subclass of Module::Build, that with Alien::Base allows for easy
|
||
|
creation of Alien distributions. This module is used during the build step
|
||
|
of your distribution. When properly configured it will
|
||
|
|
||
|
* use pkg-config to find and use the system version of the library
|
||
|
|
||
|
* download, build and install the library if the system does not provide it
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{cpan_name}-%{version}
|
||
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||
|
|
||
|
%build
|
||
|
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
||
|
./Build build flags=%{?_smp_mflags}
|
||
|
|
||
|
%check
|
||
|
./Build test
|
||
|
|
||
|
%install
|
||
|
./Build install destdir=%{buildroot} create_packlist=0
|
||
|
%perl_gen_filelist
|
||
|
|
||
|
%files -f %{name}.files
|
||
|
%defattr(-,root,root,755)
|
||
|
%doc Changes maint README
|
||
|
%license LICENSE
|
||
|
|
||
|
%changelog
|