libsigc__3/libsigc++3.spec
Bjørn Lie 3f26ceab7a Accepting request 1114597 from GNOME:Next
- Update to version 3.6.0:
  + sigc++config.h.*: Update and clean up a bit for Visual Studio
  + scoped_connection: New wrapper to auto-disconnect a slot
  + signal: Add connect_first()
  + Documentation:
    - connection: Improve the class documentation
    - Improve Visual Studio build documentation
    - Remove AUTHORS and add general information to README.md
    - manual: Add paragraph about new scoped_connection
  + Tests: Add test_scoped_connection
  + Build:
    - Meson:
      . Don't copy files with configure_file()
      . Fix the evaluation of is_git_build on Windows
      . Don't require the 'dot' command to build the documentation
    - CMake: Prevent multiple target declaration for uninstall
    - Visual Studio: Support static builds
- Use autosetup macro.

- Update to version 3.4.0:
  + Add track_object(), deprecate track_obj()
  + Add trackable_signal_with_accumulator and trackable_signal
  + Examples, tests:
    - examples/member_method: Make on_print() non-virtual
    - test_accumulated.cc: clang++ requires another 'template'
    - test_limit_reference.cc: Don't use auto where a slot is
      required
  + Documentation: signal::make_slot(): Note that signal does not
    derive from trackable
  + Build:

OBS-URL: https://build.opensuse.org/request/show/1114597
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libsigc++3?expand=0&rev=42
2023-10-02 07:40:00 +00:00

103 lines
3.3 KiB
RPMSpec

#
# spec file for package libsigc++3
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%define _name libsigc++
Name: libsigc++3
Version: 3.6.0
Release: 0
Summary: Typesafe Signal Framework for C++
License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://libsigcplusplus.github.io/libsigcplusplus/
Source0: https://download.gnome.org/sources/libsigc++/3.6/%{_name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: meson
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 -n libsigc-3_0-0
Summary: Typesafe Signal Framework for C++
Group: System/Libraries
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n libsigc-3_0-0
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: libsigc-3_0-0 = %{version}
Requires: libstdc++-devel
%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
%autosetup -p1 -n %{_name}-%{version}
# Remove executable bit in NEWS...
chmod -x NEWS
%build
%meson
%meson_build
%install
%meson_install
%check
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256))
%meson_test
unset MALLOC_CHECK_ MALLOC_PERTURB_
%ldconfig_scriptlets -n libsigc-3_0-0
%files -n libsigc-3_0-0
%license COPYING
%doc NEWS README.md
%{_libdir}/libsigc-3.0.so.*
%files devel
%doc ChangeLog
%{_libdir}/libsigc-3.0.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/sigc++-3.0
%{_includedir}/sigc++-3.0/
%changelog