Accepting request 132788 from GNOME:Next
Starting to push GNOME:Next... OBS-URL: https://build.opensuse.org/request/show/132788 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=81
This commit is contained in:
committed by
Git OBS Bridge
parent
6d4959b23c
commit
c8360d2905
49
pango.spec
49
pango.spec
@@ -17,23 +17,21 @@
|
||||
|
||||
|
||||
# When updating the binary version, do not forget to also update baselibs.conf
|
||||
%define pango_binary_version 1.6.0
|
||||
%define pango_binary_version 1.8.0
|
||||
|
||||
Name: pango
|
||||
Version: 1.30.1
|
||||
Version: 1.31.0
|
||||
Release: 0
|
||||
Summary: Library for Layout and Rendering of Text
|
||||
License: LGPL-2.1+
|
||||
Group: System/Libraries
|
||||
Url: http://www.pango.org/
|
||||
Source: http://download.gnome.org/sources/pango/1.30/%{name}-%{version}.tar.xz
|
||||
Source: http://download.gnome.org/sources/pango/1.31/%{name}-%{version}.tar.xz
|
||||
Source1: README.SuSE
|
||||
Source2: macros.pango
|
||||
Source99: baselibs.conf
|
||||
# PATCH-FIX-UPSTREAM pango64.patch bgo129534 -- needed for biarch. Unfortunately, this is not good enough for usptream.
|
||||
Patch0: pango64.patch
|
||||
# PATCH-FIX-UPSTREAM pango-implicit.patch bgo#677627 dimstar@opensuse.org -- Add missing function prototype
|
||||
Patch1: pango-implicit.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: pkg-config
|
||||
@@ -42,6 +40,7 @@ BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(gobject-2.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(harfbuzz)
|
||||
BuildRequires: pkgconfig(libthai) >= 0.1.9
|
||||
BuildRequires: pkgconfig(xft)
|
||||
BuildRequires: pkgconfig(xrender)
|
||||
@@ -57,9 +56,9 @@ Pango forms the core of text and font handling for GTK+.
|
||||
%package -n libpango-1_0-0
|
||||
Summary: Library for Layout and Rendering of Text
|
||||
Group: System/Libraries
|
||||
Requires(post): %{name}-tools
|
||||
Provides: %{name} = %{version}
|
||||
Obsoletes: %{name} < %{version}
|
||||
Requires(post): %{name}-tools
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: pango-64bit
|
||||
@@ -100,9 +99,9 @@ Pango forms the core of text and font handling for GTK+.
|
||||
%package module-thai-lang
|
||||
Summary: Library for Layout and Rendering of Text -- Module for the Thai Language
|
||||
Group: System/Libraries
|
||||
Provides: locale(pango:th_TH)
|
||||
Requires(post): %{name}-tools
|
||||
Requires(postun): %{name}-tools
|
||||
Provides: locale(pango:th_TH)
|
||||
|
||||
%description module-thai-lang
|
||||
Pango is a library for layout and rendering of text, with an emphasis
|
||||
@@ -112,13 +111,13 @@ is needed.
|
||||
Pango forms the core of text and font handling for GTK+.
|
||||
|
||||
%package devel
|
||||
Requires: libpango-1_0-0 = %{version}
|
||||
Requires: typelib-1_0-Pango-1_0 = %{version}
|
||||
Summary: Library for Layout and Rendering of Text -- Development Files
|
||||
Group: Development/Libraries/GNOME
|
||||
Requires: libpango-1_0-0 = %{version}
|
||||
Requires: typelib-1_0-Pango-1_0 = %{version}
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: pango-devel-64bit
|
||||
Obsoletes: pkgconfig(pango)-64bit
|
||||
%endif
|
||||
Provides: pango-doc = %{version}
|
||||
Obsoletes: pango-doc < %{version}
|
||||
@@ -135,27 +134,27 @@ to develop applications that require these.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if "%_lib" == "lib64"
|
||||
cp -a %{S:1} .
|
||||
%if "%{_lib}" == "lib64"
|
||||
cp -a %{SOURCE1} .
|
||||
%patch0 -p0
|
||||
%endif
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-pic
|
||||
make %{?jobs:-j%jobs}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
%make_install
|
||||
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/pango/
|
||||
touch %{buildroot}%{_sysconfdir}/pango/pango.modules
|
||||
%if "%_lib" == "lib64"
|
||||
%if "%{_lib}" == "lib64"
|
||||
mv %{buildroot}%{_bindir}/pango-querymodules %{buildroot}%{_bindir}/pango-querymodules-64
|
||||
mv %{buildroot}%{_sysconfdir}/pango/pango.modules %{buildroot}%{_sysconfdir}/pango/pango64.modules
|
||||
%endif
|
||||
# Install rpm macros
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||
cp %{S:2} %{buildroot}%{_sysconfdir}/rpm
|
||||
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@@ -165,7 +164,7 @@ rm -rf %{buildroot}
|
||||
###########################################################################
|
||||
|
||||
# Convenient %define for the scriplets
|
||||
%if "%_lib" == "lib64"
|
||||
%if "%{_lib}" == "lib64"
|
||||
%define _pango_querymodules %{_bindir}/pango-querymodules-64
|
||||
%define _pango_querymodules_update_cache %{_pango_querymodules} > %{_sysconfdir}/pango/pango64.modules
|
||||
%else
|
||||
@@ -214,7 +213,7 @@ fi
|
||||
|
||||
%files -n libpango-1_0-0
|
||||
%defattr(-,root,root)
|
||||
%if "%_lib" == "lib64"
|
||||
%if "%{_lib}" == "lib64"
|
||||
%doc README AUTHORS COPYING ChangeLog README.SuSE
|
||||
%else
|
||||
%doc README AUTHORS COPYING ChangeLog
|
||||
@@ -222,22 +221,12 @@ fi
|
||||
%dir %{_libdir}/pango
|
||||
%dir %{_libdir}/pango/%{pango_binary_version}
|
||||
%dir %{_libdir}/pango/%{pango_binary_version}/modules
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-arabic-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-arabic-lang.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-basic-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-basic-x.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-hangul-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-hebrew-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-indic-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-indic-lang.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-khmer-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-syriac-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-thai-fc.so
|
||||
%{_libdir}/pango/%{pango_binary_version}/modules/pango-tibetan-fc.so
|
||||
%{_libdir}/lib*.so.*
|
||||
%dir %{_sysconfdir}/pango
|
||||
%{_sysconfdir}/pango/pangox.aliases
|
||||
%if "%_lib" == "lib64"
|
||||
%if "%{_lib}" == "lib64"
|
||||
%ghost %{_sysconfdir}/pango/pango64.modules
|
||||
%else
|
||||
%ghost %{_sysconfdir}/pango/pango.modules
|
||||
|
Reference in New Issue
Block a user