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