File wordcut.spec of Package wordcut
#
# spec file for package wordcut (Version 0.5.1b2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: wordcut
BuildRequires: freetype2-devel xorg-x11-devel
Version: 0.5.1b2
Release: 113
License: BSD 3-Clause
Group: System/Libraries
AutoReqProv: on
Provides: locale(th)
Url: http://thaiwordseg.sourceforge.net/
Source0: http://belnet.dl.sourceforge.net/sourceforge/thaiwordseg/wordcut-0.5.1b2.tar.bz2
Patch0: bugzilla-152315-locale-variable-used-before-set.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Thai word segmentation utility.
%description
Thai word segmentation utility.
Authors:
--------
Vee Satayamas <virasj@users.sourceforge.net>
%package devel
Summary: Include Files and Libraries mandatory for Development.
Group: System/Libraries
Requires: %{name} = %{version} glibc-devel
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Vee Satayamas <virasj@users.sourceforge.net>
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%build
autoreconf --force --install --verbose
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic
make
%install
make DESTDIR=${RPM_BUILD_ROOT} install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_bindir}/*
%{_libdir}/libwordcut.so.*
%dir %{_datadir}/wordcut/
%{_datadir}/wordcut/*
%files devel
%defattr(-, root, root)
/usr/include/*
%{_libdir}/libwordcut.so
%{_libdir}/pkgconfig/*
%exclude %{_libdir}/*.la
%changelog
* Wed Dec 26 2007 - crrodriguez@suse.de
- fix library-without-ldconfig-*
- remove static libraries and libtool archives with empty dependency_libs
* Tue Sep 05 2006 - meissner@suse.de
- set CFLAGS/CXXFLAGS correctly for configure.
* Wed Mar 01 2006 - mfabian@suse.de
- add "Provides: locale(th)".
* Thu Feb 23 2006 - mfabian@suse.de
- Bugzilla #152315: "local variable used before set".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Aug 16 2004 - mfabian@suse.de
- new package: wordcut, version 0.5.1b2