Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
abb265da9e
!17 [sync] PR-16: fix issue with comment check and glib 2.66+
From: @openeuler-sync-bot 
Reviewed-by: @yueyaoqiang 
Signed-off-by: @yueyaoqiang
2024-05-27 07:07:11 +00:00
cuiyudong123
2872c37213 Adapt-tests-to-glib-2.66
(cherry picked from commit a77b8835676b3abdfa77078b69fb078a1ec67cb5)
2024-05-27 14:51:36 +08:00
openeuler-ci-bot
566b2aa2da
!6 add yaml
From: @xzyangha 
Reviewed-by: @tangjie02 
Signed-off-by: @tangjie02
2023-04-17 09:03:32 +00:00
yangxianzhao
74ce2aad65 Add yaml 2023-04-14 17:59:45 +08:00
openeuler-ci-bot
ffdca20eee
!5 添加构建依赖
From: @mywaaagh_admin 
Reviewed-by: @xu-think-about-it 
Signed-off-by: @xu-think-about-it
2023-02-13 10:06:56 +00:00
lcrpkking
10359b160d add buildrequires
Signed-off-by: lcrpkking <pkwarcraft@gmail.com>
2023-02-10 07:35:57 +00:00
openeuler-ci-bot
ecca53d5ba
!3 remove %{dist} from spec file
From: @peijiankang 
Reviewed-by: @isoftljj 
Signed-off-by: @tangjie02
2022-06-21 09:11:27 +00:00
peijiankang
0f72d0f1ee remove %{dist} from spec file 2022-06-14 15:34:16 +08:00
openeuler-ci-bot
ce29f95d61 !1 init package
Merge pull request !1 from myeuler/master
2020-06-28 10:26:22 +08:00
myeuler
78c40a2935 init package 2020-06-20 09:11:50 +00:00
4 changed files with 136 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From 178de3ef611d49beff0741c165607b9643d74f67 Mon Sep 17 00:00:00 2001
From: cuiyudong123 <cuiyudong@kylinos.cn>
Date: Mon, 27 May 2024 14:12:54 +0800
Subject: [PATCH] Adapt-tests-to-glib-2.66
---
t/g.t | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/t/g.t b/t/g.t
index 4c7cd2c..2239a71 100644
--- a/t/g.t
+++ b/t/g.t
@@ -96,7 +96,11 @@ SKIP: {
$key_file->set_comment('locales', 'mystring', 'comment');
like ($key_file->get_comment('locales', 'mystring'), qr/^comment$/);
$key_file->set_comment('locales', undef, "another comment\n");
- is ($key_file->get_comment('locales', undef), "#another comment\n#");
+ is ($key_file->get_comment('locales', undef),
+ Glib::major_version > 2 ||
+ (Glib::major_version == 2 && Glib::minor_version >= 66) ?
+ "another comment\n" : "#another comment\n#"
+ );
$key_file->set_comment(undef, undef, 'one comment more');
like ($key_file->get_comment(undef, undef), qr/^one comment more$/);
$key_file->set_boolean($start_group, 'boolkey', FALSE);
--
2.27.0

BIN
Glib-1.3293.tar.gz Executable file

Binary file not shown.

103
perl-Glib.spec Executable file
View File

@ -0,0 +1,103 @@
%global _empty_manifest_terminate_build 0
Name: perl-Glib
Version: 1.3293
Release: 5
Summary: Perl wrappers for the GLib utility and Object libraries
License: LGPL-2.1
Group: Development/Libraries
URL: http://search.cpan.org/dist/Glib/
Source0: http://www.cpan.org/authors/id/X/XA/XAOC/Glib-%{version}.tar.gz
Patch0: 0001-Adapt-tests-to-glib-2.66.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel perl-devel
BuildRequires: gcc
BuildRequires: perl-generators
BuildRequires: perl-ExtUtils-Depends >= 0.300
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
you can find on using GLib may still apply to using the libraries from
perl. This module also provides facilities for creating wrappers for other
GObject-based libraries. The "SEE ALSO" section contains pointers to all
sorts of good information.
%package help
Summary : Perl wrappers for the GLib utility and Object libraries
Provides: perl-Glib-doc
%description help
This wrapper attempts to provide a perlish interface while remaining as
true as possible to the underlying C API, so that any reference materials
you can find on using GLib may still apply to using the libraries from
perl. This module also provides facilities for creating wrappers for other
GObject-based libraries. The "SEE ALSO" section contains pointers to all
sorts of good information.
%prep
%setup -q -n Glib-%{version}
%patch -P0 -p1 -b .commentfix
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
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
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Glib*
%files help
%{_mandir}/*
%changelog
* Mon May 27 2024 cuiyudong <cuiyudong@kylinos.cn> 1.3293-5
- backport: fix issue with comment check and glib 2.77+
* Fri Apr 14 2023 yangxianzhao <yangxianzhao@uniontech.com> 1.3293-4
- Add yaml
* Fri Feb 10 2023 lichaoran <pkwarcraft@hotmail.com> 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 <peijiankang@kylinos.cn> 1.3293-2
- remove %{dist} from spec file
* Sat Jun 20 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.3293-1
- Specfile autogenerated by Perl_Bot

4
perl-Glib.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mate-desktop/perl-Glib
tag_prefix: "^v"
separator: "."