2135d8
Summary: Library for processing UTF-8 encoded Unicode strings
2135d8
Name:    utf8proc
2135d8
Version: 2.1.1
2135d8
Release: 5%{?dist}
2135d8
License: Unicode and MIT
2135d8
Group:   System Environment/Libraries
2135d8
URL:     http://julialang.org/utf8proc/
2135d8
Source:  https://github.com/JuliaLang/utf8proc/archive/v%{version}.tar.gz#/%{name}-v%{version}.tar.gz
2135d8
BuildRequires: gcc
2135d8
2135d8
%description
2135d8
utf8proc is a library for processing UTF-8 encoded Unicode strings.
2135d8
Some features are Unicode normalization, stripping of default ignorable
2135d8
characters, case folding and detection of grapheme cluster boundaries.
2135d8
A special character mapping is available, which converts for example
2135d8
the characters “Hyphen” (U+2010), “Minus” (U+2212) and “Hyphen-Minus
2135d8
(U+002D, ASCII Minus) all into the ASCII minus sign, to make them
2135d8
equal for comparisons.
2135d8
2135d8
The currently supported Unicode version is 9.0.0.
2135d8
2135d8
This package only contains the C library.
2135d8
2135d8
%package devel
2135d8
Summary:  Header files, libraries and development documentation for %{name}
2135d8
Group:    Development/Libraries
2135d8
Requires: %{name}%{?_isa} = %{version}-%{release}
2135d8
2135d8
%description devel
2135d8
Contains header files for developing applications that use the %{name}
2135d8
library.
2135d8
2135d8
The documentation for the C library is found in the utf8proc.h header file.
2135d8
"utf8proc_map" is most likely the function you will be using for mapping UTF-8
2135d8
strings, unless you want to allocate memory yourself.
2135d8
2135d8
%prep
2135d8
%setup -qn %{name}-%{version}
2135d8
# Disable slow tests and tests which require network access
2135d8
sed -i '/-C bench/d;/\ttest.* data/d' Makefile
2135d8
touch data/NormalizationTest.txt data/GraphemeBreakTest.txt
2135d8
2135d8
%build
2135d8
%set_build_flags
2135d8
make %{?_smp_mflags}
2135d8
2135d8
%check
2135d8
make %{?_smp_mflags} check
2135d8
2135d8
%install
2135d8
make install DESTDIR=%{buildroot} prefix=%{_prefix} includedir=%{_includedir} libdir=%{_libdir}
2135d8
rm %{buildroot}%{_libdir}/libutf8proc.a
2135d8
2135d8
%post -p /sbin/ldconfig
2135d8
%postun -p /sbin/ldconfig
2135d8
2135d8
%files
2135d8
%doc LICENSE.md NEWS.md README.md
2135d8
%{_libdir}/libutf8proc.so.*
2135d8
2135d8
%files devel
2135d8
%{_includedir}/utf8proc.h
2135d8
%{_libdir}/libutf8proc.so
2135d8
2135d8
%changelog
2135d8
* Mon Aug 05 2019 Lubos Uhliarik <luhliari@redhat.com> - 2.1.1-5
2135d8
- Resolves: #1696354 - Ensure modular RPM upgrade path
2135d8
2135d8
* Mon Jul 23 2018 Joe Orton <jorton@redhat.com> - 2.1.1-4
2135d8
- update License tag to Unicode and MIT
2135d8
- BR gcc (#1606627)
2135d8
- run minimal tests
2135d8
2135d8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2135d8
2135d8
* Mon Apr 30 2018  Milan Bouchet-Valat <nalimilan@club.fr> - 2.1.1-2
2135d8
- Fix missing build flags (RHBZ #1573115).
2135d8
2135d8
* Fri Apr 27 2018  Milan Bouchet-Valat <nalimilan@club.fr> - 2.1.1-1
2135d8
- New upstream release.
2135d8
2135d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2135d8
2135d8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2135d8
2135d8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2135d8
2135d8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2135d8
2135d8
* Sat Jan 7 2017  Milan Bouchet-Valat <nalimilan@club.fr> - 2.1.0
2135d8
- New upstream release.
2135d8
2135d8
* Thu Sep 15 2016  Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.2-1
2135d8
- New upstream release.
2135d8
2135d8
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2135d8
2135d8
* Tue Nov 03 2015  Milan Bouchet-Valat <nalimilan@club.fr> - 1.3.1-1
2135d8
- New upstream release.
2135d8
2135d8
* Tue Aug 11 2015 Milan Bouchet-Valat <nalimilan@club.fr> - 1.3-1
2135d8
- New upstream release.
2135d8
2135d8
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2135d8
2135d8
* Sat Mar 28 2015 Milan Bouchet-Valat <nalimilan@club.fr> - 1.2-1
2135d8
- New upstream release.
2135d8
2135d8
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-5
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2135d8
2135d8
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-4
2135d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2135d8
2135d8
* Sun May 4 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 1.1.6-3
2135d8
- Add downstream SONAME version 0.1 since upstream does not set one.
2135d8
2135d8
* Fri Feb 14 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 1.1.6-2
2135d8
- Fix package Group.
2135d8
- Do not remove build root on install phase.
2135d8
2135d8
* Sun Jan 26 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 1.1.6-1
2135d8
- Adapt package to Fedora.
2135d8
- Updated to release 1.1.6.
2135d8
2135d8
* Sat Aug 29 2009 Dries Verachtert <dries@ulyssis.org> - 1.1.4-1 - 7981/dag
2135d8
- Updated to release 1.1.4.
2135d8
2135d8
* Sun Jul 29 2007 Dries Verachtert <dries@ulyssis.org> - 1.1.2-1
2135d8
- Updated to release 1.1.2.
2135d8
2135d8
* Mon Jul 23 2007 Dries Verachtert <dries@ulyssis.org> - 1.1.1-1
2135d8
- Updated to release 1.1.1.
2135d8
2135d8
* Tue Apr 17 2007 Dries Verachtert <dries@ulyssis.org> - 1.0.3-1
2135d8
- Initial package.