diff --git a/.libthai.metadata b/.libthai.metadata new file mode 100644 index 0000000..c4cf768 --- /dev/null +++ b/.libthai.metadata @@ -0,0 +1,2 @@ +b5cc81aac438b46e6c79178ea069548ff86b38cb SOURCES/libdatrie-0.2.3.tar.gz +ceee653023bbd87c64f01607d6064ccda8ba3dc0 SOURCES/libthai-0.1.14.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libthai-0.1.9-doxygen-segfault.patch b/SOURCES/libthai-0.1.9-doxygen-segfault.patch new file mode 100644 index 0000000..038663c --- /dev/null +++ b/SOURCES/libthai-0.1.9-doxygen-segfault.patch @@ -0,0 +1,27 @@ +diff -up libthai-0.1.9/doc/Doxyfile.in.doxygen-segfault libthai-0.1.9/doc/Doxyfile.in +--- libthai-0.1.9/doc/Doxyfile.in.doxygen-segfault 2007-11-13 16:37:16.000000000 -0500 ++++ libthai-0.1.9/doc/Doxyfile.in 2007-11-13 16:37:31.000000000 -0500 +@@ -29,7 +29,6 @@ STRIP_FROM_PATH = @top_srcdir@/in + STRIP_FROM_INC_PATH = @top_srcdir@/include + SHORT_NAMES = NO + JAVADOC_AUTOBRIEF = NO +-QT_AUTOBRIEF = NO + MULTILINE_CPP_IS_BRIEF = NO + DETAILS_AT_TOP = YES + INHERIT_DOCS = YES +@@ -50,7 +49,6 @@ EXTRACT_PRIVATE = NO + EXTRACT_STATIC = NO + EXTRACT_LOCAL_CLASSES = YES + EXTRACT_LOCAL_METHODS = NO +-EXTRACT_ANON_NSPACES = NO + HIDE_UNDOC_MEMBERS = YES + HIDE_UNDOC_CLASSES = YES + HIDE_FRIEND_COMPOUNDS = NO +@@ -168,7 +166,6 @@ HTML_FOOTER = + HTML_STYLESHEET = + HTML_ALIGN_MEMBERS = YES + GENERATE_HTMLHELP = NO +-HTML_DYNAMIC_SECTIONS = NO + CHM_FILE = + HHC_LOCATION = + GENERATE_CHI = NO diff --git a/SOURCES/libthai-0.1.9-multilib.patch b/SOURCES/libthai-0.1.9-multilib.patch new file mode 100644 index 0000000..57cd61a --- /dev/null +++ b/SOURCES/libthai-0.1.9-multilib.patch @@ -0,0 +1,24 @@ +diff -up libthai-0.1.9/doc/no_date_footer.html.multilib libthai-0.1.9/doc/no_date_footer.html +--- libthai-0.1.9/doc/no_date_footer.html.multilib 2008-03-17 13:32:26.000000000 -0400 ++++ libthai-0.1.9/doc/no_date_footer.html 2008-03-17 13:33:54.000000000 -0400 +@@ -0,0 +1,8 @@ ++
++Generated for $projectname by doxygen ++$doxygenversion
++ ++ ++ ++ +diff -up libthai-0.1.9/doc/Doxyfile.in.multilib libthai-0.1.9/doc/Doxyfile.in +--- libthai-0.1.9/doc/Doxyfile.in.multilib 2008-03-17 13:34:06.000000000 -0400 ++++ libthai-0.1.9/doc/Doxyfile.in 2008-03-17 13:34:16.000000000 -0400 +@@ -162,7 +162,7 @@ GENERATE_HTML = YES + HTML_OUTPUT = html + HTML_FILE_EXTENSION = .html + HTML_HEADER = +-HTML_FOOTER = ++HTML_FOOTER = no_date_footer.html + HTML_STYLESHEET = + HTML_ALIGN_MEMBERS = YES + GENERATE_HTMLHELP = NO diff --git a/SOURCES/libthai-libdatrie-static-build.patch b/SOURCES/libthai-libdatrie-static-build.patch new file mode 100644 index 0000000..c372c40 --- /dev/null +++ b/SOURCES/libthai-libdatrie-static-build.patch @@ -0,0 +1,44 @@ +diff -up libthai-0.1.12/libdatrie-0.2.2/datrie/Makefile.am.static-build libthai-0.1.12/libdatrie-0.2.2/datrie/Makefile.am +--- libthai-0.1.12/libdatrie/datrie/Makefile.am.static-build 2009-04-13 05:18:20.000000000 -0400 ++++ libthai-0.1.12/libdatrie/datrie/Makefile.am 2009-06-27 17:58:06.813631702 -0400 +@@ -10,7 +10,7 @@ EXTRA_DIST = libdatrie.map libdatrie.def + + INCLUDES = -I$(top_srcdir) + +-lib_LTLIBRARIES = libdatrie.la ++noinst_LTLIBRARIES = libdatrie.la + + libdatrie_la_SOURCES = \ + typedefs.h \ +diff -up libthai-0.1.12/libthai.pc.in.static-build libthai-0.1.12/libthai.pc.in +--- libthai-0.1.12/libthai.pc.in.static-build 2009-03-31 00:25:23.000000000 -0400 ++++ libthai-0.1.12/libthai.pc.in 2009-06-27 17:58:06.814631492 -0400 +@@ -6,6 +6,5 @@ includedir=@includedir@ + Name: libthai + Description: Thai support library + Version: @VERSION@ +-Requires.private: datrie-0.2 + Libs: -L${libdir} -lthai + Cflags: -I${includedir} +diff -up libthai-0.1.12/src/Makefile.am.static-build libthai-0.1.12/src/Makefile.am +--- libthai-0.1.12/src/Makefile.am.static-build 2009-06-07 03:20:15.000000000 -0400 ++++ libthai-0.1.12/src/Makefile.am 2009-06-27 17:59:20.060630864 -0400 +@@ -19,7 +19,8 @@ libthai_sublibs = \ + $(top_builddir)/src/thwchar/libthwchar.la \ + $(top_builddir)/src/thwctype/libthwctype.la \ + $(top_builddir)/src/thwstr/libthwstr.la \ +- $(top_builddir)/src/thwbrk/libthwbrk.la ++ $(top_builddir)/src/thwbrk/libthwbrk.la \ ++ $(DATRIE_LIBS) + + if LD_HAS_VERSION_SCRIPT + EXPORTS_FLAGS = -Wl,-version-script -Wl,$(srcdir)/libthai.map +diff -up libthai-0.1.12/src/thbrk/Makefile.am.static-build libthai-0.1.12/src/thbrk/Makefile.am +--- libthai-0.1.12/src/thbrk/Makefile.am.static-build 2009-01-19 08:32:50.000000000 -0500 ++++ libthai-0.1.12/src/thbrk/Makefile.am 2009-06-27 17:58:06.812632123 -0400 +@@ -16,5 +16,4 @@ libthbrk_la_SOURCES = \ + brk-maximal.c \ + brk-maximal.h + +-libthbrk_la_LIBADD = $(DATRIE_LIBS) + diff --git a/SPECS/libthai.spec b/SPECS/libthai.spec new file mode 100644 index 0000000..5ff4bff --- /dev/null +++ b/SPECS/libthai.spec @@ -0,0 +1,182 @@ +%define datrie_version 0.2.3 + +Summary: Thai language support routines +Name: libthai +Version: 0.1.14 +Release: 7%{?dist} +License: LGPLv2+ +Group: System Environment/Libraries +Source: ftp://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.gz +Source1: ftp://linux.thai.net/pub/thailinux/software/libthai/libdatrie-%{datrie_version}.tar.gz +Patch: libthai-libdatrie-static-build.patch +Patch1: libthai-0.1.9-doxygen-segfault.patch +Patch2: libthai-0.1.9-multilib.patch +URL: http://linux.thai.net +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) + +BuildRequires: pkgconfig +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 +developers' tasks to incorporate Thai language support in their applications. +It includes important Thai-specific functions e.g. word breaking, input and +output methods as well as basic character and string supports. + +%package devel +Summary: Thai language support routines +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The libthai-devel package includes the header files and developer docs +for the libthai package. + +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 .doxygen-segfault +%patch2 -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 + mkdir m4 + 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 + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall + +# move installed doc files back to build directory to package them +# in the right place +mkdir installed-docs +mv $RPM_BUILD_ROOT%{_docdir}/libthai/* installed-docs +rmdir $RPM_BUILD_ROOT%{_docdir}/libthai + +rm $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%doc README AUTHORS COPYING ChangeLog TODO +%{_libdir}/lib*.so.* +%{_datadir}/libthai + +%files devel +%defattr(-, root, root) +%doc installed-docs/* +%{_includedir}/thai +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/* +%{_mandir}/man3/* + +%changelog +* Thu Feb 14 2013 Fedora Release Engineering - 0.1.14-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.1.14-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.1.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.1.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Mar 3 2010 Behdad Esfahbod - 0.1.14-3 +- Update to 0.1.14 + +* Sat Jul 25 2009 Fedora Release Engineering - 0.1.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Jun 27 2009 Matthias Clasen - 0.1.12-1 +- Update to 0.1.12 + +* Fri Feb 27 2009 Matthias Clasen - 0.1.9-7 +- Fix the build + +* Wed Feb 25 2009 Fedora Release Engineering - 0.1.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed May 21 2008 Tom "spot" Callaway - 0.1.9-5 +- fix license tag + +* Mon Mar 17 2008 Matthias Clasen - 0.1.9-4 +- Attempt to fix multilib conflict + +* Mon Feb 18 2008 Fedora Release Engineering - 0.1.9-3 +- Autorebuild for GCC 4.3 + +* Tue Nov 13 2007 Behdad Esfahbod 0.1.9-2 +- Add libthai-0.1.9-doxygen-segfault.patch to workaround doxygen segfault + +* Tue Aug 28 2007 Behdad Esfahbod 0.1.9-1 +- Update to 0.1.9 +- Adjust patch + +* Thu Aug 23 2007 Adam Jackson - 0.1.7-6 +- Rebuild for build ID + +* Tue Jan 22 2007 Behdad Esfahbod 0.1.7-5 +- Export _th_*_tbl symbols too. They are accessed by some of the macros. + +* Tue Jan 17 2007 Behdad Esfahbod 0.1.7-4 +- Patch libthai.pc.in to not require datrie. + +* Tue Jan 16 2007 Matthias Clasen 0.1.7-3 +- Miscellaneous fixes + +* Tue Jan 16 2007 Behdad Esfahbod 0.1.7-2 +- Apply comments from Matthias Clasen (#222611) +- devel summary improvement +- devel require pkgconfig +- configure --disable-static +- Add comments about the voodoo +- Install docs in the right place + +* Sun Jan 14 2007 Behdad Esfahbod 0.1.7-1 +- Initial package based on package by Supphachoke Suntiwichaya + and Kamthorn Krairaksa for the OLPC.