3 %bcond_without static_libs # don't build static library
5 Summary: System for layout and rendering of internationalized text - X11 backend
6 Summary(pl.UTF-8): System renderowania międzynarodowego tekstu - backend X11
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/pangox-compat/0.0/%{name}-%{version}.tar.xz
13 # Source0-md5: 7d922edd65b5cd6681a153070baccda6
14 Patch0: %{name}-xfonts.patch
15 Patch1: %{name}-arch_confdir.patch
16 URL: http://www.pango.org/
17 BuildRequires: autoconf >= 2.59-9
18 BuildRequires: automake >= 1:1.9
19 BuildRequires: glib2-devel >= 1:2.32.0
20 BuildRequires: libtool
21 BuildRequires: pango-devel >= 1:1.32.0
22 BuildRequires: pkgconfig
23 BuildRequires: tar >= 1:1.22
24 BuildRequires: xorg-lib-libX11-devel
26 Requires: glib2 >= 1:2.32.0
27 Requires: pango >= 1:1.32.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %if "%{_lib}" != "lib"
32 %define libext %(lib="%{_lib}"; echo ${lib#lib})
33 %define _sysconfdir /etc/pango%{libext}
35 %define _sysconfdir /etc/pango
39 This is a compatibility library providing the obsolete pangox library
40 that is not shipped by Pango itself anymore.
42 %description -l pl.UTF-8
43 Ten pakiet istnieje dla kompatybilności, zawiera przestarzałą
44 bibliotekę pangox, która już nie jest dostarczana wraz z pakietem
48 Summary: Development files for pangox library
49 Summary(pl.UTF-8): Pliki programistyczne biblioteki pangox
50 Group: X11/Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: glib2-devel >= 1:2.32.0
53 Requires: pango >= 1:1.32.0
54 Requires: xorg-lib-libX11-devel
55 Obsoletes: pangox-devel
58 Development files for pangox library.
60 %description devel -l pl.UTF-8
61 Pliki programistyczne biblioteki pangox.
64 Summary: Static pangox library
65 Summary(pl.UTF-8): Statyczna biblioteka pangox
66 Group: X11/Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
68 Obsoletes: pangox-static
69 Conflicts: pango-static < 1:1.32.0
72 Static pangox library.
74 %description static -l pl.UTF-8
75 Statyczna biblioteka pangox.
88 --disable-silent-rules \
89 %{!?with_static_libs:--disable-static}
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README
108 %attr(755,root,root) %{_libdir}/libpangox-1.0.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libpangox-1.0.so.0
110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pangox.aliases
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libpangox-1.0.so
115 %{_libdir}/libpangox-1.0.la
116 %{_pkgconfigdir}/pangox.pc
117 %{_includedir}/pango-1.0/pango/pangox.h
119 %if %{with static_libs}
121 %defattr(644,root,root,755)
122 %{_libdir}/libpangox-1.0.a