From bbb89173d36d5b74291bf660f326397fcdeba218 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Mon, 14 Sep 2020 15:32:08 +0900 Subject: [PATCH] Bump to libsigc++ 2.9.3 Change-Id: I16c7db381c72c8469e86d672f1ad9df8bad68f41 --- packaging/libsigc++.manifest | 5 +++ packaging/libsigc++.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 packaging/libsigc++.manifest create mode 100644 packaging/libsigc++.spec diff --git a/packaging/libsigc++.manifest b/packaging/libsigc++.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libsigc++.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libsigc++.spec b/packaging/libsigc++.spec new file mode 100644 index 0000000..5bd1683 --- /dev/null +++ b/packaging/libsigc++.spec @@ -0,0 +1,87 @@ +# +# spec file for package libsigc++2 +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +Name: libsigc++ +Version: 2.9.3 +Release: 0 +Summary: Typesafe Signal Framework for C++ +License: LGPL-2.1+ +Group: Development/Libraries/C and C++ +URL: http://libsigc.sourceforge.net/ +Source: http://download.gnome.org/sources/libsigc++/2.9/%{name}-%{version}.tar.xz +Source1001: %{name}.manifest +BuildRequires: m4 +BuildRequires: pkgconfig + +%description +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. + +%package devel +Summary: Typesafe Signal Framework for C++ +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} + +%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} +cp %{SOURCE1001} . + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print + +%check +export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) +make %{?_smp_mflags} check +unset MALLOC_CHECK_ MALLOC_PERTURB_ + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license COPYING +%doc AUTHORS ChangeLog NEWS README +%{_libdir}/libsigc-2.0.so.* + +%files devel +%{_libdir}/libsigc-2.0.so +%{_libdir}/pkgconfig/*.pc +%{_libdir}/sigc++-2.0 +%{_includedir}/sigc++-2.0/ +%{_datadir}/devhelp/books/%{name}-2.0 +%doc %{_datadir}/doc/%{name}-2.0 +%dir %{_datadir}/devhelp +%dir %{_datadir}/devhelp/books + +%changelog -- 2.7.4