You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
4.6 KiB
124 lines
4.6 KiB
## |
|
## pango.spec -- OpenPKG RPM Package Specification |
|
## Copyright (c) 2000-2020 OpenPKG Project <http://openpkg.org/> |
|
## |
|
## 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.52 |
|
%define V_pango_major 1.40 |
|
%define V_pango_minor 14 |
|
|
|
# package information |
|
Name: pango |
|
Summary: Layout And Rendering Of Internationalized Text |
|
URL: http://www.pango.org/ |
|
Vendor: The Gtk Project |
|
Packager: OpenPKG Project |
|
Distribution: OpenPKG Community |
|
Class: PLUS |
|
Group: XWindow |
|
License: GPL |
|
Version: %{V_pango_major}.%{V_pango_minor} |
|
Release: 20171116 |
|
|
|
# list of sources |
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/%{V_pango_major}/pango-%{version}.tar.xz |
|
Patch0: pango.patch |
|
|
|
# build information |
|
BuildPreReq: OpenPKG, openpkg >= 20160101, make, gcc, pkgconfig |
|
PreReq: OpenPKG, openpkg >= 20160101 |
|
BuildPreReq: glib >= %{V_glib_major} |
|
PreReq: glib >= %{V_glib_major} |
|
BuildPreReq: gettext, libiconv, freetype, fontconfig, cairo, harfbuzz |
|
PreReq: gettext, libiconv, freetype, fontconfig, cairo, harfbuzz |
|
|
|
%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|xz) |
|
} |
|
|
|
%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}" \ |
|
CPPFLAGS="%{l_cppflags}" \ |
|
LDFLAGS="%{l_ldflags}" \ |
|
./configure \ |
|
--cache-file=./config.cache \ |
|
--prefix=%{l_prefix} \ |
|
--mandir=%{l_prefix}/man \ |
|
--with-html-dir="%{l_prefix}/share/pango/doc" \ |
|
--without-xft \ |
|
--disable-dependency-tracking \ |
|
--disable-debug \ |
|
--disable-rebuilds \ |
|
--disable-shared \ |
|
--with-pic |
|
%{l_make} %{l_mflags -O} |
|
|
|
%install |
|
%{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 |
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/preload.1.gz |
|
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 |
|
|
|
|