From 677aaeb4410f6d7d0804e3a6fbb2613e899e1862 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 27 Jul 2025 17:11:18 +0800 Subject: [PATCH] cleanup spec --- perl-Sys-Hostname-Long.spec | 55 +++++++++++++------------------------ 1 file changed, 19 insertions(+), 36 deletions(-) diff --git a/perl-Sys-Hostname-Long.spec b/perl-Sys-Hostname-Long.spec index 52493f4..9f83520 100644 --- a/perl-Sys-Hostname-Long.spec +++ b/perl-Sys-Hostname-Long.spec @@ -1,69 +1,52 @@ -%global _empty_manifest_terminate_build 0 Name: perl-Sys-Hostname-Long Version: 1.5 -Release: 1 +Release: 2 Summary: Try every conceivable way to get full hostname License: GPL-1.0-only or Artistic-1.0-Perl Group: Development/Libraries -URL: http://search.cpan.org/dist/Sys-Hostname-Long/ -Source0: http://www.cpan.org/authors/id/S/SC/SCOTT/Sys-Hostname-Long-%{version}.tar.gz +URL: https://metacpan.org/dist/Sys-Hostname-Long +Source0: https://www.cpan.org/authors/id/S/SC/SCOTT/Sys-Hostname-Long-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) + %description Sys::Hostname::Long module uses different ways to get the full hostname. + %package help Summary : Try every conceivable way to get full hostname Provides: perl-Sys-Hostname-Long-doc + %description help Documents for Sys::Hostname::Long perl module. + %prep %setup -q -n Sys-Hostname-Long-%{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 +%check +%make_build test -%files -f filelist.lst -%defattr(-,root,root,-) -%doc Changes META.json README +%files +%license META.json +%doc Changes README %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Sun Jul 27 2025 Funda Wang - 1.5-2 +- cleanup spec + * Sun May 23 2021 Perl_Bot 1.5-1 - Specfile autogenerated by Perl_Bot -- Gitee