%global mingw_build_ucrt64 1 %{?mingw_package_header} # Upstream tags releases with underscores rather than dots. %global tagver 6_1 Name: mingw-libunibreak Version: 6.1 Release: 1%{?dist} Summary: MinGW Windows Unicode line and word breaking library License: Zlib URL: https://github.com/adah1972/libunibreak Source0: https://github.com/adah1972/libunibreak/releases/download/libunibreak_%{tagver}/libunibreak-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-binutils BuildRequires: ucrt64-filesystem >= 95 BuildRequires: ucrt64-gcc BuildRequires: ucrt64-binutils %description libunibreak implements the line breaking and word breaking algorithms of Unicode Standard Annex 14 and Annex 29, along with grapheme cluster boundaries and East Asian width lookups. # Win32 %package -n mingw32-libunibreak Summary: MinGW Windows Unicode line and word breaking library %description -n mingw32-libunibreak libunibreak implements the Unicode line, word and grapheme breaking algorithms. %package -n mingw32-libunibreak-static Summary: Static version of the MinGW Windows libunibreak library Requires: mingw32-libunibreak = %{version}-%{release} %description -n mingw32-libunibreak-static Static version of the MinGW Windows libunibreak library. # Win64 %package -n mingw64-libunibreak Summary: MinGW Windows Unicode line and word breaking library %description -n mingw64-libunibreak libunibreak implements the Unicode line, word and grapheme breaking algorithms. %package -n mingw64-libunibreak-static Summary: Static version of the MinGW Windows libunibreak library Requires: mingw64-libunibreak = %{version}-%{release} %description -n mingw64-libunibreak-static Static version of the MinGW Windows libunibreak library. # UCRT64 %package -n ucrt64-libunibreak Summary: MinGW Windows Unicode line and word breaking library %description -n ucrt64-libunibreak libunibreak implements the Unicode line, word and grapheme breaking algorithms. %package -n ucrt64-libunibreak-static Summary: Static version of the MinGW Windows libunibreak library Requires: ucrt64-libunibreak = %{version}-%{release} %description -n ucrt64-libunibreak-static Static version of the MinGW Windows libunibreak library. %{?mingw_debug_package} %prep %autosetup -p1 -n libunibreak-%{version} %build %mingw_configure %mingw_make_build %install %mingw_make_install find %{buildroot} -name "*.la" -delete # Win32 %files -n mingw32-libunibreak %license LICENCE %{mingw32_bindir}/libunibreak-6.dll %{mingw32_includedir}/eastasianwidthdef.h %{mingw32_includedir}/graphemebreak.h %{mingw32_includedir}/linebreak.h %{mingw32_includedir}/linebreakdef.h %{mingw32_includedir}/unibreakbase.h %{mingw32_includedir}/unibreakdef.h %{mingw32_includedir}/wordbreak.h %{mingw32_libdir}/libunibreak.dll.a %{mingw32_libdir}/pkgconfig/libunibreak.pc %files -n mingw32-libunibreak-static %license LICENCE # Compatibility name from when the project was called liblinebreak. %{mingw32_libdir}/liblinebreak.a %{mingw32_libdir}/libunibreak.a # Win64 %files -n mingw64-libunibreak %license LICENCE %{mingw64_bindir}/libunibreak-6.dll %{mingw64_includedir}/eastasianwidthdef.h %{mingw64_includedir}/graphemebreak.h %{mingw64_includedir}/linebreak.h %{mingw64_includedir}/linebreakdef.h %{mingw64_includedir}/unibreakbase.h %{mingw64_includedir}/unibreakdef.h %{mingw64_includedir}/wordbreak.h %{mingw64_libdir}/libunibreak.dll.a %{mingw64_libdir}/pkgconfig/libunibreak.pc %files -n mingw64-libunibreak-static %license LICENCE # Compatibility name from when the project was called liblinebreak. %{mingw64_libdir}/liblinebreak.a %{mingw64_libdir}/libunibreak.a # UCRT64 %files -n ucrt64-libunibreak %license LICENCE %{ucrt64_bindir}/libunibreak-6.dll %{ucrt64_includedir}/eastasianwidthdef.h %{ucrt64_includedir}/graphemebreak.h %{ucrt64_includedir}/linebreak.h %{ucrt64_includedir}/linebreakdef.h %{ucrt64_includedir}/unibreakbase.h %{ucrt64_includedir}/unibreakdef.h %{ucrt64_includedir}/wordbreak.h %{ucrt64_libdir}/libunibreak.dll.a %{ucrt64_libdir}/pkgconfig/libunibreak.pc %files -n ucrt64-libunibreak-static %license LICENCE # Compatibility name from when the project was called liblinebreak. %{ucrt64_libdir}/liblinebreak.a %{ucrt64_libdir}/libunibreak.a %changelog * Tue Sep 08 2026 Jack Greiner - 6.1-1 - Add initial mingw libunibreak package