]> git.pld-linux.org Git - packages/libotf.git/blame - libotf.spec
- updated to 0.9.16 (note: new soname)
[packages/libotf.git] / libotf.spec
CommitLineData
396bf40f
JR
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Library for handling OpenType Font (OTF)
6Summary(pl.UTF-8): Biblioteka do obsługi fontów OpenType (OTF)
7Name: libotf
04427150 8Version: 0.9.16
8367c09a 9Release: 1
9db72cd7 10License: LGPL v2.1+
396bf40f 11Group: Libraries
8367c09a 12Source0: http://download.savannah.gnu.org/releases/m17n/%{name}-%{version}.tar.gz
04427150
JB
13# Source0-md5: 9b0b708ba5de53bf83e1cb09c6a6e100
14URL: http://www.nongnu.org/m17n/
9db72cd7 15BuildRequires: freetype-devel >= 2
396bf40f
JR
16BuildRequires: xorg-lib-libX11-devel
17BuildRequires: xorg-lib-libXt-devel
18BuildRequires: xorg-lib-libXaw-devel
19BuildRequires: xorg-lib-libXmu-devel
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23The library "libotf" provides the following facilites:
9db72cd7
JB
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.
396bf40f
JR
28
29The combination of libotf and the FreeType library (Ver.2) realizes
30CTL (complex text layout) by OpenType fonts.
31
9db72cd7
JB
32%description -l pl.UTF-8
33Biblioteka 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.
396bf40f
JR
38
39%package devel
40Summary: Header files for libotf library
41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libotf
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
9db72cd7 44Requires: freetype-devel >= 2
396bf40f
JR
45
46%description devel
47Header files for libotf library.
48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki libotf.
51
52%package static
53Summary: Static libotf library
54Summary(pl.UTF-8): Statyczna biblioteka libotf
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static libotf library.
60
61%description static -l pl.UTF-8
62Statyczna biblioteka libotf.
63
64%prep
65%setup -q
66
67%build
68%configure \
69 %{!?with_static_libs:--disable-static}
70%{__make}
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77
9db72cd7
JB
78# obsoleted by pkg-config
79%{__rm} $RPM_BUILD_ROOT%{_libdir}/libotf.la
80
396bf40f
JR
81%clean
82rm -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
9db72cd7
JB
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
396bf40f 94%attr(755,root,root) %{_libdir}/libotf.so.*.*.*
04427150 95%attr(755,root,root) %ghost %{_libdir}/libotf.so.1
396bf40f
JR
96
97%files devel
98%defattr(644,root,root,755)
99%attr(755,root,root) %{_bindir}/libotf-config
9db72cd7 100%attr(755,root,root) %{_libdir}/libotf.so
396bf40f
JR
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.136976 seconds and 4 git commands to generate.