]> git.pld-linux.org Git - packages/pangox-compat.git/blob - pangox-compat.spec
a6d641cd7bee1f3ffcb1d66d9be92ef79424f575
[packages/pangox-compat.git] / pangox-compat.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        System for layout and rendering of internationalized text - X11 backend
6 Summary(pl.UTF-8):      System renderowania międzynarodowego tekstu - backend X11
7 Name:           pangox-compat
8 Version:        0.0.1
9 Release:        1
10 License:        LGPL v2+
11 Group:          X11/Libraries
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
25 BuildRequires:  xz
26 Requires:       glib2 >= 1:2.32.0
27 Requires:       pango >= 1:1.32.0
28 Obsoletes:      pangox
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %if "%{_lib}" != "lib"
32 %define         libext          %(lib="%{_lib}"; echo ${lib#lib})
33 %define         _sysconfdir     /etc/pango%{libext}
34 %else
35 %define         _sysconfdir     /etc/pango
36 %endif
37
38 %description
39 This is a compatibility library providing the obsolete pangox library
40 that is not shipped by Pango itself anymore.
41
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
45 Pango.
46
47 %package devel
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
56
57 %description devel
58 Development files for pangox library.
59
60 %description devel -l pl.UTF-8
61 Pliki programistyczne biblioteki pangox.
62
63 %package static
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
70
71 %description static
72 Static pangox library.
73
74 %description static -l pl.UTF-8
75 Statyczna biblioteka pangox.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80 %patch1 -p1
81
82 %build
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoconf}
86 %{__automake}
87 %configure \
88         --disable-silent-rules \
89         %{!?with_static_libs:--disable-static}
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
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
111
112 %files devel
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
118
119 %if %{with static_libs}
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libpangox-1.0.a
123 %endif
This page took 0.157483 seconds and 2 git commands to generate.