]> git.pld-linux.org Git - packages/libraqm.git/blob - libraqm.spec
dd57c55f7caa76c8839d2fa47c886f757a819f4d
[packages/libraqm.git] / libraqm.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  static_libs     # static library
5 %bcond_without  tests           # unit tests
6 #
7 Summary:        Library for complex text layout
8 Summary(pl.UTF-8):      Biblioteka do skomplikowanego układu tekstu
9 Name:           libraqm
10 Version:        0.5.0
11 Release:        2
12 License:        MIT
13 Group:          Libraries
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
26 %endif
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)
32
33 %description
34 Raqm is a small library that encapsulates the logic for complex text
35 layout and provide a convenient API.
36
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.
40
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.
44
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
48 przez Unikod.
49
50 %package devel
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
58
59 %description devel
60 Header files for Raqm library.
61
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe biblioteki Raqm.
64
65 %package static
66 Summary:        Static Raqm library
67 Summary(pl.UTF-8):      Statyczna biblioteka Raqm
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 Static Raqm library.
73
74 %description static -l pl.UTF-8
75 Statyczna biblioteka Raqm.
76
77 %package apidocs
78 Summary:        API documentation for Raqm library
79 Summary(pl.UTF-8):      Dokumentacja API biblioteki Raqm
80 Group:          Documentation
81 %if "%{_rpmversion}" >= "5"
82 BuildArch:      noarch
83 %endif
84
85 %description apidocs
86 API documentation for Raqm library.
87
88 %description apidocs -l pl.UTF-8
89 Dokumentacja API biblioteki Raqm.
90
91 %prep
92 %setup -q -n raqm-%{version}
93
94 %build
95 # rebuild ac/am for as-needed to work
96 %{__libtoolize}
97 %{__aclocal} -I m4
98 %{__autoconf}
99 %{__autoheader}
100 %{__automake}
101 %configure \
102         --disable-silent-rules \
103         %{!?with_static_libs:--disable-static} \
104         --with-html-dir=%{_gtkdocdir}
105 %{__make}
106
107 %if %{with tests}
108 LC_ALL=C.UTF-8 \
109 %{__make} check
110 %endif
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114
115 %{__make} install \
116         DESTDIR=$RPM_BUILD_ROOT
117
118 # obsoleted by pkg-config
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libraqm.la
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files
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
132
133 %files devel
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libraqm.so
136 %{_includedir}/raqm.h
137 %{_pkgconfigdir}/raqm.pc
138
139 %if %{with static_libs}
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/libraqm.a
143 %endif
144
145 %if %{with apidocs}
146 %files apidocs
147 %defattr(644,root,root,755)
148 %{_gtkdocdir}/raqm
149 %endif
This page took 0.279278 seconds and 2 git commands to generate.