[18247] | 1 | %define glib2_base_version 2.0.0 |
---|
| 2 | %define glib2_version %{glib2_base_version}-1 |
---|
| 3 | %define pkgconfig_version 0.12 |
---|
| 4 | %define freetype_version 2.1.2-2 |
---|
| 5 | %define fontconfig_version 0.0.1.020626.1517-2 |
---|
| 6 | %define xft_version 1.9.1.020626.1517-1 |
---|
| 7 | |
---|
| 8 | Summary: System for layout and rendering of internationalized text. |
---|
| 9 | Name: pango |
---|
| 10 | Version: 1.2.0 |
---|
| 11 | Release: 1 |
---|
| 12 | License: LGPL |
---|
| 13 | Group: System Environment/Libraries |
---|
| 14 | Source: ftp://ftp.gtk.org/pub/gtk/v2.1/pango-%{version}.tar.bz2 |
---|
| 15 | URL: http://www.pango.org |
---|
| 16 | BuildRoot: %{_tmppath}/pango-%{PACKAGE_VERSION}-root |
---|
| 17 | |
---|
| 18 | # We need to prereq this so we can run pango-querymodules |
---|
| 19 | Prereq: glib2 >= %{glib2_version} |
---|
| 20 | BuildRequires: libtool >= 1.4.2-10 |
---|
| 21 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 22 | BuildRequires: pkgconfig >= %{pkgconfig_version} |
---|
| 23 | BuildRequires: freetype-devel >= %{freetype_version} |
---|
| 24 | BuildRequires: fontconfig-devel >= %{fontconfig_version} |
---|
| 25 | BuildRequires: Xft-devel >= %{xft_version} |
---|
| 26 | BuildRequires: XFree86-devel >= 4.0.2 |
---|
| 27 | Obsoletes: pango-gtkbeta, fribidi-gtkbeta |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | Pango is a system for layout and rendering of internationalized text. |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %package devel |
---|
| 34 | Summary: System for layout and rendering of internationalized text. |
---|
| 35 | Group: Development/Libraries |
---|
| 36 | Requires: pango = %{PACKAGE_VERSION} |
---|
| 37 | Requires: XFree86-devel |
---|
| 38 | Requires: glib2-devel >= %{glib2_version} |
---|
| 39 | Requires: freetype-devel >= %{freetype_version} |
---|
| 40 | Requires: fontconfig-devel >= %{fontconfig_version} |
---|
| 41 | Requires: Xft-devel >= %{xft_version} |
---|
| 42 | Obsoletes: fribidi-gtkbeta-devel, pango-gtkbeta-devel |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | The pango-devel package includes the static libraries, header files, |
---|
| 46 | and developer docs for the pango package. |
---|
| 47 | |
---|
| 48 | Install pango-devel if you want to develop programs which will use |
---|
| 49 | pango. |
---|
| 50 | |
---|
| 51 | %prep |
---|
| 52 | %setup -q -n pango-%{version} |
---|
| 53 | |
---|
| 54 | %build |
---|
| 55 | |
---|
| 56 | %configure --without-qt --disable-gtk-doc |
---|
| 57 | make |
---|
| 58 | |
---|
| 59 | %install |
---|
| 60 | rm -rf $RPM_BUILD_ROOT |
---|
| 61 | |
---|
| 62 | %makeinstall |
---|
| 63 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 64 | %clean |
---|
| 65 | rm -rf $RPM_BUILD_ROOT |
---|
| 66 | |
---|
| 67 | %post |
---|
| 68 | /sbin/ldconfig |
---|
| 69 | %{_prefix}/bin/pango-querymodules > /etc/pango/pango.modules |
---|
| 70 | |
---|
| 71 | %postun -p /sbin/ldconfig |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-, root, root) |
---|
| 75 | %doc README AUTHORS COPYING ChangeLog TODO |
---|
| 76 | %doc examples/HELLO.utf8 |
---|
| 77 | %{_prefix}/lib/libpango*-*.so.* |
---|
| 78 | %{_prefix}/bin/pango-querymodules |
---|
| 79 | %{_prefix}/lib/pango |
---|
| 80 | %config /etc/pango/pangox.aliases |
---|
| 81 | %ghost /etc/pango/pango.modules |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %files devel |
---|
| 85 | %defattr(-, root, root) |
---|
| 86 | %{_prefix}/lib/libpango*.so |
---|
| 87 | %{_prefix}/include/* |
---|
| 88 | %{_prefix}/lib/pkgconfig/* |
---|
| 89 | %{_prefix}/share/gtk-doc/* |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %changelog |
---|
| 93 | * Mon Nov 04 2002 Christian Schaller <Uraeus@linuxrising.org> |
---|
| 94 | - Update for use in CVS package |
---|
| 95 | |
---|
| 96 | * Fri Feb 11 2000 Owen Taylor <otaylor@redhat.com> |
---|
| 97 | - Created spec file |
---|