libmowgli2/libmowgli2.spec

106 lines
3.5 KiB
RPMSpec

#
# spec file for package libmowgli2
#
# Copyright (c) 2016 SUSE LINUX 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: libmowgli2
%define lname libmowgli-2-0
Summary: A development framework for C (like GLib)
License: ISC
Group: Development/Libraries/C and C++
Version: 2.1.0
Release: 0
Url: http://atheme.org/projects/libmowgli.html
#Git-Clone: git://github.com/atheme/libmowgli-2
Source: https://github.com/atheme/libmowgli-2/archive/v%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libopenssl-devel
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 %lname
Summary: Shared library from libmowgli v2
Group: System/Libraries
%description -n %lname
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 v2.
%package devel
Summary: The development files for libmowgli v2
Group: Development/Libraries/C and C++
Requires: %lname = %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 v2.
%prep
%setup -qn libmowgli-2-%version
%build
if [ ! -e configure ]; then
./autogen.sh;
fi;
%configure
# They are still on so.0, but the ABI changed pretty surely
echo 'V_%version { global: *; };' >mowgli2.sym
make %{?_smp_mflags} LDFLAGS="-Wl,--version-script=$PWD/mowgli2.sym"
%install
make install DESTDIR="%buildroot"
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/libmowgli-2.so.0*
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING doc/BOOST README
%_includedir/libmowgli-2
%_libdir/libmowgli-2.so
%_libdir/pkgconfig/libmowgli-2.pc
%changelog