From 1600bef11a5194d38abe43489ee2368239730612 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Tue, 21 Jan 2025 00:02:07 -0500 Subject: [PATCH] * Tue Feb 08 2022 Gavin Carr 0.122-1 - Update to version 0.122. --- Path-Tiny-0.122.tar.gz | 3 ++ perl-Path-Tiny.spec | 117 ++++++++++++++++++++++++++--------------- 2 files changed, 77 insertions(+), 43 deletions(-) create mode 100644 Path-Tiny-0.122.tar.gz diff --git a/Path-Tiny-0.122.tar.gz b/Path-Tiny-0.122.tar.gz new file mode 100644 index 0000000..6aa529a --- /dev/null +++ b/Path-Tiny-0.122.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4bc6f76d0548ccd8b38cb66291a885bf0de453d0167562c7b82e8861afdcfb7c +size 98664 diff --git a/perl-Path-Tiny.spec b/perl-Path-Tiny.spec index e5ec6a9..c1e41a9 100644 --- a/perl-Path-Tiny.spec +++ b/perl-Path-Tiny.spec @@ -1,57 +1,88 @@ -%define name perl-Path-Tiny -%define version 1.0 -%define release 1 -Summary: This is what perl-Path-Tiny does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +Name: perl-Path-Tiny +Version: 0.122 +Release: 1%{?org_tag}%{?dist} +Summary: File path utility +License: Apache Software License +Group: Development/Libraries +URL: http://search.cpan.org/dist/Path-Tiny/ +Source0: http://localhost/cpan//authors/id/D/DA/DAGOLDEN/Path-Tiny-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl >= 0:5.008001 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 +BuildRequires: perl(Digest) >= 1.03 +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(Digest::SHA) >= 5.45 +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(File::Path) >= 2.07 +BuildRequires: perl(File::Spec) >= 3.40 +BuildRequires: perl(File::Temp) >= 0.19 +BuildRequires: perl(File::Spec) >= 3.40 +BuildRequires: perl(File::Temp) >= 0.19 +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Unicode::UTF8) >= 0.58 +BuildRequires: perl(CPAN::Meta) >= 2.120900 +BuildRequires: perl(Test::FailWarnings) +BuildRequires: perl(Test::MockRandom) +Requires: perl(Digest) >= 1.03 +Requires: perl(Digest::SHA) >= 5.45 +Requires: perl(Exporter) >= 5.57 +Requires: perl(File::Path) >= 2.07 +Requires: perl(File::Spec) >= 3.40 +Requires: perl(File::Temp) >= 0.19 +Requires: perl(Unicode::UTF8) >= 0.58 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Autoreq: no +%if %{rhel} >= 8 +Provides: perl(Path::Tiny) = %{version} +%endif %description -This module attempts to provide 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. - - -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +This module attempts to provide 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. %prep - -%setup -q +%setup -q -n Path-Tiny-%{version} %build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test %clean -cd .. -rm -rf %{name}-%{version} +rm -rf %{buildroot} -%pre +%files +%defattr(-,root,root,-) +%doc Changes CONTRIBUTING.mkdn dist.ini LICENSE META.json perlcritic.rc README +%{perl_vendorlib}/* +%{_mandir}/man3/* -%preun +%changelog +* Tue Feb 08 2022 Gavin Carr 0.122-1 +- Update to version 0.122. -%post +* Mon Dec 14 2015 Gavin Carr 0.076-1 +- Update to version 0.076. -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +* Thu Jul 24 2014 Gavin Carr 0.055-1 +- Update to version 0.055. + +* Wed Mar 20 2013 Gavin Carr 0.015-1 +- Specfile autogenerated by cpanspec 1.79.