2009-12-16 16:15:38 +01:00
|
|
|
#
|
2011-10-02 10:16:38 +02:00
|
|
|
# spec file for package libunistring
|
2009-12-16 16:15:38 +01:00
|
|
|
#
|
2023-04-20 09:31:54 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2009-12-16 16:15:38 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-08 10:33:32 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-12-16 16:15:38 +01:00
|
|
|
#
|
2013-12-20 12:31:03 +01:00
|
|
|
|
|
|
|
|
2022-10-18 12:00:08 +02:00
|
|
|
%define sover 5
|
2015-07-10 12:27:50 +02:00
|
|
|
Name: libunistring
|
2022-10-18 12:00:08 +02:00
|
|
|
Version: 1.1
|
2012-01-30 14:14:32 +01:00
|
|
|
Release: 0
|
2009-12-16 16:15:38 +01:00
|
|
|
Summary: GNU Unicode string library
|
2023-04-20 09:31:54 +02:00
|
|
|
License: GPL-3.0-or-later OR LGPL-3.0-or-later
|
2012-01-30 14:14:32 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-04-11 20:19:23 +02:00
|
|
|
URL: https://www.gnu.org/software/libunistring/
|
2015-02-20 08:57:58 +01:00
|
|
|
Source0: http://ftp.gnu.org/gnu/libunistring/libunistring-%{version}.tar.xz
|
2015-07-10 12:27:50 +02:00
|
|
|
Source1: http://ftp.gnu.org/gnu/libunistring/libunistring-%{version}.tar.xz.sig
|
2022-04-11 20:19:23 +02:00
|
|
|
Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=1871/%{name}.keyring
|
2017-01-03 09:47:46 +01:00
|
|
|
Source3: baselibs.conf
|
2013-12-20 12:31:03 +01:00
|
|
|
|
2009-12-16 16:15:38 +01:00
|
|
|
%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
|
2018-03-05 09:49:44 +01:00
|
|
|
Summary: Development files for the GNU Unicode string library
|
2012-01-30 14:14:32 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-10-25 16:28:02 +02:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2009-12-16 16:15:38 +01:00
|
|
|
|
|
|
|
%description devel
|
2015-07-10 12:27:50 +02:00
|
|
|
Development files for programs using libunistring and documentation
|
2009-12-16 16:15:38 +01:00
|
|
|
for UniString library.
|
|
|
|
|
2022-10-18 12:00:08 +02:00
|
|
|
%package -n %{name}%{sover}
|
2018-03-05 09:49:44 +01:00
|
|
|
Summary: GNU Unicode string library
|
|
|
|
Group: System/Libraries
|
2009-12-16 16:15:38 +01:00
|
|
|
|
2022-10-18 12:00:08 +02:00
|
|
|
%description -n %{name}%{sover}
|
2009-12-16 16:15:38 +01:00
|
|
|
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).
|
|
|
|
|
|
|
|
%prep
|
2022-04-11 20:19:23 +02:00
|
|
|
%autosetup -p1
|
2009-12-16 16:15:38 +01:00
|
|
|
|
|
|
|
%build
|
2015-07-10 12:27:50 +02:00
|
|
|
%configure --disable-static --disable-rpath --docdir=%{_docdir}/%{name}
|
2022-04-11 20:19:23 +02:00
|
|
|
%make_build
|
2009-12-16 16:15:38 +01:00
|
|
|
|
|
|
|
%install
|
2022-10-18 12:00:08 +02:00
|
|
|
%make_install
|
2015-07-10 12:27:50 +02:00
|
|
|
cp AUTHORS NEWS README HACKING DEPENDENCIES THANKS ChangeLog %{buildroot}/%{_docdir}/%{name}
|
|
|
|
rm -f %{buildroot}/%{_infodir}/dir
|
|
|
|
rm -f %{buildroot}/%{_libdir}/libunistring.la
|
2009-12-16 16:15:38 +01:00
|
|
|
|
|
|
|
%check
|
2011-10-02 10:16:38 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2017-05-05 09:58:43 +02:00
|
|
|
# test-malloca seem not to be suitable for ix86 obs worker
|
|
|
|
# (locally passes, obs worker stucks -- )
|
2018-05-28 16:37:34 +02:00
|
|
|
%ifarch %{ix86}
|
2017-05-05 13:09:36 +02:00
|
|
|
sed -i 's:50000:50:g' tests/test-malloca.c
|
2017-05-05 09:58:43 +02:00
|
|
|
%endif
|
2017-08-18 12:01:09 +02:00
|
|
|
# do not run tests in parallel, it stucks randomly
|
2022-04-11 20:19:23 +02:00
|
|
|
%make_build check #
|
2011-10-02 10:16:38 +02:00
|
|
|
%endif
|
2009-12-16 16:15:38 +01:00
|
|
|
|
2022-10-18 12:00:08 +02:00
|
|
|
%files -n %{name}%{sover}
|
2018-05-28 16:37:34 +02:00
|
|
|
%license COPYING*
|
2022-10-18 12:00:08 +02:00
|
|
|
%{_libdir}/libunistring.so.%{sover}{,.*}
|
2009-12-16 16:15:38 +01:00
|
|
|
|
|
|
|
%files devel
|
2018-05-28 16:37:34 +02:00
|
|
|
%license COPYING*
|
2015-07-10 12:27:50 +02:00
|
|
|
%{_docdir}/%{name}
|
2018-05-28 16:37:34 +02:00
|
|
|
%{_infodir}/libunistring.info%{?ext_info}
|
2009-12-16 16:15:38 +01:00
|
|
|
%{_libdir}/libunistring.so
|
|
|
|
%{_includedir}/unistring
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
2022-10-18 12:00:08 +02:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2009-12-16 16:15:38 +01:00
|
|
|
|
|
|
|
%changelog
|