Group :: Sistema/Bibliotecas
RPM: libglibmm2.68
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable snapshot
%define rname glibmm
%define ver_major 2.76
%define ver_base 2.68
%define api_ver %ver_base
%def_enable docs
# see %%setup section below
%def_enable check
Name: lib%rname%api_ver
Version: %ver_major.0
Release: alt1
Summary: C++ wrapper for GLib
License: LGPL-2.1 and GPL-2.0
Group: System/Libraries
Url: https://gtkmm.sourceforge.net/
%if_enabled snapshot
Source: %rname-%version.tar
%else
Source: ftp://ftp.gnome.org/pub/gnome/sources/glibmm/%ver_major/%rname-%version.tar.xz
%endif
%define glib_ver 2.76
%define sigc_ver 3.0.0
%add_perl_lib_path %_libdir/glibmm-%api_ver/proc/pm
# to avoid duplicate provides remove self-satisfied perl deps
# basename -a -s .pm tools/pm/*.pm| sed -E 's;$;\\\\|;g' |tr -d '\n'
%define pm_deps DocsParser\\|Enum\\|FunctionBase\\|Function\\|GtkDefs\\|Object\\|Output\\|Property\\|Util\\|WrapParser
%filter_from_provides /%pm_deps/d
%filter_from_requires /%pm_deps/d
BuildRequires(pre): meson
BuildRequires: mm-common gcc-c++
BuildRequires: libgio-devel >= %glib_ver libsigc++3-devel >= %sigc_ver
BuildRequires: perl-XML-Parser
%{?_enable_docs:BuildRequires: docbook-style-xsl doxygen graphviz fonts-ttf-open-sans xsltproc}
%description
A C++ interface for glib library.
This package contains the library needed to run programs dynamically
linked with glibmm.
%package devel
Summary: Headers and development files of glibmm
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
%description devel
A C++ interface for glib library.
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need glibmm.
%package devel-doc
Summary: glibmm documentation
Group: Development/Documentation
BuildArch: noarch
%description devel-doc
Gtkmm provides a C++ interface to the GTK+ GUI library.
glibmm originally belongs to gtkmm, but is now separated,
for use with non-GUI software written in C++.
This package contains all API documentation for glibmm.
%prep
%setup -n %rname-%version
# online tests restricted in hasher
sed -i '/giomm_tls_client/d' tests/meson.build
%build
%{?_enable_snapshot:mm-common-prepare -f}
%meson \
%{?_enable_docs:-Dbuild-documentation=true} \
%{?_enable_snapshot:-Dmaintainer-mode=true
-Dbuild-documentation=true}
%nil
%meson_build
%install
%meson_install
%check
export LD_LIBRARY_PATH=%buildroot%_libdir
%meson_test
%files
%doc AUTHORS NEWS
%_libdir/*.so.*
%files devel
%_includedir/glibmm-%api_ver/
%_includedir/giomm-%api_ver/
%_libdir/*.so
%_libdir/glibmm-%api_ver/
%_libdir/giomm-%api_ver/
%_pkgconfigdir/*-%api_ver.pc
%if_enabled docs
%files devel-doc
%_docdir/%rname-%api_ver/
%_datadir/devhelp/books/%rname-%api_ver
%endif
%changelog
…
Todas as alterações você pod ver aqui
%define rname glibmm
%define ver_major 2.76
%define ver_base 2.68
%define api_ver %ver_base
%def_enable docs
# see %%setup section below
%def_enable check
Name: lib%rname%api_ver
Version: %ver_major.0
Release: alt1
Summary: C++ wrapper for GLib
License: LGPL-2.1 and GPL-2.0
Group: System/Libraries
Url: https://gtkmm.sourceforge.net/
%if_enabled snapshot
Source: %rname-%version.tar
%else
Source: ftp://ftp.gnome.org/pub/gnome/sources/glibmm/%ver_major/%rname-%version.tar.xz
%endif
%define glib_ver 2.76
%define sigc_ver 3.0.0
%add_perl_lib_path %_libdir/glibmm-%api_ver/proc/pm
# to avoid duplicate provides remove self-satisfied perl deps
# basename -a -s .pm tools/pm/*.pm| sed -E 's;$;\\\\|;g' |tr -d '\n'
%define pm_deps DocsParser\\|Enum\\|FunctionBase\\|Function\\|GtkDefs\\|Object\\|Output\\|Property\\|Util\\|WrapParser
%filter_from_provides /%pm_deps/d
%filter_from_requires /%pm_deps/d
BuildRequires(pre): meson
BuildRequires: mm-common gcc-c++
BuildRequires: libgio-devel >= %glib_ver libsigc++3-devel >= %sigc_ver
BuildRequires: perl-XML-Parser
%{?_enable_docs:BuildRequires: docbook-style-xsl doxygen graphviz fonts-ttf-open-sans xsltproc}
%description
A C++ interface for glib library.
This package contains the library needed to run programs dynamically
linked with glibmm.
%package devel
Summary: Headers and development files of glibmm
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
%description devel
A C++ interface for glib library.
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need glibmm.
%package devel-doc
Summary: glibmm documentation
Group: Development/Documentation
BuildArch: noarch
%description devel-doc
Gtkmm provides a C++ interface to the GTK+ GUI library.
glibmm originally belongs to gtkmm, but is now separated,
for use with non-GUI software written in C++.
This package contains all API documentation for glibmm.
%prep
%setup -n %rname-%version
# online tests restricted in hasher
sed -i '/giomm_tls_client/d' tests/meson.build
%build
%{?_enable_snapshot:mm-common-prepare -f}
%meson \
%{?_enable_docs:-Dbuild-documentation=true} \
%{?_enable_snapshot:-Dmaintainer-mode=true
-Dbuild-documentation=true}
%nil
%meson_build
%install
%meson_install
%check
export LD_LIBRARY_PATH=%buildroot%_libdir
%meson_test
%files
%doc AUTHORS NEWS
%_libdir/*.so.*
%files devel
%_includedir/glibmm-%api_ver/
%_includedir/giomm-%api_ver/
%_libdir/*.so
%_libdir/glibmm-%api_ver/
%_libdir/giomm-%api_ver/
%_pkgconfigdir/*-%api_ver.pc
%if_enabled docs
%files devel-doc
%_docdir/%rname-%api_ver/
%_datadir/devhelp/books/%rname-%api_ver
%endif
%changelog
…
Todas as alterações você pod ver aqui