%global pkg_name ExtUtils-Constant %global pkg_version 0.25 %global rpm_pkg_version 0.25 %global rpm_pkg_release 1.n0i.2 Summary: Generate XS code to import C header constants Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Epoch: 0 Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/N/NW/NWCLARK/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) %if %{!?_without_test:1}0 BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(Cwd) BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) %endif %description ExtUtils::Constant facilitates generating C and XS wrapper code to allow perl modules to AUTOLOAD constants defined in C library header files. It is principally used by the "h2xs" utility, on which this code is based. It doesn't contain the routines to scan header files to extract these constants. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path examples/} %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes examples/ README %changelog * Fri Jul 13 2018 Marius Feraru - 0:0.25-1.n0i.2 - version 0.25 * Thu May 31 2007 Marius Feraru - 0:0.16-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 0.16