From 0451aedc965f6926eb7efe2225f0c1ca07f17029 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Mar 13 2017 14:21:10 +0000 Subject: Import --- diff --git a/.gitignore b/.gitignore index e69de29..17c1e43 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Alien-pkgconf-0.10.tar.gz diff --git a/perl-Alien-pkgconf.spec b/perl-Alien-pkgconf.spec new file mode 100644 index 0000000..be34657 --- /dev/null +++ b/perl-Alien-pkgconf.spec @@ -0,0 +1,79 @@ +Name: perl-Alien-pkgconf +Version: 0.10 +Release: 1%{?dist} +Summary: Discover pkgconf and libpkgconf +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Alien-pkgconf/ +Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-pkgconf-%{version}.tar.gz +# This is a full-arch package because it stores data about arch-specific +# libpkgconf.so library and it stores them into arch-specific directory. +# But it does not install any ELF, therefore disable debuginfo generation. +%global debug_package %{nil} +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-generators +BuildRequires: perl(:VERSION) >= 5.8.1 +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# FFI::CheckLib is optional but provides additional data to bake into a binary +# package +BuildRequires: perl(FFI::CheckLib) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(JSON::PP) >= 2.27400 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: pkgconf +BuildRequires: pkgconfig(libpkgconf) >= 1.3.0 +# script/system.pl is executed at build time +# Run-time: +BuildRequires: perl(File::ShareDir) >= 1.102 +# Tests: +# An XS code is built by Test::Alien::xs_ok() in t/xs.t +BuildRequires: perl-devel +BuildRequires: perl(Data::Dumper) +# Test2::Bundle::Extended version from Test2::Suite in META +BuildRequires: perl(Test2::Bundle::Extended) >= 0.000065 +BuildRequires: perl(Test2::Bundle::More) +BuildRequires: perl(Test2::Tools::Basic) +BuildRequires: perl(Test::Alien) >= 0.08 +# This RPM package ensures libpkgconf.so is installed on the system +Requires: libpkgconf-devel(%{__isa}) = %(pkgconf --modversion libpkgconf || echo 0) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(File::ShareDir) >= 1.102 +Requires: perl(JSON::PP) >= 2.27400 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((File::ShareDir|JSON::PP)\\)$ + +%description +This Perl module provides you with the information that you need to invoke +pkgconf or link against libpkgconf. It isn't intended to be used directly, +but rather to provide the necessary package by a CPAN module that needs +libpkgconf, such as PkgConfig::LibPkgConf. + +%prep +%setup -q -n Alien-pkgconf-%{version} + +%build +unset ALIEN_FORCE ALIEN_INSTALL_TYPE +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Alien +%{_mandir}/man3/* + +%changelog +* Thu Mar 09 2017 Petr Pisar 0.10-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..bf8e815 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Alien-pkgconf-0.10.tar.gz) = 7925467425118082edd1fbe50f4713a1e6987b98a0704c1daace07fa01e901e80d6f996c6c307b77eed2770f8727b9aa9e43a17f72575c08553085a56dc6693f