2007-01-12 17:13:42 +01:00
#
2011-03-21 15:04:15 +01:00
# spec file for package libsigc++2
2007-01-12 17:13:42 +01:00
#
2018-03-05 15:05:11 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2007-01-12 17:13:42 +01:00
#
2008-09-15 00:58:19 +02:00
# 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.
2018-12-13 16:17:00 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-12 17:13:42 +01:00
#
2008-04-02 22:18:26 +02:00
2007-01-12 17:13:42 +01:00
%define _name libsigc++
2018-03-05 15:05:11 +01:00
Name : libsigc++2
2018-12-13 16:17:00 +01:00
Version : 2.10.1
2012-09-25 22:29:49 +02:00
Release : 0
2007-01-12 17:13:42 +01:00
Summary : Typesafe Signal Framework for C++
2018-03-05 15:05:11 +01:00
License : LGPL-2.1-or-later
2016-12-15 19:27:40 +01:00
Group : Development/Libraries/C and C++
2018-03-05 15:05:11 +01:00
URL : http://libsigc.sourceforge.net/
2016-09-20 20:35:06 +02:00
Source : http://download.gnome.org/sources/libsigc++/2.10/%{_name}-%{version} .tar.xz
2010-02-19 16:32:19 +01:00
Source99 : baselibs.conf
2016-02-05 00:25:16 +01:00
# PATCH-FIX-OPENSUSE libsigc++-std-c11.patch dimstar@opensuse.org -- Add -std=c11 to CFLAGS when using libsigc++ to build. This is not upstreamable in this form as the used CXX macro should handle that, so needs more work (and entry points in mm-common)
Patch0 : libsigc++-std-c11.patch
2012-09-25 22:29:49 +02:00
BuildRequires : gcc-c++
2017-02-09 15:08:40 +01:00
BuildRequires : m4
2018-03-05 15:05:11 +01:00
BuildRequires : pkgconfig
2007-01-12 17:13:42 +01:00
%description
This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. It is the most
2011-06-02 17:34:02 +02:00
complete library of its kind with the ability to connect an abstract
2007-01-12 17:13:42 +01:00
callback to a class method, function, or function object. It contains
adaptor classes for connection of dissimilar callbacks and has an ease
of use unmatched by other C++ callback libraries.
2011-03-21 11:25:57 +01:00
%package -n libsigc-2_0-0
Summary : Typesafe Signal Framework for C++
2012-09-25 22:29:49 +02:00
Group : System/Libraries
2011-03-21 11:25:57 +01:00
Provides : %{name} = %{version}
2011-05-04 17:57:28 +02:00
Obsoletes : %{name} < %{version}
2011-03-21 11:25:57 +01:00
%description -n libsigc-2_0-0
This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. It is the most
2011-06-02 17:34:02 +02:00
complete library of its kind with the ability to connect an abstract
2011-03-21 11:25:57 +01:00
callback to a class method, function, or function object. It contains
adaptor classes for connection of dissimilar callbacks and has an ease
of use unmatched by other C++ callback libraries.
2007-01-12 17:13:42 +01:00
%package devel
Summary : Typesafe Signal Framework for C++
2012-09-25 22:29:49 +02:00
Group : Development/Libraries/C and C++
Requires : libsigc-2_0-0 = %{version}
Requires : libstdc++-devel
2007-01-12 17:13:42 +01:00
%description devel
This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. It is the most
complete library of its kind with the ability to connect an abstract
callback to a class method, function, or function object. It contains
adaptor classes for connection of dissimilar callbacks and has an ease
of use unmatched by other C++ callback libraries.
%prep
%setup -q -n %{_name}-%{version}
2016-06-19 13:33:03 +02:00
if [ $(gcc -dumpversion | awk -F. '{print $1}' ) -lt 6 ]; then
2016-02-05 00:25:16 +01:00
%patch0 -p1
2016-06-19 13:33:03 +02:00
fi
2007-01-12 17:13:42 +01:00
%build
2016-12-15 19:27:40 +01:00
%configure --disable-static
2012-09-25 22:29:49 +02:00
make %{?_smp_mflags}
2007-01-12 17:13:42 +01:00
%install
2012-09-25 22:29:49 +02:00
%make_install
2018-03-05 15:05:11 +01:00
find %{buildroot} -type f -name " * . l a " -delete -print
2007-01-12 17:13:42 +01:00
2012-09-25 22:29:49 +02:00
%check
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256))
2018-03-05 15:05:11 +01:00
make %{?_smp_mflags} check
2012-09-25 22:29:49 +02:00
unset MALLOC_CHECK_ MALLOC_PERTURB_
2007-01-12 17:13:42 +01:00
2011-03-21 11:25:57 +01:00
%post -n libsigc-2_0-0 -p /sbin/ldconfig
%postun -n libsigc-2_0-0 -p /sbin/ldconfig
2007-01-12 17:13:42 +01:00
2011-03-21 11:25:57 +01:00
%files -n libsigc-2_0-0
2018-03-05 15:05:11 +01:00
%license COPYING
%doc AUTHORS ChangeLog NEWS README
2011-03-21 11:25:57 +01:00
%{_libdir} /libsigc-2.0.so.*
2007-01-12 17:13:42 +01:00
%files devel
2011-03-21 11:25:57 +01:00
%{_libdir} /libsigc-2.0.so
2007-01-12 17:13:42 +01:00
%{_libdir} /pkgconfig/*.pc
%{_libdir} /sigc++-2.0
2009-09-04 01:31:44 +02:00
%{_includedir} /sigc++-2.0/
%{_datadir} /devhelp/books/%{_name}-2.0
%doc %{_datadir} /doc/%{_name}-2.0
# Avoid BuildRequires on devhelp
%dir %{_datadir} /devhelp
%dir %{_datadir} /devhelp/books
2008-04-02 22:18:26 +02:00
2007-09-19 19:13:26 +02:00
%changelog