SHA256
1
0
forked from pool/libunistring
libunistring/libunistring.spec
Ciaran Farrell 2523263497 Accepting request 211832 from openSUSE:Factory:PowerLE
The "gnulib" package contains a number of floating-point test cases
that do not work correctly with the PowerPC long double ("double double")
format.  These tests "accidentally" succeeded anyway in the big-endian
variant, but are now actually failing in little-endian mode.

As is usual for gnulib, those tests end up copied into the source code
of various packages that use gnulib, including coreutils, findutils,
grep, and libunistring.

A patch to fix the tests for ppc64le has been submitted to upstream
to the bug-gnulib mailing list.  We'll work with upstream of the
other affected packages to make sure the copies are refreshed.

- libunistring-gnulib-ppc64le.patch: Fix imported gnulib long double
  math tests for little-endian PowerPC.

OBS-URL: https://build.opensuse.org/request/show/211832
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libunistring?expand=0&rev=18
2013-12-20 11:31:03 +00:00

109 lines
3.4 KiB
RPMSpec

#
# spec file for package libunistring
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libunistring
%define lname libunistring0
Version: 0.9.3
Release: 0
Summary: GNU Unicode string library
License: LGPL-3.0+ and GPL-3.0+
Group: Development/Libraries/C and C++
Url: http://www.gnu.org/software/libunistring/
Source0: libunistring-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Fix imported gnulib long double math tests for little-endian PowerPC
Patch1: libunistring-gnulib-ppc64le.patch
%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
Group: Development/Libraries/C and C++
Requires: %lname = %version
Requires: info
# Obsoletes added in 12.2
Obsoletes: %name < %version-%release
Provides: %name = %version-%release
%description devel
Development files for programs using libunistring and documentation
for UniString library.
%package -n %lname
Summary: GNU Unicode string library - development files
Group: Development/Libraries/C and C++
%description -n %lname
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
%setup -q
%patch1 -p1
%build
%configure --disable-static --disable-rpath --docdir=%_docdir/%name
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
cp AUTHORS NEWS README HACKING DEPENDENCIES THANKS ChangeLog $RPM_BUILD_ROOT/%{_docdir}/%{name}
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
rm -f $RPM_BUILD_ROOT/%{_libdir}/libunistring.la
%check
%if ! 0%{?qemu_user_space_build}
make check %{?_smp_mflags}
%endif
%files -n %lname
%defattr(-,root,root)
%{_libdir}/libunistring.so.0*
%files devel
%defattr(-,root,root)
%_docdir/%name
%{_infodir}/libunistring.info*
%{_libdir}/libunistring.so
%{_includedir}/unistring
%{_includedir}/*.h
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%post devel
/sbin/install-info %{_infodir}/libunistring.info.gz %{_infodir}/dir || :
%preun devel
if [ "$1" = 0 ]; then
/sbin/install-info --delete %{_infodir}/libunistring.info.gz %{_infodir}/dir || :
fi
%changelog