File darts.spec of Package darts
#
# spec file for package darts
#
# Copyright (c) 2011 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/
#
Name: darts
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: zlib-devel
License: LGPL-2.1+
Group: System/Libraries
Version: 0.31
Release: 0
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