%global pkg_name Path-Tiny %global pkg_version 0.104 %global rpm_pkg_version 0.104 %global rpm_pkg_release 1.n0i.1 Summary: File path utility Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/Path/%{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) >= 6.17 BuildRequires: perl(File::Temp) >= 0.19 BuildRequires: perl(Test::More) >= 0.96 %description This module provides a small, fast utility for working with file paths. It is friendlier to use than File::Spec and provides easy access to functions from several other core file handling modules. It aims to be smaller and faster than many alternatives on CPAN, while helping people do many common things in consistent and less error-prone ways. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path xt/} %build %{perl_build} %install %{__rm} -rf %{buildroot} %{perl_install} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{perl_files} %doc Changes CONTRIBUTING.mkdn cpanfile dist.ini LICENSE perlcritic.rc README tidyall.ini xt/ %changelog * Mon Nov 27 2017 Marius Feraru - 0.104-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - version 0.104