## ## pango.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## # package version %define V_glib_major 2.14 %define V_pango_major 1.22 %define V_pango_minor 0 # package information Name: pango Summary: Layout And Rendering Of Internationalized Text URL: http://www.pango.org/ Vendor: The Gtk Project Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: XWindow License: GPL Version: %{V_pango_major}.%{V_pango_minor} Release: 20081016 # package options %option with_x11 no # list of sources Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/%{V_pango_major}/pango-%{version}.tar.bz2 Patch0: pango.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, pkgconfig PreReq: OpenPKG, openpkg >= 20040130 BuildPreReq: glib2 >= %{V_glib_major} PreReq: glib2 >= %{V_glib_major} BuildPreReq: gettext, libiconv, freetype, fontconfig, cairo >= 1.7.4 PreReq: gettext, libiconv, freetype, fontconfig, cairo >= 1.7.4 %if "%{with_x11}" == "yes" BuildPreReq: X11, xft PreReq: X11, xft %endif AutoReq: no AutoReqProv: no %description Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed; however, most of the work on Pango was done using the Gtk+ widget toolkit as a test platform. Pango forms the core of text and font handling for Gtk+. %track prog pango = { version = %{version} url = http://ftp.gnome.org/pub/GNOME/sources/pango/%{V_pango_major}/ regex = pango-(__VER__)\.tar\.(gz|bz2) } %prep %setup -q %patch -p0 %{l_shtool} subst \ -e 's;/pango-1\.0;/pango;g' \ -e 's;lib\(p[a-zA-Z0-9]*\)-1.0;lib\1;g' \ -e 's;lib\(p[a-zA-Z0-9]*\)-\$(PANGO_API_VERSION);lib\1;g' \ -e 's;-@PANGO_API_VERSION@;;g' \ -e '/moduledir =/s;/\$(PANGO_MODULE_VERSION);;g' \ Makefile.in */Makefile.in */*/Makefile.in \ pango\*.pc.in %build ( echo "ac_cv_lib_cairo_cairo_ft_scaled_font_lock_face=yes" ) >config.cache CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ %if "%{with_x11}" == "yes" CPPFLAGS="%{l_cppflags} -I`%{l_rc} --query x11_incdir`" \ LDFLAGS="%{l_ldflags} -L`%{l_rc} --query x11_libdir`" \ %else CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags}" \ %endif ./configure \ --cache-file=./config.cache \ --prefix=%{l_prefix} \ --mandir=%{l_prefix}/man \ %if "%{with_x11}" == "yes" --with-x \ --x-includes=`%{l_rc} --query x11_incdir` \ --x-libraries=`%{l_rc} --query x11_libdir` \ %else --without-x \ %endif --with-html-dir="%{l_prefix}/share/pango/doc" \ --with-xml-catalog="%{l_prefix}/share/sgml/catalog.xml" \ --disable-dependency-tracking \ --disable-debug \ --disable-rebuilds \ --disable-shared \ --with-included-modules="arabic-fc,basic-fc,basic-x,hangul-fc,hebrew-fc,indic-fc,khmer-fc,syriac-fc,thai-fc,tibetan-fc" %{l_make} %{l_mflags -O} %install rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/pango $RPM_BUILD_ROOT%{l_prefix}/bin/pango-querymodules \ $RPM_BUILD_ROOT%{l_prefix}/lib/pango/modules/*.so \ | sed "s,$RPM_BUILD_ROOT,," \ >$RPM_BUILD_ROOT%{l_prefix}/etc/pango/pango.modules strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.s[ol] rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.s[ol].* rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/pango/modules/*.la rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/pango/modules/*.a rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/pango/doc rmdir $RPM_BUILD_ROOT%{l_prefix}/share/pango >/dev/null 2>&1 || true %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %{l_prefix}/etc/pango/*' %files -f files %clean rm -rf $RPM_BUILD_ROOT