libdatrie/libdatrie.spec

90 lines
2.6 KiB
RPMSpec

#
# spec file for package libdatrie (Version 0.2.2)
#
# Copyright (c) 2010 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: libdatrie
Version: 0.2.2
Release: 2
License: LGPLv2.1
Summary: Double-Array Trie Library
Url: http://linux.thai.net/~thep/datrie/datrie.html
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
BuildRequires: doxygen pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is an implementation of double-array structure for representing
trie, as proposed by Junichi Aoe.
%package -n libdatrie1
License: LGPLv2.1
Group: Development/Libraries/C and C++
Summary: Double-Array Trie Library
%description -n libdatrie1
This is an implementation of double-array structure for representing
trie, as proposed by Junichi Aoe.
%package devel
License: LGPLv2.1
Group: Development/Libraries/C and C++
Summary: Double-Array Trie Library (development)
Requires: libdatrie1 = %{version}
%description devel
This is an implementation of double-array structure for representing
trie, as proposed by Junichi Aoe.
This package contains the development files for libdatrie.
%prep
%setup -q
%build
%configure \
--disable-static --with-pic \
--with-html-docdir=%{_docdir}/libdatrie/html
make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/libdatrie.la
# This is not installed where it should
mv %{buildroot}%{_datadir}/doc/libdatrie/README.migration %{buildroot}%{_docdir}/libdatrie/
%post -n libdatrie1 -p /sbin/ldconfig
%postun -n libdatrie1 -p /sbin/ldconfig
%files -n libdatrie1
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/libdatrie.so.1*
%files devel
%defattr(-,root,root)
%{_bindir}/trietool-0.2
%doc %{_mandir}/man*/trietool-0.2.*
%{_includedir}/datrie/
%{_libdir}/libdatrie.so
%{_libdir}/pkgconfig/datrie-0.2.pc
%doc %{_docdir}/libdatrie/
%changelog