From 90c3197f576ae42386f7ce8bd622ee869589e923 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 7 Jan 2025 23:42:33 +0800 Subject: [PATCH] cleanup spec --- perl-Glib.spec | 57 ++++++++++++++------------------------------------ 1 file changed, 16 insertions(+), 41 deletions(-) diff --git a/perl-Glib.spec b/perl-Glib.spec index 630a983..85d4e16 100755 --- a/perl-Glib.spec +++ b/perl-Glib.spec @@ -1,13 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: perl-Glib Version: 1.3294 -Release: 2 +Release: 3 Summary: Perl wrappers for the GLib utility and Object libraries -License: LGPL-2.1 +License: LGPL-2.1-or-later Group: Development/Libraries URL: http://search.cpan.org/dist/Glib/ Source0: http://www.cpan.org/authors/id/X/XA/XAOC/Glib-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glib2-devel perl-devel BuildRequires: gcc BuildRequires: perl-generators @@ -16,7 +15,6 @@ BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl-ExtUtils-PkgConfig >= 1.000 Requires: perl-ExtUtils-Depends >= 0.300 Requires: perl-ExtUtils-PkgConfig >= 1.000 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This wrapper attempts to provide a perlish interface while remaining as true as possible to the underlying C API, so that any reference materials @@ -44,68 +42,45 @@ 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 -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 make test -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog.pre-git doctypes Glib.exports LICENSE META.json NEWS README TODO xsapi.pod.foot xsapi.pod.head +%files +%license LICENSE +%doc AUTHORS ChangeLog.pre-git doctypes Glib.exports META.json NEWS README TODO xsapi.pod.foot xsapi.pod.head %{perl_vendorarch}/auto/* %{perl_vendorarch}/Glib* %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog -* Mon Aug 19 2024 Zhipeng Chen 1.3294-2 +* Tue Jan 07 2025 Funda Wang - 1.3294-3 +- cleanup spec + +* Mon Aug 19 2024 Zhipeng Chen - 1.3294-2 - Add 'Buildarch: noarch' to the help subpackage -* Tue Jul 16 2024 dfh 1.3294-1 +* Tue Jul 16 2024 dfh - 1.3294-1 - Add G_OPTION_FLAG_NONE to the GOptionFlag GEnum (GNOME/perl-glib!8) - Add a CI pipeline for perl-Glib (GNOME/perl-glib!9) - Adapt tests to glib-2.77 (GNOME/perl-glib!10) -* Mon Apr 15 2024 wangxiaomeng 1.3293-5 +* Mon Apr 15 2024 wangxiaomeng - 1.3293-5 - backport: fix issue with comment check and glib 2.77+ -* Fri Apr 14 2023 yangxianzhao 1.3293-4 +* Fri Apr 14 2023 yangxianzhao - 1.3293-4 - Add yaml -* Fri Feb 10 2023 lichaoran 1.3293-3 +* Fri Feb 10 2023 lichaoran - 1.3293-3 - add buildRequires: add gcc as we using it to compile - and perl-generators to auto-generate perl module provides -* Mon Jun 13 2022 peijiankang 1.3293-2 +* Mon Jun 13 2022 peijiankang - 1.3293-2 - remove %{dist} from spec file -* Sat Jun 20 2020 Perl_Bot 1.3293-1 +* Sat Jun 20 2020 Perl_Bot - 1.3293-1 - Specfile autogenerated by Perl_Bot -- Gitee