[libthai] Update to 0.1.20-3

Daiki Ueno ueno at fedoraproject.org
Mon Jul 7 02:30:10 UTC 2014


commit 5d202f47a7720cb2d270fa63b3ba0ffde60119d0
Author: Daiki Ueno <dueno at redhat.com>
Date:   Mon Jul 7 11:30:18 2014 +0900

    Update to 0.1.20-3

 libthai-libdatrie-static-build.patch |   48 ----------------------------------
 libthai.spec                         |   48 +++++----------------------------
 sources                              |    1 -
 3 files changed, 8 insertions(+), 89 deletions(-)
---
diff --git a/libthai.spec b/libthai.spec
index 8207e85..194eb8a 100644
--- a/libthai.spec
+++ b/libthai.spec
@@ -3,22 +3,16 @@
 Summary:  Thai language support routines
 Name: libthai
 Version: 0.1.20
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 Source: ftp://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.xz
-Source1: ftp://linux.thai.net/pub/thailinux/software/libthai/libdatrie-%{datrie_version}.tar.xz
-Patch: libthai-libdatrie-static-build.patch
-Patch1: libthai-0.1.9-multilib.patch
+Patch: libthai-0.1.9-multilib.patch
 URL: http://linux.thai.net
 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
 
-BuildRequires: pkgconfig
+BuildRequires: pkgconfig(datrie-0.2)
 BuildRequires: doxygen
-# we edit the Makefile.am's
-BuildRequires: automake
-BuildRequires: autoconf
-BuildRequires: libtool
 
 %description
 LibThai is a set of Thai language support routines aimed to ease
@@ -40,39 +34,10 @@ Install libthai-devel if you want to develop programs which will use
 libthai.
 
 %prep
-%setup -q -n %{name}-%{version} -a 1
-mv libdatrie-%{datrie_version} libdatrie
-%patch -p1 -b .static-build
-%patch1 -p1 -b .multilib
+%setup -q
+%patch -p1 -b .multilib
 
 %build
-
-# libthai depends on this library called libdatrie.  libdatrie is a
-# data-structure implementaiton that the author of libthai ripped out of it.
-# However, since libthai is the only user of that code, there's no reason to
-# 1) package it separately, 2) use it as a shared library.
-# So, we compile it as a libtool convenience library and include in libthai.so,
-# and use symbol hiding to hide them (and other internal symbols).
-#
-# The patch takes care of making datrie into a convenience lib and making sure
-# libthai will include it (and hide its symbols), and the exports make sure
-# libthai finds the uninstalled libdatrie.  We need to call automake, since
-# the patch modifies a few Makefile.am's.
-
-{
-  pushd libdatrie
-  autoreconf -i -f
-  %configure
-  make
-  popd
-}
-
-export DATRIE_CFLAGS="-I$PWD/libdatrie"
-export DATRIE_LIBS="$PWD/libdatrie/datrie/libdatrie.la"
-export PATH="$PWD/libdatrie/tools:$PATH"
-
-autoreconf -i -f
-
 %configure --disable-static
 make
 
@@ -110,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/*
 
 %changelog
+* Fri Jul  4 2014 Daiki Ueno <dueno at redhat.com> - 0.1.20-3
+- Unbundle libdatrie (Closes: #1062540)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.20-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 6536327..ce73285 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-fc25a7bf5ec7405e30ae1512a8e2226c  libdatrie-0.2.8.tar.xz
 2b58148d73361316121d5384efeda9e6  libthai-0.1.20.tar.xz


More information about the scm-commits mailing list