File libmowgli.spec of Package libmowgli
#
# spec file for package libmowgli
#
# 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: libmowgli
Version: 0.9.50
Release: 1
Group: Development/Libraries/C and C++
License: BSD
Url: http://www.atheme.org/project/mowgli
#Git-Clone: git://git.atheme.org/libmowgli
Source: http://distfiles.atheme.org/libmowgli-%version.tar.xz
Source1: baselibs.conf
Summary: A development framework for C (like GLib)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config xz
%description
mowgli is a development framework for C (like GLib), which provides
high performance and highly flexible algorithms. It can be used as a
suppliment to GLib (to add additional functions (dictionaries,
hashes), or replace some of the slow GLib list manipulation
functions), or stand alone. It also provides a powerful hook system
and convenient logging for your code, as well as a high performance
block allocator
%define pkg_libname libmowgli2
%package -n %pkg_libname
Group: Development/Libraries/C and C++
#
Summary: Shared library from libmowgli
%description -n %pkg_libname
mowgli is a development framework for C (like GLib), which provides
high performance and highly flexible algorithms. It can be used as a
suppliment to GLib (to add additional functions (dictionaries,
hashes), or replace some of the slow GLib list manipulation
functions), or stand alone. It also provides a powerful hook system
and convenient logging for your code, as well as a high performance
block allocator
This package holds the shared library from libmowgli.
%package devel
Group: Development/Libraries/C and C++
Requires: %pkg_libname = %version, glibc-devel
Summary: The development files for libmowgli
%description devel
mowgli is a development framework for C (like GLib), which provides
high performance and highly flexible algorithms. It can be used as a
suppliment to GLib (to add additional functions (dictionaries,
hashes), or replace some of the slow GLib list manipulation
functions), or stand alone. It also provides a powerful hook system
and convenient logging for your code, as well as a high performance
block allocator
This package holds the development files for libmowgli.
%prep
%setup -q
%build
if [ ! -e configure ]; then
./autogen.sh;
fi;
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
%post -n %pkg_libname -p /sbin/ldconfig
%postun -n %pkg_libname -p /sbin/ldconfig
%files -n %pkg_libname
%defattr(-,root,root)
%_libdir/libmowgli.so.*
%files devel
%defattr(-,root,root)
%_includedir/libmowgli/
%_libdir/libmowgli.so
%_libdir/pkgconfig/libmowgli.pc
%doc doc/BOOST COPYING README Mercurial-Access AUTHORS
%changelog