File libmowgli.spec of Package libmowgli
#
# spec file for package libmowgli
#
# Copyright (c) 2013 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
%define libsoname %{name}2
Summary: A development framework for C (like GLib)
License: MIT
Group: Development/Libraries/C and C++
Version: 1.0.0
Release: 0
Url: http://www.atheme.org/project/mowgli
#Git-Clone: git://github.com/atheme/libmowgli
Source: http://distfiles.atheme.org/libmowgli-%version.tar.bz2
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
%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
%package -n %libsoname
Summary: Shared library from libmowgli
Group: System/Libraries
%description -n %libsoname
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
Summary: The development files for libmowgli
Group: Development/Libraries/C and C++
Requires: %libsoname = %version
Requires: glibc-devel
%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
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
%post -n %libsoname -p /sbin/ldconfig
%postun -n %libsoname -p /sbin/ldconfig
%files -n %libsoname
%defattr(-,root,root)
%_libdir/%name.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING doc/BOOST README
%_includedir/%name/
%_libdir/%name.so
%_libdir/pkgconfig/%name.pc
%changelog