]> git.pld-linux.org Git - packages/libotf.git/blob - libotf.spec
- updated to 0.9.16 (note: new soname)
[packages/libotf.git] / libotf.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Library for handling OpenType Font (OTF)
6 Summary(pl.UTF-8):      Biblioteka do obsługi fontów OpenType (OTF)
7 Name:           libotf
8 Version:        0.9.16
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
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)
21
22 %description
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.
28
29 The combination of libotf and the FreeType library (Ver.2) realizes
30 CTL (complex text layout) by OpenType fonts.
31
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.
38
39 %package devel
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
45
46 %description devel
47 Header files for libotf library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libotf.
51
52 %package static
53 Summary:        Static libotf library
54 Summary(pl.UTF-8):      Statyczna biblioteka libotf
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 Static libotf library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libotf.
63
64 %prep
65 %setup -q
66
67 %build
68 %configure \
69         %{!?with_static_libs:--disable-static}
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libotf.la
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
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
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/libotf-config
100 %attr(755,root,root) %{_libdir}/libotf.so
101 %{_includedir}/otf.h
102 %{_pkgconfigdir}/libotf.pc
103
104 %if %{with static_libs}
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libotf.a
108 %endif
This page took 0.109167 seconds and 3 git commands to generate.