From e258b3ffd8248951675a67da48e9ff7da5d0083c Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 14 Jan 2025 18:48:52 +0800 Subject: [PATCH] cleanup spec --- perl-Variable-Magic.spec | 36 +++++++----------------------------- 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/perl-Variable-Magic.spec b/perl-Variable-Magic.spec index c436163..95c7622 100644 --- a/perl-Variable-Magic.spec +++ b/perl-Variable-Magic.spec @@ -2,7 +2,7 @@ Name: perl-Variable-Magic Version: 0.64 -Release: 1 +Release: 2 Summary: Associate user-defined magic to variables from Perl License: GPL-1.0-or-later OR Artistic-1.0-Perl Group: Development/Libraries @@ -63,45 +63,23 @@ 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 -type f -name '*.bs' -size 0 -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 || : +%check make test -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) +%files %doc Changes META.json README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Variable* %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Tue Jan 14 2025 Funda Wang - 0.64-2 +- cleanup spec + * Fri Mar 22 2024 wangshuo - 0.64-1 - Update to 0.64 -- Gitee