File vanessa_adt.spec of Package vanessa_adt
#
# spec file for package vanessa_adt
#
# 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: vanessa_adt
%define libname lib%{name}
%define libsoname %{libname}1
Summary: Library of Abstract Data Types
Version: 0.0.9
Release: 1
License: LGPL-2.1+
Group: System/Libraries
Url: http://www.vergenet.net/linux/vanessa/
Source0: http://horms.net/projects/vanessa/download/vanessa_adt/%{version}/vanessa_adt-%{version}.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: vanessa_logger-devel
%description
Library of Abstract Data Types (ADTs) that may be useful. Includes queue,
dynamic array and key value ADT.
%package -n %{libsoname}
Summary: Shared libraries for Abstract Data Types
Group: System/Libraries
%description -n %{libsoname}
This package contains the shared libraries needed by programs built
with vanessa_adt.
Library of Abstract Data Types (ADTs) that may be useful. Includes queue,
dynamic array and key value ADT.
%package devel
Summary: Headers and static libraries for development
Group: Development/Libraries/C and C++
Requires: %{libsoname} = %{version}
Requires: vanessa_logger-devel
%description devel
Headers and static libraries required to develop against vanessa_adt.
%prep
%setup -q
%build
%{configure} --disable-static
%{__make} %{?_smp_mflags}
%install
%{makeinstall}
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files -n %{libsoname}
%defattr(-,root,root)
%{_libdir}/%{libname}.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/%{libname}.la
%{_libdir}/%{libname}.so
%{_includedir}/*.h
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%changelog