commit 197773c79cbb9d2f0443a2f1bb4b0225e788dc3b Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:58:26 2019 -0400 Package init diff --git a/libthai-0.1.28.tar.xz b/libthai-0.1.28.tar.xz new file mode 100644 index 0000000..79fa9b0 Binary files /dev/null and b/libthai-0.1.28.tar.xz differ 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..6dae7b6 --- /dev/null +++ b/libthai.spec @@ -0,0 +1,96 @@ +Name: libthai +Version: 0.1.28 +Release: 2 +Summary: Libaray for Thai language +License: LGPLv2+ +URL: http://linux.thai.net +Source: ftp://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: pkgconfig(datrie-0.2) +BuildRequires: doxygen + +Patch0: libthai-0.1.9-multilib.patch + +%description +LibThai is a C library for developers who need Thai language support in their +programs. It includes Thai character set support, Thai character properties, +Thai string manipulators, Thai string collation, Thai word breaking, Thai +input method and Thai output method. + +%package devel +Summary: Thai language support routines +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + + +%description devel +The development package for Libthai. + +%package static +Summary: libthai static library +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description static +The static library for libthai. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall + +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/* + +%files static +%{_libdir}/libthai.a + +%changelog +* Mon Sep 10 2018 openEuler Buildteam -0.1.28-2 +- Package init + + + + + + + + + + + + + + + + + + + + +