diff --git a/perl-lib-relative.spec b/perl-lib-relative.spec index 0d3bf168ea81ddc3731bb275b4110fa3e9f260e5..8cf182f70c594a96e79627ab8fcccebc98ed7e2b 100644 --- a/perl-lib-relative.spec +++ b/perl-lib-relative.spec @@ -1,7 +1,6 @@ -%global _empty_manifest_terminate_build 0 Name: perl-lib-relative Version: 1.002 -Release: 2 +Release: 3 Summary: Add paths relative to the current file to @INC License: Artistic 2.0 Group: Development/Libraries @@ -15,8 +14,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) >= 0.19 BuildRequires: perl(Test::More) >= 0.88 -Requires: perl(Cwd) -Requires: perl(File::Spec) + %description Adding a path to @INC to load modules from a local directory may seem simple, but has a few common pitfalls to be aware of. Directly adding a @@ -30,9 +28,11 @@ and the path to the original script invoked by the perl interpreter, sometimes requiring workarounds in uncommon cases like generated or embedded code. This module proposes a more straightforward method: take a path relative to the current file, absolutize it, and add it to @INC. + %package help Summary : Add paths relative to the current file to @INC Provides: perl-lib-relative-doc + %description help Adding a path to @INC to load modules from a local directory may seem simple, but has a few common pitfalls to be aware of. Directly adding a @@ -46,54 +46,34 @@ and the path to the original script invoked by the perl interpreter, sometimes requiring workarounds in uncommon cases like generated or embedded code. This module proposes a more straightforward method: take a path relative to the current file, absolutize it, and add it to @INC. + %prep %setup -q -n lib-relative-%{version} + %build -export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %install -export PERL_MM_OPT="" -rm -rf $RPM_BUILD_ROOT - make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - %{_fixperms} $RPM_BUILD_ROOT/* -pushd %{buildroot} -touch filelist.lst -if [ -d usr/bin ];then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ];then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ];then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib ];then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -popd -mv %{buildroot}/filelist.lst . %check make test -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) -%doc Changes CONTRIBUTING.md dist.ini LICENSE META.json README +%files +%license LICENSE META.json +%doc Changes CONTRIBUTING.md README %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Fri Aug 01 2025 Funda Wang - 1.002-3 +- use perl-generators to scan META.json for requirements + * Fri Feb 07 2025 sqfu - 1.002-2 - drop useless perl(:MODULE_COMPAT) requirement