File darts.spec of Package darts
#
# spec file for package darts (Version 0.31)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: darts
BuildRequires: gcc-c++ zlib-devel
License: LGPL v2.1 or later
Group: System/Libraries
AutoReqProv: on
Version: 0.31
Release: 54
Url: http://cl.aist-nara.ac.jp/~taku-ku/software/darts/
Source0: http://chasen.org/~taku/software/darts/src/darts-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Double Array Trie System
%description
Darts is a simple C++ template library to construct Double-Arrays [Aoe
1989]. Double-Arrays are data structures to represent Trie. These are
faster than other Trie implementations.
Darts is used by Chasen.
Authors:
--------
Taku Kudoh <taku-ku@is.aist-nara.ac.jp>
%prep
%setup -q
%build
rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config -f}
autoreconf --force --install
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
%{_target_cpu}-suse-linux
make
make check
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make DESTDIR=$RPM_BUILD_ROOT install
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-, root, root)
%doc AUTHORS COPY* ChangeLog README*
/usr/include/*
%{_libdir}/%{name}/
%changelog
* Wed Dec 12 2007 uli@suse.de
- update -> 0.31 (required by new chasen)
- license change (LGPL -> dual LGPL/BSD)
- lots of entirely undocumented changes
* Sat Mar 31 2007 rguenther@suse.de
- add zlib-devel BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue May 04 2004 hmacht@suse.de
- added norootforbuild in specfile
* Tue Sep 09 2003 schwab@suse.de
- Add workaround for gcc bug.
* Mon Aug 25 2003 ro@suse.de
- remove /usr/include from filelist
* Mon Aug 25 2003 mfabian@suse.de
- new package: darts 0.2.