libraqm/libraqm.spec
2021-03-03 17:31:11 +08:00

65 lines
1.3 KiB
RPMSpec

Name: libraqm
Version: 0.7.0
Release: 1
License: MIT
Summary: Complex Textlayout Library
URL: https://github.com/HOST-Oman/libraqm
Source: https://github.com/HOST-Oman/libraqm/releases/download/v%{version}/raqm-%{version}.tar.gz
BuildRequires: python3 freetype-devel harfbuzz-devel fribidi-devel gtk-doc
%description
Library that encapsulates the logic for complex
text layout and provides a convenient API.
%package devel
Summary: Complex Textlayout Library
Requires: libraqm%{?_isa} = %{version}-%{release}
%description devel
Library that encapsulates the logic for complex
text layout and provides a convenient API.
%package help
Summary: Libraqm Documentation
BuildArch: noarch
%description help
This package contains documentation files for raqm.
%prep
%autosetup -n raqm-%{version} -p1
sed s:python:%{__python3}:g -i tests/Makefile.in
%configure --enable-gtk-doc
%build
%make_build
%check
export LC_ALL=C.utf8
make check
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.{la,a}
%ldconfig_scriptlets devel
%files
%license COPYING
%{_libdir}/libraqm.so.*
%files devel
%{_includedir}/raqm.h
%{_includedir}/raqm-version.h
%{_libdir}/libraqm.so
%{_libdir}/pkgconfig/raqm.pc
%files help
%doc AUTHORS NEWS README
%{_datadir}/gtk-doc/html/raqm
%changelog
* Tue Mar 2 2021 wangye <wangye70@huawei.com> - 0.7.0-1
- package init