2021-09-14 16:43:28 +00:00
|
|
|
%global apiver 2.68
|
|
|
|
# first two digits of version
|
|
|
|
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
|
|
|
|
|
|
|
|
%global libsigc_version 3.0.0
|
2023-07-17 08:37:30 +00:00
|
|
|
%global glib2_version 2.77.0
|
2021-09-14 16:43:28 +00:00
|
|
|
|
|
|
|
Name: glibmm2.68
|
2023-09-19 11:16:33 +00:00
|
|
|
Version: 2.78.0
|
2021-09-14 16:43:28 +00:00
|
|
|
Release: %autorelease
|
|
|
|
Summary: C++ interface for the GLib library
|
|
|
|
|
2023-07-17 08:37:30 +00:00
|
|
|
License: LGPL-2.1-or-later AND GPL-2.0-or-later
|
2021-09-14 16:43:28 +00:00
|
|
|
URL: http://www.gtkmm.org/
|
2022-04-09 06:48:58 +00:00
|
|
|
Source0: https://download.gnome.org/sources/glibmm/%{release_version}/glibmm-%{version}.tar.xz
|
2021-09-14 16:43:28 +00:00
|
|
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
2022-04-09 06:48:58 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
|
|
|
|
BuildRequires: pkgconfig(sigc++-3.0) >= %{libsigc_version}
|
2021-09-14 16:43:28 +00:00
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: mm-common
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
|
|
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
|
|
Requires: libsigc++30%{?_isa} >= %{libsigc_version}
|
|
|
|
|
|
|
|
# Do not export private Perl modules
|
|
|
|
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((DocsParser|Enum|Function|FunctionBase|GtkDefs|Object|Output|Property|Util|WrapParser)\\)
|
|
|
|
|
|
|
|
%description
|
|
|
|
glibmm is the official C++ interface for the popular cross-platform
|
|
|
|
library GLib. It provides non-UI API that is not available in standard
|
|
|
|
C++ and makes it possible for gtkmm to wrap GObject-based APIs.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers for developing programs that will use %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the static libraries and header files needed for
|
|
|
|
developing glibmm applications.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}, includes full API docs
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: libsigc++20-doc
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the full API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n glibmm-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%meson -Dbuild-documentation=true
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_libdir}/glibmm-%{apiver}/proc/generate_wrap_init.pl
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_libdir}/glibmm-%{apiver}/proc/gmmproc
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2023-07-17 08:37:30 +00:00
|
|
|
%doc NEWS README.md
|
2021-09-14 16:43:28 +00:00
|
|
|
%{_libdir}/libgiomm-%{apiver}.so.1*
|
|
|
|
%{_libdir}/libglibmm-%{apiver}.so.1*
|
|
|
|
%{_libdir}/libglibmm_generate_extra_defs-%{apiver}.so.1*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/glibmm-%{apiver}/
|
|
|
|
%{_includedir}/giomm-%{apiver}/
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/glibmm-%{apiver}/
|
|
|
|
%{_libdir}/giomm-%{apiver}/
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{_datadir}/devhelp/
|
|
|
|
%doc %{_docdir}/glibmm-%{apiver}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|