Репозиторий Sisyphus
Последнее обновление: 28 мая 2020 | Пакетов: 17571 | Посещений: 18628987
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libsigc++2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable snapshot
%def_enable check

%define _name libsigc++
%define ver_major 2.10
%def_enable docs

Name: %{_name}2
Version: %ver_major.3
Release: alt1

Summary: The Typesafe Callback Framework for C++
License: LGPL-2.1
Group: System/Libraries
Url: https://libsigcplusplus.github.io/libsigcplusplus/

%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
%else
#VCS: https://github.com/libsigcplusplus/libsigcplusplus.git
Source: %_name-%version.tar
%endif

Provides: libsigc++2.0 = %version-%release
Obsoletes: libsigc++2.0 < %version-%release
# Automatically added by buildreq on Fri Nov 19 2010
BuildRequires: gcc-c++ mm-common
%{?_enable_docs:BuildRequires: docbook-style-xsl doxygen graphviz xsltproc}

%description
libsigc++ implements a typesafe callback system for standard C++.
It allows you to define signals and to connect those signals to any
callback function, either global or a member function, regardless of
whether it is static or virtual.

%package devel
Summary: Development files for libsigc++ library
Group: Development/C++
Requires: %name = %version-%release
Provides: libsigc++2.0-devel = %version-%release
Obsoletes: libsigc++2.0-devel < %version-%release

%description devel
This package contains development files for the software development
using libsigc++ library.

%package doc
Summary: Documentation for libsigc++ library
Group: Books/Other
BuildArch: noarch
Provides: libsigc++2.0-doc = %version-%release
Obsoletes: libsigc++2.0-doc < %version-%release

%description doc
This package provides API documentation of libsigc++ library.

%prep
%setup -n %_name-%version

%build
%if_enabled snapshot
mm-common-prepare -f
%autoreconf
%endif
%configure --disable-static \
   %{?_disable_docs:--disable-documentation}
%nil
%make_build DOCBOOK_STYLESHEET=/usr/share/xml/docbook/xsl-stylesheets/html/chunk.xsl

%install
%makeinstall_std
%define docdir %_docdir/libsigc++-2.0
%{?_disable_docs:mkdir -p %buildroot%docdir}
install -pm644 AUTHORS NEWS README %buildroot%docdir/

%check
%make_build -k check

%files
%_libdir/*.so.*
%dir %docdir
%docdir/[ANR]*

%files devel
%_libdir/*.so
%_libdir/sigc*
%_includedir/*
%_pkgconfigdir/*

%files doc
%docdir
%exclude %docdir/[ANR]*
%{?_enable_docs:%_datadir/devhelp/books/*}


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin