From 7e83a9329982dc30725d1abecce25c6a255af07e Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 19:12:09 +0000 Subject: [PATCH] import UBI libunistring-1.1-10.el10 --- .gitignore | 2 +- .libunistring.metadata | 1 - SOURCES/fseterr-update-20180815.patch | 75 --------- SPECS/libunistring.spec | 153 ----------------- libunistring.spec | 226 ++++++++++++++++++++++++++ sources | 1 + 6 files changed, 228 insertions(+), 230 deletions(-) delete mode 100644 .libunistring.metadata delete mode 100644 SOURCES/fseterr-update-20180815.patch delete mode 100644 SPECS/libunistring.spec create mode 100644 libunistring.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index 9c2faa0..547d273 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/libunistring-0.9.9.tar.xz +libunistring-1.1.tar.xz diff --git a/.libunistring.metadata b/.libunistring.metadata deleted file mode 100644 index f4e26c4..0000000 --- a/.libunistring.metadata +++ /dev/null @@ -1 +0,0 @@ -0f7049cf9cdea9d010235cf6c56254693da17eaa SOURCES/libunistring-0.9.9.tar.xz diff --git a/SOURCES/fseterr-update-20180815.patch b/SOURCES/fseterr-update-20180815.patch deleted file mode 100644 index 725874d..0000000 --- a/SOURCES/fseterr-update-20180815.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff -ru libunistring-0.9.9.orig/lib/fseterr.c libunistring-0.9.9/lib/fseterr.c ---- libunistring-0.9.9.orig/lib/fseterr.c 2018-02-28 17:07:03.000000000 +0100 -+++ libunistring-0.9.9/lib/fseterr.c 2018-08-15 16:40:53.419266090 +0200 -@@ -1,20 +1,11 @@ - /* Set the error indicator of a stream. - Copyright (C) 2007-2018 Free Software Foundation, Inc. - -- This program is free software: you can redistribute it and/or -- modify it under the terms of either: -+ This program is free software: you can redistribute it and/or modify -+ it under the terms of the GNU General Public License as published by -+ the Free Software Foundation; either version 3 of the License, or -+ (at your option) any later version. - -- * the GNU Lesser General Public License as published by the Free -- Software Foundation; either version 3 of the License, or (at your -- option) any later version. -- -- or -- -- * the GNU General Public License as published by the Free -- Software Foundation; either version 2 of the License, or (at your -- option) any later version. -- -- or both in parallel, as here. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -@@ -32,13 +23,17 @@ - - #include "stdio-impl.h" - -+/* This file is not used on systems that have the __fseterr function, -+ namely musl libc. */ -+ - void - fseterr (FILE *fp) - { - /* Most systems provide FILE as a struct and the necessary bitmask in - , because they need it for implementing getc() and putc() as - fast macros. */ --#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ -+#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 -+ /* GNU libc, BeOS, Haiku, Linux libc5 */ - fp->_flags |= _IO_ERR_SEEN; - #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ - /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ -diff -ru libunistring-0.9.9.orig/lib/fseterr.h libunistring-0.9.9/lib/fseterr.h ---- libunistring-0.9.9.orig/lib/fseterr.h 2018-02-28 17:07:03.000000000 +0100 -+++ libunistring-0.9.9/lib/fseterr.h 2018-08-15 16:40:53.419266090 +0200 -@@ -1,20 +1,11 @@ - /* Set the error indicator of a stream. - Copyright (C) 2007, 2009-2018 Free Software Foundation, Inc. - -- This program is free software: you can redistribute it and/or -- modify it under the terms of either: -+ This program is free software: you can redistribute it and/or modify -+ it under the terms of the GNU General Public License as published by -+ the Free Software Foundation; either version 3 of the License, or -+ (at your option) any later version. - -- * the GNU Lesser General Public License as published by the Free -- Software Foundation; either version 3 of the License, or (at your -- option) any later version. -- -- or -- -- * the GNU General Public License as published by the Free -- Software Foundation; either version 2 of the License, or (at your -- option) any later version. -- -- or both in parallel, as here. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the diff --git a/SPECS/libunistring.spec b/SPECS/libunistring.spec deleted file mode 100644 index c439765..0000000 --- a/SPECS/libunistring.spec +++ /dev/null @@ -1,153 +0,0 @@ -# This spec file has been automatically updated -Version: 0.9.9 -Release: 3%{?dist} -Name: libunistring -Group: System Environment/Libraries -Summary: GNU Unicode string library -License: GPLv2+ or LGPLv3+ -Url: http://www.gnu.org/software/libunistring/ -Source0: http://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.xz -Patch0: fseterr-update-20180815.patch -Requires(post): info -Requires(preun): info -Provides: bundled(gnulib) - -%description -This portable C library implements Unicode string types in three flavours: -(UTF-8, UTF-16, UTF-32), together with functions for character processing -(names, classifications, properties) and functions for string processing -(iteration, formatted output, width, word breaks, line breaks, normalization, -case folding and regular expressions). - -%package devel -Group: Development/Libraries -Summary: GNU Unicode string library - development files -Requires: %{name} = %{version}-%{release} - -%description devel -Development files for programs using libunistring. - -%prep -%setup -q -%patch0 -p1 -b .fseterr-update - -%build -%configure --disable-static --disable-rpath -make %{?_smp_mflags} - -%install -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -rm -f $RPM_BUILD_ROOT/%{_infodir}/dir -rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}.la -# Move staged docs so not picked up by %%doc in main package -mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} __doc - -%files -%defattr(-,root,root,-) -%license COPYING COPYING.LIB -%doc AUTHORS NEWS README -%{_libdir}/%{name}.so.* - -%files devel -%defattr(-,root,root,-) -%doc HACKING DEPENDENCIES THANKS ChangeLog -%doc __doc/* -%{_infodir}/%{name}.info* -%{_libdir}/%{name}.so -%{_includedir}/unistring -%{_includedir}/*.h - -%ldconfig_scriptlets - -%post devel -/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : - -%preun devel -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : -fi - -%changelog -* Fri Aug 17 2018 Mike FABIAN - 0.9.9-3 -- Fix invalid license tag -- Resolves: rhbz#1611728 - -* Wed Aug 15 2018 Mike FABIAN - 0.9.9-2 -- update fseterr from current gnulib to make it build on RHEL-8 -- Resolves: rhbz#1611728 - -* Thu Mar 01 2018 Daiki Ueno - 0.9.9-1 -- Update to upstream 0.9.9 release - -* Wed Feb 07 2018 Fedora Release Engineering - 0.9.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Sat Feb 03 2018 Igor Gnatenko - 0.9.8-2 -- Switch to %%ldconfig_scriptlets - -* Sat Dec 2 2017 Daiki Ueno - 0.9.8-1 -- Update to 0.9.8 - -* Thu Aug 03 2017 Fedora Release Engineering - 0.9.7-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0.9.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 17 2017 Daiki Ueno - 0.9.7-1 -- Update to 0.9.7 -- Update license to "GPLv2+ or LGPLv2+" - -* Wed Feb 01 2017 Stephen Gallagher - 0.9.4-4 -- Add missing %%license macro - -* Thu Feb 04 2016 Fedora Release Engineering - 0.9.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 0.9.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Tue Sep 02 2014 Pádraig Brady - 0.9.4-1 -- Latest upstream - -* Sun Aug 17 2014 Fedora Release Engineering - 0.9.3-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0.9.3-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Aug 29 2013 Pádraig Brady 0.9.3-9 -- Adjust to avoid duplicate docs caused by %%doc macro changes in Fedora 20 - -* Sat Aug 03 2013 Fedora Release Engineering - 0.9.3-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 0.9.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Jul 19 2012 Fedora Release Engineering - 0.9.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Tue Jun 26 2012 Akira TAGOH - 0.9.3-5 -- Fix a typo in %%preun. (#737638) - -* Tue May 15 2012 Mikolaj Izdebski - 0.9.3-4 -- Add bundled(gnulib) provides - -* Fri Jan 13 2012 Fedora Release Engineering - 0.9.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Feb 08 2011 Fedora Release Engineering - 0.9.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sun May 23 2010 Pádraig Brady 0.9.3-1 -- Update to 0.9.3 - -* Thu Nov 19 2009 Pádraig Brady 0.9.1-3 -- Remove glibc-devel and texinfo build deps - -* Thu Nov 19 2009 Pádraig Brady 0.9.1-2 -- Changes as per initial review by panemade@gmail.com - -* Tue Nov 17 2009 Pádraig Brady 0.9.1-1 -- Initial version diff --git a/libunistring.spec b/libunistring.spec new file mode 100644 index 0000000..efa8f5e --- /dev/null +++ b/libunistring.spec @@ -0,0 +1,226 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 10; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# This spec file has been automatically updated +Version: 1.1 +Release: %{?autorelease}%{!?autorelease:1%{?dist}} +Name: libunistring +Summary: GNU Unicode string library +License: GPL-2.0-or-later OR LGPL-3.0-or-later +URL: https://www.gnu.org/software/libunistring/ +Source0: https://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.xz +BuildRequires: gcc +BuildRequires: make +Provides: bundled(gnulib) + +%description +This portable C library implements Unicode string types in three flavours: +(UTF-8, UTF-16, UTF-32), together with functions for character processing +(names, classifications, properties) and functions for string processing +(iteration, formatted output, width, word breaks, line breaks, normalization, +case folding and regular expressions). + +%package devel +Summary: GNU Unicode string library - development files +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files for programs using libunistring. + +%prep +%autosetup + +%build +%configure --disable-static --disable-rpath +%make_build + +%install +%make_install +rm -f $RPM_BUILD_ROOT%{_infodir}/dir +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la +# Move staged docs so not picked up by %%doc in main package +mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} __doc + +%files +%license COPYING COPYING.LIB +%doc AUTHORS NEWS README +%{_libdir}/%{name}.so.5* + +%files devel +%doc HACKING DEPENDENCIES THANKS ChangeLog +%doc __doc/* +%{_infodir}/%{name}.info* +%{_libdir}/%{name}.so +%{_includedir}/unistring +%{_includedir}/*.h + +%ldconfig_scriptlets + +%changelog +## START: Generated by rpmautospec +* Tue Oct 29 2024 Troy Dawson - 1.1-10 +- Bump release for October 2024 mass rebuild: + +* Mon Jun 24 2024 Troy Dawson - 1.1-9 +- Bump release for June 2024 mass rebuild + +* Tue Apr 30 2024 Pooja Yadav - 1.1-8 +- adding gating.yaml configuration + +* Thu Jan 25 2024 Fedora Release Engineering - 1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Aug 21 2023 Parag Nemade - 1.1-5 +- Migrate to SPDX license expression + +* Thu Jul 20 2023 Fedora Release Engineering - 1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 08 2022 Stephen Gallagher - 1.1-2 +- Specify the soname explicitly + +* Thu Dec 08 2022 Daiki Ueno - 1.1-1 +- Update to upstream 1.1 release + +* Thu Jul 21 2022 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Jan 23 2022 Daiki Ueno - 1.0-1 +- Update to upstream 1.0 release +- Switch to %%autosetup + +* Thu Jan 20 2022 Fedora Release Engineering - 0.9.10-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.9.10-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jun 21 2021 Mike FABIAN - 0.9.10-13 +- Related rhbz#1938800: Fix CI tests and convert them to tmt + +* Mon Jun 14 2021 Mike FABIAN - 0.9.10-12 +- Fix memory leak in vasnprint. Resolves: rhbz#1938800 + (Backported from upstream: https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=4d288a80bf7ebe29334b9805cdcc70eacb6059c1) +- Fix spelling in license GPLV2+ -> GPLv2+ + +* Tue Jan 26 2021 Fedora Release Engineering - 0.9.10-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.9.10-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 13 2020 Tom Stellard - 0.9.10-8 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + +* Wed Jan 29 2020 Fedora Release Engineering - 0.9.10-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 0.9.10-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.9.10-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 31 2018 Florian Weimer - 0.9.10-4 +- Rebuild with fixed binutils + +* Sat Jul 28 2018 Igor Gnatenko - 0.9.10-3 +- Replace obsolete scriptlets + +* Fri Jul 13 2018 Fedora Release Engineering - 0.9.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon May 28 2018 Daiki Ueno - 0.9.10-1 +- Update to upstream 0.9.10 release + +* Thu Mar 01 2018 Daiki Ueno - 0.9.9-1 +- Update to upstream 0.9.9 release + +* Wed Feb 07 2018 Fedora Release Engineering - 0.9.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 0.9.8-2 +- Switch to %%ldconfig_scriptlets + +* Sat Dec 2 2017 Daiki Ueno - 0.9.8-1 +- Update to 0.9.8 + +* Thu Aug 03 2017 Fedora Release Engineering - 0.9.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.9.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 17 2017 Daiki Ueno - 0.9.7-1 +- Update to 0.9.7 +- Update license to "GPLv2+ or LGPLv2+" + +* Wed Feb 01 2017 Stephen Gallagher - 0.9.4-4 +- Add missing %%license macro + +* Thu Feb 04 2016 Fedora Release Engineering - 0.9.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.9.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Sep 02 2014 Pádraig Brady - 0.9.4-1 +- Latest upstream + +* Sun Aug 17 2014 Fedora Release Engineering - 0.9.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.9.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Aug 29 2013 Pádraig Brady 0.9.3-9 +- Adjust to avoid duplicate docs caused by %%doc macro changes in Fedora 20 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.9.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.9.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.9.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 26 2012 Akira TAGOH - 0.9.3-5 +- Fix a typo in %%preun. (#737638) + +* Tue May 15 2012 Mikolaj Izdebski - 0.9.3-4 +- Add bundled(gnulib) provides + +* Fri Jan 13 2012 Fedora Release Engineering - 0.9.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.9.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun May 23 2010 Pádraig Brady 0.9.3-1 +- Update to 0.9.3 + +* Thu Nov 19 2009 Pádraig Brady 0.9.1-3 +- Remove glibc-devel and texinfo build deps + +* Thu Nov 19 2009 Pádraig Brady 0.9.1-2 +- Changes as per initial review by panemade@gmail.com + +* Tue Nov 17 2009 Pádraig Brady 0.9.1-1 +- Initial version + +## END: Generated by rpmautospec diff --git a/sources b/sources new file mode 100644 index 0000000..ec47161 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libunistring-1.1.tar.xz) = 01a4267bbd301ea5c389b17ee918ae5b7d645da8b2c6c6f0f004ff2dead9f8e50cda2c6047358890a5fceadc8820ffc5154879193b9bb8970f3fb1fea1f411d6