166 lines
5.7 KiB
RPMSpec
166 lines
5.7 KiB
RPMSpec
%global apiver 1
|
|
%global gtk_version 4.15.2
|
|
%global glib_version 2.76.0
|
|
|
|
%global tarball_version 1.6.2
|
|
|
|
Name: libadwaita
|
|
Version: 1.6.8
|
|
Release: %autorelease
|
|
Summary: Building blocks for modern GNOME applications
|
|
|
|
# part of src/adw-spring-animation.c is MIT
|
|
License: LGPL-2.1-or-later AND MIT
|
|
URL: https://gitlab.gnome.org/GNOME/libadwaita
|
|
Source0: https://download.gnome.org/sources/%{name}/1.6/%{name}-%{tarball_version}.tar.xz
|
|
|
|
# Backports for post-1.6.2. What would be patch 0004
|
|
# removed pre-generated CSS support making /usr/bin/sassc
|
|
# a build requirement that we cannot/will-not use.
|
|
Patch: 0001-dialog-Properly-unparent-the-child-when-backed-by-a-.patch
|
|
Patch: 0002-dialog-Handle-close-before-and-right-after-present.patch
|
|
Patch: 0003-bottom-sheet-Fix-more-criticals-on-dispose.patch
|
|
Patch: 0005-ci-Build-sysext.patch
|
|
Patch: 0006-ci-Do-releases-from-CI.patch
|
|
Patch: 0007-clamp-Fix-multi-child-support.patch
|
|
Patch: 0008-bottom-sheet-Fix-a-crash-when-closing-twice.patch
|
|
Patch: 0009-header-bar-Ignore-split-views-outside-sheets.patch
|
|
Patch: 0010-combo-row-Fix-property-notification.patch
|
|
Patch: 0011-button-row-Add-accessible-role-presentation.patch
|
|
Patch: 0012-action-row-Set-accessible-role-presentation.patch
|
|
Patch: 0013-length-unit-Also-fall-back-if-gtk-xft-dpi-is-default.patch
|
|
Patch: 0014-Release-1.6.3.patch
|
|
Patch: 0015-preferences-dialog-Document-navigation.pop.patch
|
|
Patch: 0016-tab-box-grid-Fix-scrolling-to-newly-appearing-tabs.patch
|
|
Patch: 0017-dialog-Fix-closed-emission-with-window-backed-dialog.patch
|
|
Patch: 0018-combo-row-Set-width-chars-1-for-the-item-labels.patch
|
|
Patch: 0019-tab-box-grid-Fix-a-copypaste-error.patch
|
|
Patch: 0020-Update-Italian-translation.patch
|
|
Patch: 0021-breakpoint-Make-sure-to_string-is-locale-agnostic.patch
|
|
Patch: 0022-dialog-always-clear-priv-last_focus-weak-pointer.patch
|
|
Patch: 0023-dialog-keep-a-weak-pointer-on-focus_widget.patch
|
|
Patch: 0024-Release-1.6.4.patch
|
|
Patch: 0025-dialog-notify-for-current-breakpoint-passed-through-.patch
|
|
Patch: 0026-preferences-dialog-window-Fix-the-search-filter-stac.patch
|
|
Patch: 0027-Release-1.6.5.patch
|
|
Patch: 0028-meson-Don-t-install-internal-static-library.patch
|
|
Patch: 0029-shadow-helper-Avoid-needlessly-reassigning-CSS-class.patch
|
|
Patch: 0030-toast-overlay-The-role-is-GROUP-not-TAB_GROUP.patch
|
|
Patch: 0031-docs-clarify-translator-credits-for-multiple-contrib.patch
|
|
Patch: 0032-Release-1.6.6.patch
|
|
Patch: 0033-Update-Portuguese-translation.patch
|
|
Patch: 0034-widget-utils-Fix-a-crash-in-adw_decoration_layout_pr.patch
|
|
Patch: 0035-expander-row-Implement-grab_focus-properly.patch
|
|
Patch: 0036-carousel-Unset-scroll-timeout-ID.patch
|
|
Patch: 0037-avatar-Set-pixel-size-for-the-custom-image-too.patch
|
|
Patch: 0038-toast-overlay-fix-assertion-failure-when-showing-toa.patch
|
|
Patch: 0039-test-combo-row-Fix-a-leak.patch
|
|
Patch: 0040-about-dialog-window-Fix-a-leak.patch
|
|
Patch: 0041-accent-color-Move-yellow-green-boundary-a-bit.patch
|
|
Patch: 0042-Release-1.6.8.patch
|
|
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gcc
|
|
BuildRequires: gettext
|
|
BuildRequires: gi-docgen
|
|
BuildRequires: libappstream-glib
|
|
BuildRequires: meson >= 0.59.0
|
|
BuildRequires: vala
|
|
BuildRequires: pkgconfig(appstream)
|
|
BuildRequires: pkgconfig(fribidi)
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib_version}
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: pkgconfig(gtk4) >= %{gtk_version}
|
|
|
|
Requires: gtk4%{?_isa} >= %{gtk_version}
|
|
|
|
%description
|
|
Building blocks for modern GNOME applications.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: vala
|
|
Recommends: %{name}-demo = %{version}-%{release}
|
|
Recommends: %{name}-doc = %{version}-%{release}
|
|
|
|
%description devel
|
|
Development files for %{name}.
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation files for %{name}
|
|
BuildArch: noarch
|
|
|
|
Recommends: %{name}-devel = %{version}-%{release}
|
|
# Because web fonts from upstream are not bundled in the gi-docgen package,
|
|
# packages containing documentation generated with gi-docgen should depend on
|
|
# this metapackage to ensure the proper system fonts are present.
|
|
Recommends: gi-docgen-fonts
|
|
|
|
%description doc
|
|
Documentation files for %{name}.
|
|
|
|
|
|
%package demo
|
|
Summary: Demo files for %{name}
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
Suggests: %{name}-devel = %{version}-%{release}
|
|
|
|
%description demo
|
|
Demo files for %{name}.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{name}-%{tarball_version}
|
|
|
|
|
|
%build
|
|
%meson \
|
|
-Dgtk_doc=true \
|
|
%{nil}
|
|
%meson_build
|
|
|
|
|
|
%install
|
|
%meson_install
|
|
%find_lang %{name}
|
|
|
|
|
|
%check
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%license COPYING
|
|
%doc README.md AUTHORS NEWS
|
|
%{_bindir}/adwaita-%{apiver}-demo
|
|
%{_libdir}/%{name}-%{apiver}.so.0*
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
%files devel
|
|
%dir %{_datadir}/gir-1.0
|
|
%{_datadir}/gir-1.0/*-%{apiver}.gir
|
|
%{_datadir}/vala/vapi/%{name}-%{apiver}.*
|
|
%{_includedir}/%{name}-%{apiver}/
|
|
%{_libdir}/%{name}-%{apiver}.so
|
|
%{_libdir}/pkgconfig/*-%{apiver}.pc
|
|
|
|
%files doc
|
|
%doc HACKING.md
|
|
%{_docdir}/%{name}-%{apiver}/
|
|
|
|
%files demo
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/*.svg
|
|
%{_metainfodir}/*.metainfo.xml
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|