From 0a12f9b976cebac6f5af996ca45f86da365dae91 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 7 Jan 2025 23:27:40 +0800 Subject: [PATCH] cleanup spec --- perl-DBIx-Safe.spec | 42 ++++++++++-------------------------------- 1 file changed, 10 insertions(+), 32 deletions(-) diff --git a/perl-DBIx-Safe.spec b/perl-DBIx-Safe.spec index 343c727..cb759fa 100644 --- a/perl-DBIx-Safe.spec +++ b/perl-DBIx-Safe.spec @@ -1,9 +1,9 @@ %global _empty_manifest_terminate_build 0 Name: perl-DBIx-Safe Version: 1.2.5 -Release: 1 +Release: 2 Summary: Safer access to your database through a DBI database handle -License: BSD +License: BSD-2-Clause Group: Development/Libraries URL: https://metacpan.org/release/DBIx-Safe/ Source0: https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBIx-Safe-%{version}.tar.gz @@ -19,7 +19,6 @@ BuildRequires: perl(Test::More) >= 0.61 Requires: perl(DBD::Pg) >= 1.49 Requires: perl(DBI) >= 1.49 Requires: perl(Test::Dynamic) >= 1.3.1 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description The purpose of this module is to give controlled, limited access to an application, rather than simply passing it a raw database handle through @@ -43,45 +42,24 @@ export PERL_MM_OPT="" make %{?_smp_mflags} %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 LICENSE README Safe.pm.html TODO +%files +%license LICENSE +%doc Changes README Safe.pm.html TODO %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Tue Jan 07 2025 Funda Wang - 1.2.5-2 +- cleanup spec + * Mon Mar 08 2021 Perl_Bot 1.2.5-1 - Specfile autogenerated by Perl_Bot -- Gitee