Initial build of the new parallel installable gtkmm-4.0 ABI version
This commit is contained in:
parent
dd7557eb90
commit
b382b3f574
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/gtkmm-4.4.0.tar.xz
|
98
gtkmm4.0.spec
Normal file
98
gtkmm4.0.spec
Normal file
@ -0,0 +1,98 @@
|
||||
%global apiver 4.0
|
||||
# first two digits of version
|
||||
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
|
||||
|
||||
%global glibmm_version 2.68.0
|
||||
%global gtk4_version 4.4.0
|
||||
%global cairomm_version 1.15.4
|
||||
%global pangomm_version 2.48.0
|
||||
%global gdk_pixbuf2_version 2.35.5
|
||||
|
||||
Name: gtkmm4.0
|
||||
Version: 4.4.0
|
||||
Release: %autorelease
|
||||
Summary: C++ interface for the GTK+ library
|
||||
|
||||
License: LGPLv2+
|
||||
URL: https://www.gtkmm.org/
|
||||
Source0: https://download.gnome.org/sources/gtkmm/%{release_version}/gtkmm-%{version}.tar.xz
|
||||
|
||||
BuildRequires: cairomm1.16-devel >= %{cairomm_version}
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gdk-pixbuf2-devel >= %{gdk_pixbuf2_version}
|
||||
BuildRequires: glibmm2.68-devel >= %{glibmm_version}
|
||||
BuildRequires: gtk4-devel >= %{gtk4_version}
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: m4
|
||||
BuildRequires: meson
|
||||
BuildRequires: mm-common
|
||||
BuildRequires: pangomm2.48-devel >= %{pangomm_version}
|
||||
|
||||
Requires: cairomm1.16%{?_isa} >= %{cairomm_version}
|
||||
Requires: gdk-pixbuf2%{?_isa} >= %{gdk_pixbuf2_version}
|
||||
Requires: glibmm2.68%{?_isa} >= %{glibmm_version}
|
||||
Requires: gtk4%{?_isa} >= %{gtk4_version}
|
||||
Requires: pangomm2.48%{?_isa} >= %{pangomm_version}
|
||||
|
||||
%description
|
||||
gtkmm is the official C++ interface for the popular GUI library GTK+.
|
||||
Highlights include type safe callbacks, and a comprehensive set of
|
||||
widgets that are easily extensible via inheritance.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: API documentation for %{name}
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: glibmm2.68-doc
|
||||
|
||||
%description doc
|
||||
This package contains the full API documentation for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n gtkmm-%{version}
|
||||
|
||||
# Copy demos before build to avoid including built binaries in -doc package
|
||||
mkdir -p _docs
|
||||
cp -a demos/ _docs/
|
||||
|
||||
|
||||
%build
|
||||
%meson -Dbuild-documentation=true
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README
|
||||
%{_libdir}/libgtkmm-%{apiver}.so.0*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/gtkmm-%{apiver}/
|
||||
%{_libdir}/libgtkmm-%{apiver}.so
|
||||
%{_libdir}/gtkmm-%{apiver}/
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%files doc
|
||||
%doc %{_docdir}/gtkmm-%{apiver}/
|
||||
%doc %{_datadir}/devhelp/
|
||||
%doc _docs/*
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
Loading…
Reference in New Issue
Block a user