63 lines
1.4 KiB
RPMSpec
63 lines
1.4 KiB
RPMSpec
|
|
Name: utf8proc
|
||
|
|
Version: 2.1.1
|
||
|
|
Release: 6
|
||
|
|
Summary: A library provides Unicode normalization
|
||
|
|
License: MIT
|
||
|
|
URL: https://juliastrings.github.io/utf8proc/
|
||
|
|
Source0: https://github.com/JuliaStrings/utf8proc/archive/v%{version}.tar.gz#/%{name}-v%{version}.tar.gz
|
||
|
|
|
||
|
|
BuildRequires: gcc gdb
|
||
|
|
|
||
|
|
%description
|
||
|
|
Utf8proc is a small, clean C library that provides Unicode normalization, case-folding,
|
||
|
|
and other operations for data in the UTF-8 encoding, supporting Unicode version 12.1.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for %{name}
|
||
|
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
This is the development files for %{name}.
|
||
|
|
|
||
|
|
%package_help
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{name}-%{version} -p1
|
||
|
|
#solve the problem during the check
|
||
|
|
sed -i '/-C bench/d;/\ttest.* data/d' Makefile
|
||
|
|
touch data/NormalizationTest.txt data/GraphemeBreakTest.txt
|
||
|
|
|
||
|
|
%build
|
||
|
|
%make_build CFLAGS="%{optflags}"
|
||
|
|
|
||
|
|
%install
|
||
|
|
%make_install includedir=%{_includedir} libdir=%{_libdir}
|
||
|
|
|
||
|
|
%check
|
||
|
|
make check
|
||
|
|
|
||
|
|
%files
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%license LICENSE.md
|
||
|
|
%{_libdir}/lib%{name}.so.*
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%{_includedir}/%{name}.h
|
||
|
|
%{_libdir}/lib%{name}.so
|
||
|
|
%exclude %{_libdir}/*.a
|
||
|
|
|
||
|
|
%files help
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc README.md NEWS.md lump.md
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 2.1.1-6
|
||
|
|
- Type:enhancement
|
||
|
|
- ID:NA
|
||
|
|
- SUG:NA
|
||
|
|
- DESC:move the license
|
||
|
|
|
||
|
|
* Tue Aug 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-5
|
||
|
|
- Package init
|