3 %bcond_without static_libs # don't build static libraries
5 Summary: Library for handling OpenType Font (OTF)
6 Summary(pl.UTF-8): Biblioteka do obsługi fontów OpenType (OTF)
12 Source0: http://download.savannah.gnu.org/releases/m17n/%{name}-%{version}.tar.gz
13 # Source0-md5: 9b0b708ba5de53bf83e1cb09c6a6e100
14 URL: http://www.nongnu.org/m17n/
15 BuildRequires: freetype-devel >= 2
16 BuildRequires: xorg-lib-libX11-devel
17 BuildRequires: xorg-lib-libXt-devel
18 BuildRequires: xorg-lib-libXaw-devel
19 BuildRequires: xorg-lib-libXmu-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The library "libotf" provides the following facilites:
24 - read Open Type Layout Tables from OTF file. Currently these
25 tables are supported; head, name, cmap, GDEF, GSUB, and GPOS.
26 - convert a Unicode character sequence to a glyph code sequence by
27 using the above tables.
29 The combination of libotf and the FreeType library (Ver.2) realizes
30 CTL (complex text layout) by OpenType fonts.
32 %description -l pl.UTF-8
33 Biblioteka libotf zapewnia następującą funkcjonalność:
34 - odczyt tablic Open Type Layout z plików OTF; obecnie obsługiwane
35 są następujące tablice: head, name, cmap, GDEF, GSUB i GPOS.
36 - konwersja sekwencji znaków unikodowych na sekwencje kodów glifów
37 z użyciem tych tablic.
40 Summary: Header files for libotf library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libotf
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: freetype-devel >= 2
47 Header files for libotf library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libotf.
53 Summary: Static libotf library
54 Summary(pl.UTF-8): Statyczna biblioteka libotf
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static libotf library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libotf.
69 %{!?with_static_libs:--disable-static}
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libotf.la
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog NEWS README
90 %attr(755,root,root) %{_bindir}/otfdump
91 %attr(755,root,root) %{_bindir}/otflist
92 %attr(755,root,root) %{_bindir}/otftobdf
93 %attr(755,root,root) %{_bindir}/otfview
94 %attr(755,root,root) %{_libdir}/libotf.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libotf.so.1
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/libotf-config
100 %attr(755,root,root) %{_libdir}/libotf.so
102 %{_pkgconfigdir}/libotf.pc
104 %if %{with static_libs}
106 %defattr(644,root,root,755)