diff --git a/.gitignore b/.gitignore index e69de29..528b747 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,11 @@ +libthai-0.1.12.tar.gz +libdatrie-0.2.2.tar.gz +/libdatrie-0.2.6.tar.xz +/libthai-0.1.19.tar.xz +/libdatrie-0.2.8.tar.xz +/libthai-0.1.20.tar.xz +/libthai-0.1.21.tar.xz +/libthai-0.1.24.tar.xz +/libthai-0.1.25.tar.xz +/libthai-0.1.27.tar.xz +/libthai-0.1.28.tar.xz diff --git a/libthai-0.1.24-gcc6.patch b/libthai-0.1.24-gcc6.patch new file mode 100644 index 0000000..1fe65e8 --- /dev/null +++ b/libthai-0.1.24-gcc6.patch @@ -0,0 +1,36 @@ +Index: ChangeLog +=================================================================== +--- ChangeLog.orig ++++ ChangeLog +@@ -28,6 +28,18 @@ + + 2015-11-22 Theppitak Karoonboonyanan + ++ Fix compilation error with GCC 6 ++ ++ * include/thai/thctype.h (_th_bitmsk): ++ - Use unsigned int instead of unsigned short for bitmask base, ++ as GCC 6 takes ~0 as -1 for unsigned short, ++ and causes compilation error for scim-thai. ++ ++ Thanks Martin Michlmayr for the report via Debian #811690 ++ http://bugs.debian.org/811690 ++ ++2016-01-20 Theppitak Karoonboonyanan ++ + * configure.ac: Post-release version suffix added. + + 2015-10-22 Theppitak Karoonboonyanan +Index: include/thai/thctype.h +=================================================================== +--- include/thai/thctype.h.orig ++++ include/thai/thctype.h +@@ -363,7 +363,7 @@ extern int th_iscombchar(thchar_t c); + #include + #define _th_ISbit(bit) (1 << (bit)) + #define _th_bitfld(base, val) ((val) << (base)) +-#define _th_bitmsk(base, bits) (~((~(unsigned short)0) << (bits)) << (base)) ++#define _th_bitmsk(base, bits) (~((~(unsigned)0) << (bits)) << (base)) + + enum { + _th_IStis = _th_ISbit(0), /* TIS-620 char */ diff --git a/libthai-0.1.9-multilib.patch b/libthai-0.1.9-multilib.patch new file mode 100644 index 0000000..58522cf --- /dev/null +++ b/libthai-0.1.9-multilib.patch @@ -0,0 +1,25 @@ +Index: libthai-0.1.24/doc/Doxyfile.in +=================================================================== +--- libthai-0.1.24.orig/doc/Doxyfile.in ++++ libthai-0.1.24/doc/Doxyfile.in +@@ -1124,7 +1124,7 @@ HTML_HEADER = + # that doxygen normally uses. + # This tag requires that the tag GENERATE_HTML is set to YES. + +-HTML_FOOTER = ++HTML_FOOTER = no_date_footer.html + + # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style + # sheet that is used by each HTML page. It can be used to fine-tune the look of +Index: libthai-0.1.24/doc/no_date_footer.html +=================================================================== +--- /dev/null ++++ libthai-0.1.24/doc/no_date_footer.html +@@ -0,0 +1,7 @@ ++
++Generated for $projectname by doxygen ++$doxygenversion
++ ++ ++ diff --git a/libthai.spec b/libthai.spec new file mode 100644 index 0000000..fd54f2a --- /dev/null +++ b/libthai.spec @@ -0,0 +1,205 @@ +Summary: Thai language support routines +Name: libthai +Version: 0.1.28 +Release: 5%{?dist} +License: LGPLv2+ +Source: ftp://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.xz +Patch0: libthai-0.1.9-multilib.patch +URL: http://linux.thai.net + +BuildRequires: gcc +BuildRequires: pkgconfig(datrie-0.2) +BuildRequires: doxygen + +%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 +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 +%patch0 -p1 -b .multilib + +%build +%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 + +%ldconfig_scriptlets + +%files +%doc README AUTHORS COPYING ChangeLog +%{_libdir}/lib*.so.* +%{_datadir}/libthai + +%files devel +%doc installed-docs/* +%{_includedir}/thai +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/* + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 0.1.28-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 0.1.28-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 0.1.28-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.1.28-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Aug 2 2018 Peng Wu - 0.1.28-1 +- Update to 0.1.28 + +* Fri Jul 13 2018 Fedora Release Engineering - 0.1.27-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 0.1.27-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Nov 1 2017 Peng Wu - 0.1.27-1 +- Update to 0.1.27 + +* Thu Aug 03 2017 Fedora Release Engineering - 0.1.25-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.1.25-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.1.25-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Oct 9 2016 Peng Wu - 0.1.25-1 +- Update to 1.2.25 +- Remove libthai-0.1.24-gcc6.patch, already in upstream tar ball + +* Tue Feb 16 2016 Daiki Ueno - 0.1.24-1 +- Update to 0.1.24 +- Apply patch from upstream, which fixes scim-thai FTBFS with GCC6 (Closes: #1308117) + +* Thu Feb 04 2016 Fedora Release Engineering - 0.1.21-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.1.21-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Sep 2 2014 Daiki Ueno - 0.1.21-1 +- Update to 0.1.21 + +* Sun Aug 17 2014 Fedora Release Engineering - 0.1.20-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Jul 4 2014 Daiki Ueno - 0.1.20-3 +- Unbundle libdatrie (Closes: #1062540) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.1.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Apr 23 2014 Daiki Ueno - 0.1.20-1 +- Update to 0.1.20 +- Update bundled libdatrie to 0.2.8 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.1.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jun 12 2013 Daiki Ueno - 0.1.19-1 +- Update to 0.1.19 +- Fix bogus dates in %%changelog +- Remove libthai-0.1.9-doxygen-segfault.patch, which is no longer + necessary with the latest Doxygen +- Don't install man pages, as per upstream's default + +* 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 + +* Mon Jan 22 2007 Behdad Esfahbod 0.1.7-5 +- Export _th_*_tbl symbols too. They are accessed by some of the macros. + +* Wed 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. diff --git a/sources b/sources new file mode 100644 index 0000000..2a8d628 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libthai-0.1.28.tar.xz) = 925be8367ae0cba026e602f1f60c813306e9051e22fe722afba496b6e493f8c1f3eb56abb77ca663f53678b14ad793daf3269b32d32720c0d869b906cdf15f4e