Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
524329e101
!8 [sync] PR-7: Fix GSXML compatibility with libxml2 v2.11.0
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-08-16 10:19:04 +00:00
lyn1001
9afdb95b48 Fix GSXML compatibility with libxml2 v2.11.0
(cherry picked from commit e0da8a78070cc38b04261b141cadaa82926a7a9e)
2023-08-15 16:37:07 +08:00
openeuler-ci-bot
a815e059e7
!6 update to 1.29.0
From: @lyn1001 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-07-12 09:40:14 +00:00
lyn1001
92251650d8 update to 1.29 2023-07-12 16:40:35 +08:00
openeuler-ci-bot
374c75a67f
!5 [sync] PR-4: Change source url
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-11-18 00:58:32 +00:00
wk333
431240f25b Change source url
(cherry picked from commit b602383f74d722055afdce4b9c3e3b68554ad027)
2022-11-16 18:15:12 +08:00
openeuler-ci-bot
2ad1491a09
!2 Fix compilation with ICU 68.
From: @chen-jan 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-05-11 02:05:00 +00:00
chen-jan
fc8bd5a7ec Fix compilation with ICU 68. 2022-05-09 02:12:28 +00:00
openeuler-ci-bot
8b056f0e43 !1 package init
From: @wu-leilei
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-09-22 09:08:42 +00:00
wu-leilei
48675bdd52 package init 2021-09-22 16:57:42 +08:00
4 changed files with 181 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 37913d006d96a6bdcb963f4ca4889888dcce6094 Mon Sep 17 00:00:00 2001
From: Frederik Seiffert <frederik@algoriddim.com>
Date: Wed, 3 May 2023 13:49:09 +0200
Subject: [PATCH] Fix GSXML compatibility with libxml2 v2.11.0
Fixes #294.
---
Source/Additions/GSXML.m | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Source/Additions/GSXML.m b/Source/Additions/GSXML.m
index 37f509564a..01a24c5aa1 100644
--- a/Source/Additions/GSXML.m
+++ b/Source/Additions/GSXML.m
@@ -2671,10 +2671,12 @@ + (void) initialize
return NULL;
}
ret->owner = 1;
+#if LIBXML_VERSION < 21100
if (ret->checked == 0)
{
ret->checked = 1;
}
+#endif
}
}
}

BIN
gnustep-base-1.29.0.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,30 @@
--- a/Source/GSTLS.orig.m 2016-03-09 14:16:16.000000000 +0100
+++ b/Source/GSTLS.m 2016-08-21 16:46:41.347996519 +0200
@@ -1745,8 +1745,7 @@
0 };
gnutls_protocol_set_priority(session, proto_prio);
#else
- gnutls_priority_set_direct(session,
- "NORMAL:-VERS-SSL3.0:+VERS-TLS-ALL", NULL);
+ gnutls_set_default_priority (session);
#endif
}
else
@@ -1757,7 +1756,7 @@
/* By default we disable SSL3.0 as the 'POODLE' attack (Oct 2014)
* renders it insecure.
*/
- gnutls_priority_set_direct(session, "NORMAL:-VERS-SSL3.0", NULL);
+ gnutls_set_default_priority (session);
#endif
}
}
@@ -1774,7 +1773,7 @@
{
NSLog(@"Invalid GSTLSPriority: %s", err_pos);
NSLog(@"Falling back to NORMAL:-VERS-SSL3.0");
- gnutls_priority_set_direct(session, "NORMAL:-VERS-SSL3.0", NULL);
+ gnutls_set_default_priority (session);
}
#endif
}

124
gnustep-base.spec Normal file
View File

@ -0,0 +1,124 @@
Name: gnustep-base
Version: 1.29.0
Release: 2
License: GPLv3+ and LGPLv2+
Summary: GNUstep Base library package
URL: http://www.gnustep.org/
Source0: https://github.com/gnustep/libs-base/releases/download/base-1_29_0/%{name}-%{version}.tar.gz
Patch0: %{name}-use_system-wide_crypto-policies.patch
Patch1: Fix-GSXML-compatibility-with-libxml2-v2.11.0.patch
BuildRequires: gcc-objc libffi-devel >= 3.0.9 gnutls-devel libxml2-devel libxslt-devel
BuildRequires: pkgconfig gnustep-make >= 2.0.0 avahi-compat-libdns_sd-devel gmp-devel
BuildRequires: texi2html texinfo-tex libicu-devel texi2html
Requires: %{name}-libs%{?_isa} = %{version}-%{release} make
Conflicts: libFoundation
%description
The GNUstep Base Library is a powerful fast library of general-purpose,
non-graphical Objective C classes, inspired by the superb OpenStep API but
implementing Apple and GNU additions to the API as well. It includes for
example classes for unicode strings, arrays, dictionaries, sets, byte
streams, typed coders, invocations, notifications, notification dispatchers,
scanners, tasks, files, networking, threading, remote object messaging
support (distributed objects), event loops, loadable bundles, attributed
unicode strings, xml, mime, user defaults. This package includes development
headers too.
%package libs
Summary: GNUStep Base Libraries
%description libs
This packages contains the run-time libraries of the gnustep-base package.
%package devel
Summary: Header of the GNUstep Base library packes
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files of the gnustep-base package.
%package doc
Summary: Documentation for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} gnustep-filesystem
%description doc
This package contains the documentation of the gnustep-base package.
%prep
%autosetup -p1
iconv -f iso-8859-1 -t utf-8 ChangeLog.2 -o ChangeLog.2.utf8
mv ChangeLog.2.utf8 ChangeLog.2
%build
ffi_include=$(pkg-config --cflags-only-I libffi | sed -e 's/^\-\I//')
export LDFLAGS="%{__global_ldflags} -Wl,--as-needed"
%gnustep_configure --disable-ffcall --with-ffi-include=$ffi_include
%gnustep_make -n
%install
%gnustep_install -n
mv ${RPM_BUILD_ROOT}%{_bindir}/pl ${RPM_BUILD_ROOT}%{_bindir}/pllist
rm -f Examples/.cvsignore
rm -f Examples/.gdbinit
sed -e "s|GNUSTEP_SYSTEM_LIBRARY=|GNUSTEP_SYSTEM_LIBRARY=$RPM_BUILD_ROOT|" \
-e "s|GNUSTEP_SYSTEM_HEADERS=|GNUSTEP_SYSTEM_HEADERS=$RPM_BUILD_ROOT|" \
%{_sysconfdir}/GNUstep/GNUstep.conf >GNUstep.conf
export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
export GNUSTEP_CONFIG_FILE=$(pwd)/GNUstep.conf
%gnustep_makedoc
%gnustep_installdoc
%ldconfig_scriptlets libs
%files
%{_bindir}/HTMLLinker
%{_bindir}/autogsdoc
%{_bindir}/cvtenc
%{_bindir}/defaults
%{_bindir}/gdnc
%{_bindir}/gdomap
%{_bindir}/gspath
%{_bindir}/make_strings
%{_bindir}/pl2link
%{_bindir}/pldes
%{_bindir}/plget
%{_bindir}/pllist
%{_bindir}/plmerge
%{_bindir}/plparse
%{_bindir}/plser
%{_bindir}/plutil
%{_bindir}/sfparse
%{_bindir}/xmlparse
%{_mandir}/man1/*
%{_mandir}/man8/*
%{gnustep_dtddir}/
%files libs
%doc ANNOUNCE ChangeLog* NEWS README.md
%license COPYING.LIB COPYINGv3
%{gnustep_libraries}/
%{_libdir}/libgnustep-base.so.*
%files devel
%{_includedir}/Foundation/
%{_includedir}/GNUstepBase/
%{_libdir}/libgnustep-base.so
%{gnustep_additional}/base.make
%doc Examples
%files doc
%doc README.md
%{_infodir}/*
%dir %{_datadir}/GNUstep/Documentation
%{_datadir}/GNUstep/Documentation/*
%changelog
* Tue Aug 15 2023 liyanan <thistleslyn@163.com> - 1.29.0-2
- Fix GSXML compatibility with libxml2 v2.11.0
* Wed Jul 12 2023 liyanan <thistleslyn@163.com> - 1.29.0-1
- update to 1.29.0
* Wed Nov 16 2022 wangkai <wangkai385@h-partners.com> - 1.27.0-3
- Change source url
* Mon May 09 2022 chenchen <chen_aka_jan@163.com> - 1.27.0-2
- Fix compilation with ICU 68.
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1.27.0-1
- package init