3 %bcond_without apidocs # API documentation
4 %bcond_without static_libs # static library
5 %bcond_without tests # unit tests
7 Summary: Library for complex text layout
8 Summary(pl.UTF-8): Biblioteka do skomplikowanego układu tekstu
14 #Source0Download: https://github.com/HOST-Oman/libraqm/releases
15 Source0: https://github.com/HOST-Oman/libraqm/releases/download/v%{version}/raqm-%{version}.tar.gz
16 # Source0-md5: ba4a3deb05ad089df813b2d1057b1dd8
17 URL: https://github.com/HOST-Oman/libraqm
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake >= 1:1.11
20 # pkgconfig(freetype2) >= 12.0.6
21 BuildRequires: freetype-devel >= 1:2.4.2
22 BuildRequires: fribidi-devel
23 %{?with_tests:BuildRequires: glib2-devel >= 2.0}
24 %if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
25 BuildRequires: glibc-localedb-all
27 BuildRequires: gtk-doc >= 1.14
28 BuildRequires: harfbuzz-devel
29 BuildRequires: libtool >= 2:2
30 BuildRequires: pkgconfig >= 1:0.20
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Raqm is a small library that encapsulates the logic for complex text
35 layout and provide a convenient API.
37 It currently provides bidirectional text support (using FriBiDi),
38 shaping (using HarfBuzz), and proper script itemization. As a result,
39 Raqm can support most writing systems covered by Unicode.
41 %description -l pl.UTF-8
42 Raqm to mała biblioteka opakowująca logikę złożonego układu tekstu i
43 udostępniająca wygodne API.
45 Obecnie zapewnia obsługę tekstu dwukierunkowego (przy użyciu FriBiDi),
46 formowanie (przy użyciu HarfBuzz) i właściwe wyszczególnienie pisma.
47 W efekcie Raqm potrafi obsłużyć większość systemów pisma pokrytych
51 Summary: Header files for Raqm library
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Raqm
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
55 Requires: freetype-devel >= 1:2.4.2
56 Requires: fribidi-devel
57 Requires: harfbuzz-devel
60 Header files for Raqm library.
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe biblioteki Raqm.
66 Summary: Static Raqm library
67 Summary(pl.UTF-8): Statyczna biblioteka Raqm
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
74 %description static -l pl.UTF-8
75 Statyczna biblioteka Raqm.
78 Summary: API documentation for Raqm library
79 Summary(pl.UTF-8): Dokumentacja API biblioteki Raqm
81 %if "%{_rpmversion}" >= "5"
86 API documentation for Raqm library.
88 %description apidocs -l pl.UTF-8
89 Dokumentacja API biblioteki Raqm.
92 %setup -q -n raqm-%{version}
95 # rebuild ac/am for as-needed to work
102 --disable-silent-rules \
103 %{!?with_static_libs:--disable-static} \
104 --with-html-dir=%{_gtkdocdir}
113 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
118 # obsoleted by pkg-config
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libraqm.la
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS COPYING NEWS README
130 %attr(755,root,root) %{_libdir}/libraqm.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libraqm.so.0
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libraqm.so
136 %{_includedir}/raqm.h
137 %{_pkgconfigdir}/raqm.pc
139 %if %{with static_libs}
141 %defattr(644,root,root,755)
147 %defattr(644,root,root,755)