Name libunistring
Description GNU Unicode string library
Version 1.1-9.fc42
Package Base libunistring
Homepage https://www.gnu.org/software/libunistring/
Maintainers ['pbrady']
Contributors ['ueno']
Distro-repo https://src.fedoraproject.org/rpms/libunistring/tree/f42
Sources ['https://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.xz']
Dependencies ['libc.so.6', 'rtld']
Optional-Dependencies []
Build-Dependencies ['gcc', 'make']
Provides ['bundled(gnulib)', 'libunistring', 'libunistring(x86-64)', 'libunistring.so.5()(64bit)']
Builddate 20-01-2025 09:16:53
Architecture x86_64
Distro-Version 42
Licenses ['GPL-2.0-or-later OR LGPL-3.0-or-later']
Hash c431ce84ef7146a27c2a49d5c6d9333c9dbec96bc31921f5e5006256799438a1
# 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
%autochangelog