Blame SPECS/libthai.spec

30958d
%define datrie_version 0.2.3
30958d
30958d
Summary:  Thai language support routines
30958d
Name: libthai
30958d
Version: 0.1.14
6fb370
Release: 9%{?dist}
30958d
License: LGPLv2+
30958d
Group: System Environment/Libraries
30958d
Source: ftp://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.gz
30958d
Source1: ftp://linux.thai.net/pub/thailinux/software/libthai/libdatrie-%{datrie_version}.tar.gz
30958d
Patch: libthai-libdatrie-static-build.patch
30958d
Patch1: libthai-0.1.9-doxygen-segfault.patch
30958d
Patch2: libthai-0.1.9-multilib.patch
30958d
URL: http://linux.thai.net
30958d
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
30958d
30958d
BuildRequires: pkgconfig
30958d
BuildRequires: doxygen
30958d
# we edit the Makefile.am's
30958d
BuildRequires: automake
30958d
BuildRequires: autoconf
30958d
BuildRequires: libtool
30958d
30958d
%description
30958d
LibThai is a set of Thai language support routines aimed to ease
30958d
developers' tasks to incorporate Thai language support in their applications.
30958d
It includes important Thai-specific functions e.g. word breaking, input and
30958d
output methods as well as basic character and string supports.
30958d
30958d
%package devel
30958d
Summary:  Thai language support routines
30958d
Group: Development/Libraries
30958d
Requires: %{name} = %{version}-%{release}
30958d
Requires: pkgconfig
30958d
30958d
%description devel
30958d
The libthai-devel package includes the header files and developer docs 
30958d
for the libthai package.
30958d
30958d
Install libthai-devel if you want to develop programs which will use
30958d
libthai.
30958d
30958d
%prep
30958d
%setup -q -n %{name}-%{version} -a 1
30958d
mv libdatrie-%{datrie_version} libdatrie
30958d
%patch -p1 -b .static-build
30958d
%patch1 -p1 -b .doxygen-segfault
30958d
%patch2 -p1 -b .multilib
30958d
30958d
%build
30958d
30958d
# libthai depends on this library called libdatrie.  libdatrie is a
30958d
# data-structure implementaiton that the author of libthai ripped out of it.
30958d
# However, since libthai is the only user of that code, there's no reason to
30958d
# 1) package it separately, 2) use it as a shared library.
30958d
# So, we compile it as a libtool convenience library and include in libthai.so,
30958d
# and use symbol hiding to hide them (and other internal symbols).
30958d
#
30958d
# The patch takes care of making datrie into a convenience lib and making sure
30958d
# libthai will include it (and hide its symbols), and the exports make sure
30958d
# libthai finds the uninstalled libdatrie.  We need to call automake, since
30958d
# the patch modifies a few Makefile.am's.
30958d
30958d
{
30958d
  pushd libdatrie
30958d
  mkdir m4
30958d
  autoreconf -i -f
30958d
  %configure
30958d
  make
30958d
  popd
30958d
}
30958d
30958d
export DATRIE_CFLAGS="-I$PWD/libdatrie"
30958d
export DATRIE_LIBS="$PWD/libdatrie/datrie/libdatrie.la"
30958d
export PATH="$PWD/libdatrie/tools:$PATH"
30958d
30958d
autoreconf -i -f
30958d
30958d
%configure --disable-static
30958d
make
30958d
30958d
%install
30958d
rm -rf $RPM_BUILD_ROOT
30958d
30958d
%makeinstall
30958d
30958d
# move installed doc files back to build directory to package them
30958d
# in the right place
30958d
mkdir installed-docs
30958d
mv $RPM_BUILD_ROOT%{_docdir}/libthai/* installed-docs
30958d
rmdir $RPM_BUILD_ROOT%{_docdir}/libthai
30958d
30958d
rm $RPM_BUILD_ROOT%{_libdir}/*.la
30958d
30958d
%clean
30958d
rm -rf $RPM_BUILD_ROOT
30958d
30958d
%post -p /sbin/ldconfig
30958d
30958d
%postun -p /sbin/ldconfig
30958d
30958d
%files
30958d
%defattr(-, root, root)
30958d
%doc README AUTHORS COPYING ChangeLog TODO
30958d
%{_libdir}/lib*.so.*
30958d
%{_datadir}/libthai
30958d
30958d
%files devel
30958d
%defattr(-, root, root)
30958d
%doc installed-docs/*
30958d
%{_includedir}/thai
30958d
%{_libdir}/lib*.so
30958d
%{_libdir}/pkgconfig/*
30958d
%{_mandir}/man3/*
30958d
30958d
%changelog
6fb370
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.14-9
6fb370
- Mass rebuild 2014-01-24
6fb370
6fb370
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.14-8
6fb370
- Mass rebuild 2013-12-27
6fb370
30958d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.14-7
30958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
30958d
30958d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.14-6
30958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30958d
30958d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.14-5
30958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
30958d
30958d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.14-4
30958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
30958d
30958d
* Wed Mar  3 2010 Behdad Esfahbod <behdad@redhat.com> - 0.1.14-3
30958d
- Update to 0.1.14
30958d
30958d
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-2
30958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
30958d
30958d
* Sat Jun 27 2009 Matthias Clasen <mclasen@redhat.com> - 0.1.12-1
30958d
- Update to 0.1.12
30958d
30958d
* Fri Feb 27 2009 Matthias Clasen <mclasen@redhat.com> - 0.1.9-7
30958d
- Fix the build
30958d
30958d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-6
30958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
30958d
30958d
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1.9-5
30958d
- fix license tag
30958d
30958d
* Mon Mar 17 2008 Matthias Clasen <mclasen@redhat.com> - 0.1.9-4
30958d
- Attempt to fix multilib conflict
30958d
30958d
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.9-3
30958d
- Autorebuild for GCC 4.3
30958d
30958d
* Tue Nov 13 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.1.9-2
30958d
- Add libthai-0.1.9-doxygen-segfault.patch to workaround doxygen segfault
30958d
30958d
* Tue Aug 28 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.1.9-1
30958d
- Update to 0.1.9
30958d
- Adjust patch
30958d
30958d
* Thu Aug 23 2007 Adam Jackson <ajax@redhat.com> - 0.1.7-6
30958d
- Rebuild for build ID
30958d
30958d
* Tue Jan 22 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.1.7-5
30958d
- Export _th_*_tbl symbols too.  They are accessed by some of the macros.
30958d
30958d
* Tue Jan 17 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.1.7-4
30958d
- Patch libthai.pc.in to not require datrie.
30958d
30958d
* Tue Jan 16 2007 Matthias Clasen <mclasen@redhat.com> 0.1.7-3
30958d
- Miscellaneous fixes
30958d
 
30958d
* Tue Jan 16 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.1.7-2
30958d
- Apply comments from Matthias Clasen (#222611) 
30958d
- devel summary improvement
30958d
- devel require pkgconfig
30958d
- configure --disable-static
30958d
- Add comments about the voodoo
30958d
- Install docs in the right place
30958d
30958d
* Sun Jan 14 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.1.7-1
30958d
- Initial package based on package by Supphachoke Suntiwichaya
30958d
  and Kamthorn Krairaksa for the OLPC.