Blame SPECS/gtk4.spec

31b340
%if 0%{?fedora}
31b340
%global with_broadway 1
31b340
%endif
31b340
31b340
%global glib2_version 2.66.0
31b340
%global pango_version 1.47.0
31b340
%global cairo_version 1.14.0
31b340
%global gdk_pixbuf_version 2.30.0
31b340
%global wayland_protocols_version 1.20
31b340
%global wayland_version 1.14.91
31b340
%global epoxy_version 1.4
31b340
31b340
%global bin_version 4.0.0
31b340
31b340
# Filter provides for private modules
31b340
%global __provides_exclude_from ^%{_libdir}/gtk-4.0
31b340
31b340
Name:           gtk4
31b340
Version:        4.2.1
31b340
Release:        2%{?dist}
31b340
Summary:        GTK graphical user interface library
31b340
31b340
License:        LGPLv2+
31b340
URL:            https://www.gtk.org
31b340
Source0:        https://download.gnome.org/sources/gtk/4.2/gtk-%{version}.tar.xz
31b340
31b340
BuildRequires:  cups-devel
31b340
BuildRequires:  desktop-file-utils
31b340
BuildRequires:  docbook-style-xsl
31b340
BuildRequires:  gcc
31b340
BuildRequires:  gcc-c++
31b340
BuildRequires:  gettext
31b340
BuildRequires:  meson
31b340
BuildRequires:  pkgconfig(avahi-gobject)
31b340
BuildRequires:  pkgconfig(cairo) >= %{cairo_version}
31b340
BuildRequires:  pkgconfig(cairo-gobject) >= %{cairo_version}
31b340
BuildRequires:  pkgconfig(colord)
31b340
BuildRequires:  pkgconfig(egl)
31b340
BuildRequires:  pkgconfig(epoxy)
31b340
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) >= %{gdk_pixbuf_version}
31b340
BuildRequires:  pkgconfig(glib-2.0) >= %{glib2_version}
31b340
BuildRequires:  pkgconfig(gobject-introspection-1.0)
31b340
BuildRequires:  pkgconfig(graphene-gobject-1.0)
31b340
BuildRequires:  pkgconfig(gstreamer-player-1.0)
31b340
BuildRequires:  pkgconfig(json-glib-1.0)
31b340
BuildRequires:  pkgconfig(pango) >= %{pango_version}
31b340
BuildRequires:  pkgconfig(rest-0.7)
31b340
BuildRequires:  pkgconfig(sysprof-4)
31b340
BuildRequires:  pkgconfig(sysprof-capture-4)
31b340
BuildRequires:  pkgconfig(wayland-client) >= %{wayland_version}
31b340
BuildRequires:  pkgconfig(wayland-cursor) >= %{wayland_version}
31b340
BuildRequires:  pkgconfig(wayland-egl) >= %{wayland_version}
31b340
BuildRequires:  pkgconfig(wayland-protocols) >= %{wayland_protocols_version}
31b340
BuildRequires:  pkgconfig(xcomposite)
31b340
BuildRequires:  pkgconfig(xcursor)
31b340
BuildRequires:  pkgconfig(xdamage)
31b340
BuildRequires:  pkgconfig(xfixes)
31b340
BuildRequires:  pkgconfig(xi)
31b340
BuildRequires:  pkgconfig(xinerama)
31b340
BuildRequires:  pkgconfig(xkbcommon)
31b340
BuildRequires:  pkgconfig(xrandr)
31b340
BuildRequires:  pkgconfig(xrender)
31b340
BuildRequires:  /usr/bin/xsltproc
31b340
31b340
# standard icons
31b340
Requires: adwaita-icon-theme
31b340
# required for icon theme apis to work
31b340
Requires: hicolor-icon-theme
31b340
# split out in a subpackage
31b340
Requires: gtk-update-icon-cache
31b340
31b340
Requires: cairo%{?_isa} >= %{cairo_version}
31b340
Requires: cairo-gobject%{?_isa} >= %{cairo_version}
31b340
Requires: glib2%{?_isa} >= %{glib2_version}
31b340
Requires: libepoxy%{?_isa} >= %{epoxy_version}
31b340
Requires: libwayland-client%{?_isa} >= %{wayland_version}
31b340
Requires: libwayland-cursor%{?_isa} >= %{wayland_version}
31b340
Requires: pango%{?_isa} >= %{pango_version}
31b340
31b340
# required to support all the different image formats
31b340
Requires: gdk-pixbuf2-modules%{?_isa}
31b340
31b340
# make sure we have a reasonable gsettings backend
31b340
Recommends: dconf%{?_isa}
31b340
31b340
# Removed in F34
31b340
Obsoletes: gtk4-devel-docs < 4.1.2
31b340
31b340
%description
31b340
GTK is a multi-platform toolkit for creating graphical user
31b340
interfaces. Offering a complete set of widgets, GTK is suitable for
31b340
projects ranging from small one-off tools to complete application
31b340
suites.
31b340
31b340
This package contains version 4 of GTK.
31b340
31b340
%package devel
31b340
Summary: Development files for GTK
31b340
Requires: gtk4%{?_isa} = %{version}-%{release}
31b340
31b340
%description devel
31b340
This package contains the libraries and header files that are needed
31b340
for writing applications with version 4 of the GTK widget toolkit.
31b340
31b340
%prep
31b340
%autosetup -p1 -n gtk-%{version}
31b340
31b340
%build
31b340
export CFLAGS='-fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT %optflags'
31b340
%meson \
31b340
        -Dx11-backend=true \
31b340
        -Dwayland-backend=true \
31b340
%if 0%{?with_broadway}
31b340
        -Dbroadway-backend=true \
31b340
%endif
31b340
        -Dmedia-ffmpeg=disabled \
31b340
        -Dmedia-gstreamer=enabled \
31b340
        -Dvulkan=disabled \
31b340
        -Dxinerama=enabled \
31b340
        -Dsysprof=enabled \
31b340
        -Dcolord=enabled \
31b340
        -Dsassc=disabled \
31b340
        -Dgtk_doc=false \
31b340
        -Dman-pages=true \
31b340
        -Dinstall-tests=false
31b340
31b340
%meson_build
31b340
31b340
%install
31b340
%meson_install
31b340
31b340
%find_lang gtk40
31b340
%find_lang gtk40-properties
31b340
31b340
%if !0%{?with_broadway}
31b340
rm $RPM_BUILD_ROOT%{_mandir}/man1/gtk4-broadwayd.1*
31b340
%endif
31b340
31b340
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-4.0
31b340
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/modules
31b340
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/%{bin_version}/theming-engines
31b340
31b340
%check
31b340
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
31b340
31b340
%files -f gtk40.lang
31b340
%license COPYING
31b340
%doc AUTHORS NEWS README.md
31b340
%{_bindir}/gtk4-launch
31b340
%{_bindir}/gtk4-update-icon-cache
31b340
%{_libdir}/libgtk-4.so.1*
31b340
%dir %{_libdir}/gtk-4.0
31b340
%dir %{_libdir}/gtk-4.0/%{bin_version}
31b340
%{_libdir}/gtk-4.0/%{bin_version}/media/
31b340
%{_libdir}/gtk-4.0/%{bin_version}/printbackends/
31b340
%{_libdir}/gtk-4.0/%{bin_version}/theming-engines/
31b340
%{_libdir}/gtk-4.0/modules
31b340
%{_libdir}/girepository-1.0
31b340
%{_mandir}/man1/gtk4-launch.1*
31b340
%{_mandir}/man1/gtk4-update-icon-cache.1*
31b340
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.ColorChooser.gschema.xml
31b340
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.Debug.gschema.xml
31b340
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.EmojiChooser.gschema.xml
31b340
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.FileChooser.gschema.xml
31b340
%dir %{_datadir}/gtk-4.0
31b340
%{_datadir}/gtk-4.0/emoji/
31b340
%if 0%{?with_broadway}
31b340
%{_bindir}/gtk4-broadwayd
31b340
%{_mandir}/man1/gtk4-broadwayd.1*
31b340
%endif
31b340
31b340
%files devel -f gtk40-properties.lang
31b340
%{_libdir}/libgtk-4.so
31b340
%{_includedir}/*
31b340
%{_libdir}/pkgconfig/*
31b340
%{_bindir}/gtk4-builder-tool
31b340
%{_bindir}/gtk4-demo
31b340
%{_bindir}/gtk4-encode-symbolic-svg
31b340
%{_bindir}/gtk4-icon-browser
31b340
%{_bindir}/gtk4-query-settings
31b340
%{_datadir}/applications/org.gtk.Demo4.desktop
31b340
%{_datadir}/applications/org.gtk.IconBrowser4.desktop
31b340
%{_datadir}/applications/org.gtk.PrintEditor4.desktop
31b340
%{_datadir}/applications/org.gtk.WidgetFactory4.desktop
31b340
%{_datadir}/icons/hicolor/*/apps/org.gtk.Demo4*.svg
31b340
%{_datadir}/icons/hicolor/*/apps/org.gtk.IconBrowser4*.svg
31b340
%{_datadir}/icons/hicolor/*/apps/org.gtk.PrintEditor4*.svg
31b340
%{_datadir}/icons/hicolor/*/apps/org.gtk.WidgetFactory4*.svg
31b340
%{_bindir}/gtk4-demo-application
31b340
%{_bindir}/gtk4-print-editor
31b340
%{_bindir}/gtk4-widget-factory
31b340
%{_datadir}/gettext/
31b340
%{_datadir}/gir-1.0
31b340
%{_datadir}/glib-2.0/schemas/org.gtk.Demo4.gschema.xml
31b340
%{_datadir}/gtk-4.0/gtk4builder.rng
31b340
%{_datadir}/gtk-4.0/valgrind/
31b340
%{_datadir}/metainfo/org.gtk.Demo4.appdata.xml
31b340
%{_datadir}/metainfo/org.gtk.IconBrowser4.appdata.xml
31b340
%{_datadir}/metainfo/org.gtk.PrintEditor4.appdata.xml
31b340
%{_datadir}/metainfo/org.gtk.WidgetFactory4.appdata.xml
31b340
%{_mandir}/man1/gtk4-builder-tool.1*
31b340
%{_mandir}/man1/gtk4-demo.1*
31b340
%{_mandir}/man1/gtk4-demo-application.1*
31b340
%{_mandir}/man1/gtk4-encode-symbolic-svg.1*
31b340
%{_mandir}/man1/gtk4-icon-browser.1*
31b340
%{_mandir}/man1/gtk4-query-settings.1*
31b340
%{_mandir}/man1/gtk4-widget-factory.1*
31b340
31b340
%changelog
31b340
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.2.1-2
31b340
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
31b340
  Related: rhbz#1991688
31b340
31b340
* Wed May 05 2021 Kalev Lember <klember@redhat.com> - 4.2.1-1
31b340
- Update to 4.2.1
31b340
31b340
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.2.0-4
31b340
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
31b340
31b340
* Tue Apr 13 2021 Ray Strode <rstrode@redhat.com> - 4.2.0-3
31b340
- Rebuild
31b340
Related: #1940618
31b340
31b340
* Thu Apr 01 2021 Kalev Lember <klember@redhat.com> - 4.2.0-2
31b340
- Disable vulkan renderer
31b340
31b340
* Tue Mar 30 2021 Kalev Lember <klember@redhat.com> - 4.2.0-1
31b340
- Update to 4.2.0
31b340
31b340
* Fri Mar 26 2021 Kalev Lember <klember@redhat.com> - 4.1.2-2
31b340
- Rebuild to fix sysprof-capture symbols leaking into libraries consuming it
31b340
31b340
* Mon Mar 15 2021 Kalev Lember <klember@redhat.com> - 4.1.2-1
31b340
- Update to 4.1.2
31b340
- Disable gtk-doc support as we don't have gi-docgen in Fedora yet
31b340
- Remove old obsoletes
31b340
31b340
* Wed Feb 24 2021 Kalev Lember <klember@redhat.com> - 4.1.1-1
31b340
- Update to 4.1.1
31b340
- Enable sysprof support
31b340
31b340
* Fri Feb 19 2021 Kalev Lember <klember@redhat.com> - 4.1.0-3
31b340
- Backport upstream patch to fix a settings schema loading issue on Wayland
31b340
31b340
* Mon Feb 01 2021 Kalev Lember <klember@redhat.com> - 4.1.0-2
31b340
- Disable asserts and cast checks
31b340
31b340
* Sun Jan 31 2021 Kalev Lember <klember@redhat.com> - 4.1.0-1
31b340
- Update to 4.1.0
31b340
31b340
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-3
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
31b340
31b340
* Tue Jan 19 2021 Kalev Lember <klember@redhat.com> - 4.0.2-2
31b340
- Avoid rebuilding stylesheets with sassc during the build
31b340
31b340
* Tue Jan 19 2021 Kalev Lember <klember@redhat.com> - 4.0.2-1
31b340
- Update to 4.0.2
31b340
31b340
* Sat Jan 09 2021 Kalev Lember <klember@redhat.com> - 4.0.1-1
31b340
- Update to 4.0.1
31b340
31b340
* Sat Jan 09 2021 Kalev Lember <klember@redhat.com> - 4.0.0-3
31b340
- Fix vulkan reference in pc file
31b340
31b340
* Tue Dec 22 14:13:09 +04 2020 Marc-André Lureau <marcandre.lureau@redhat.com> - 4.0.0-2
31b340
- Add back gtk4-devel-docs
31b340
31b340
* Wed Dec 16 2020 Kalev Lember <klember@redhat.com> - 4.0.0-1
31b340
- Update to 4.0.0
31b340
- Tighten soname globs
31b340
31b340
* Fri Dec 11 2020 Kalev Lember <klember@redhat.com> - 3.99.5-1
31b340
- Update to 3.99.5
31b340
31b340
* Wed Dec 09 2020 Jeff Law <law@redhat.com> - 3.99.4-3
31b340
- Avoid diagnostics for gcc-11 false positive out of bounds accesses
31b340
31b340
* Sun Nov 15 2020 Jeff Law <law@redhat.com> - 3.99.4-2
31b340
- Fix bogus volatile caught by gcc-11
31b340
31b340
* Thu Nov  5 2020 Kalev Lember <klember@redhat.com> - 3.99.4-1
31b340
- Update to 3.99.4
31b340
31b340
* Fri Oct 16 2020 Kalev Lember <klember@redhat.com> - 3.99.3-1
31b340
- Update to 3.99.3
31b340
31b340
* Thu Oct 01 2020 Kalev Lember <klember@redhat.com> - 3.99.2-2
31b340
- Update required pango and glib2 versions
31b340
31b340
* Tue Sep 29 2020 Kalev Lember <klember@redhat.com> - 3.99.2-1
31b340
- Update to 3.99.2
31b340
31b340
* Mon Sep 28 2020 Jeff Law <law@redhat.com> - 3.99.1-2
31b340
- Re-enable LTO as upstream GCC target/96939 has been fixed
31b340
31b340
* Thu Sep 03 2020 Kalev Lember <klember@redhat.com> - 3.99.1-1
31b340
- Update to 3.99.1
31b340
- Drop wayland build conditionals
31b340
31b340
* Mon Aug 17 2020 Jeff Law <law@redhat.com> - 3.99.0-2
31b340
- Disable LTO on armv7hl
31b340
31b340
* Sat Aug 01 2020 Kalev Lember <klember@redhat.com> - 3.99.0-1
31b340
- Update to 3.99.0
31b340
31b340
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.98.5-3
31b340
- Second attempt - Rebuilt for
31b340
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
31b340
31b340
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.98.5-2
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
31b340
31b340
* Sun Jun 07 2020 Kalev Lember <klember@redhat.com> - 3.98.5-1
31b340
- Update to 3.98.5
31b340
31b340
* Tue May 19 2020 Kalev Lember <klember@redhat.com> - 3.98.4-1
31b340
- Update to 3.98.4
31b340
31b340
* Tue Apr 21 2020 Kalev Lember <klember@redhat.com> - 3.98.3-1
31b340
- Update to 3.98.3
31b340
- Temporarily disable built documentation as we don't have new enough gtk-doc
31b340
31b340
* Wed Apr 01 2020 Kalev Lember <klember@redhat.com> - 3.98.2-1
31b340
- Update to 3.98.2
31b340
31b340
* Sun Mar 22 2020 Kalev Lember <klember@redhat.com> - 3.98.1-1
31b340
- Update to 3.98.1
31b340
31b340
* Thu Mar 12 2020 Kalev Lember <klember@redhat.com> - 3.98.0-2
31b340
- Install missing gtkemojichooser.h (#1806509)
31b340
31b340
* Tue Feb 11 2020 Kalev Lember <klember@redhat.com> - 3.98.0-1
31b340
- Update to 3.98.0
31b340
- Use https for source URLs
31b340
31b340
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.96.0-3
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
31b340
31b340
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.96.0-2
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
31b340
31b340
* Tue May 07 2019 Kalev Lember <klember@redhat.com> - 3.96.0-1
31b340
- Update to 3.96.0
31b340
- Use GTK instead of GTK+ in descriptions
31b340
- Don't ship installed tests as they are currently broken
31b340
31b340
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.94.0-2
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
31b340
31b340
* Mon Oct 01 2018 Kalev Lember <klember@redhat.com> - 3.94.0-1
31b340
- Update to 3.94.0
31b340
- Remove and obsolete immodules subpackages
31b340
- Build new gstreamer media backend
31b340
31b340
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.92.1-4
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
31b340
31b340
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 3.92.1-3
31b340
- Rebuild to fix GCC 8 mis-compilation
31b340
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
31b340
31b340
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.92.1-2
31b340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
31b340
31b340
* Thu Nov 02 2017 Kalev Lember <klember@redhat.com> - 3.92.1-1
31b340
- Update to 3.92.1
31b340
- Enable installed tests
31b340
31b340
* Tue Aug 08 2017 Kalev Lember <klember@redhat.com> - 3.91.2-1
31b340
- Update to 3.91.2
31b340
31b340
* Thu Jul 20 2017 Kalev Lember <klember@redhat.com> - 3.91.1-1
31b340
- Update to 3.91.1
31b340
31b340
* Wed Jun 14 2017 Kalev Lember <klember@redhat.com> - 3.91.0-2
31b340
- Disable installed tests due to file conflicts between gtk3-tests and
31b340
  gtk4-tests
31b340
31b340
* Wed Jun 14 2017 Kalev Lember <klember@redhat.com> - 3.91.0-1
31b340
- Initial Fedora packaging