From f0f599187becb482393632568f9e7d7a5e6e2a86887eea106be8fa91bddeff90 Mon Sep 17 00:00:00 2001 From: Max Lin Date: Wed, 20 Aug 2025 18:42:10 +0800 Subject: [PATCH] Update to Factory version --- ...a23596d65d94aa889efe725174e6cd2903f0.patch | 32 -- _constraints | 20 +- _service | 28 ++ fractal-12.0.obscpio | 3 + fractal-4.4.1.tar.xz | 3 - fractal-fix-build.patch | 9 - fractal.changes | 385 ++++++++++++++++++ fractal.obsinfo | 4 + fractal.spec | 115 +++--- vendor.tar.zst | 3 + 10 files changed, 485 insertions(+), 117 deletions(-) delete mode 100644 6fa1a23596d65d94aa889efe725174e6cd2903f0.patch create mode 100644 _service create mode 100644 fractal-12.0.obscpio delete mode 100644 fractal-4.4.1.tar.xz delete mode 100644 fractal-fix-build.patch create mode 100644 fractal.obsinfo create mode 100644 vendor.tar.zst diff --git a/6fa1a23596d65d94aa889efe725174e6cd2903f0.patch b/6fa1a23596d65d94aa889efe725174e6cd2903f0.patch deleted file mode 100644 index 3d8af64..0000000 --- a/6fa1a23596d65d94aa889efe725174e6cd2903f0.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 6fa1a23596d65d94aa889efe725174e6cd2903f0 Mon Sep 17 00:00:00 2001 -From: Jonas Platte -Date: Sun, 31 Oct 2021 15:23:31 +0100 -Subject: [PATCH] Remove deprecated positional argument to i18n.merge_file - -See https://github.com/mesonbuild/meson/issues/9441 ---- - fractal-gtk/res/meson.build | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/fractal-gtk/res/meson.build b/fractal-gtk/res/meson.build -index 7a7a7d656..a176787c0 100644 ---- a/fractal-gtk/res/meson.build -+++ b/fractal-gtk/res/meson.build -@@ -2,7 +2,7 @@ subdir('icons') - - desktop_conf = configuration_data() - desktop_conf.set('icon', application_id) --desktop_file = i18n.merge_file ('desktop-file', -+desktop_file = i18n.merge_file ( - type: 'desktop', - input: configure_file( - input: files('org.gnome.Fractal.desktop.in.in'), -@@ -28,7 +28,7 @@ endif - - metainfo_conf = configuration_data() - metainfo_conf.set('appid', application_id) --metainfo_file = i18n.merge_file ('metainfo-file', -+metainfo_file = i18n.merge_file ( - input: configure_file( - input: files('org.gnome.Fractal.metainfo.xml.in.in'), - output: 'org.gnome.Fractal.metainfo.xml.in', diff --git a/_constraints b/_constraints index a5bfba9..3d61c4d 100644 --- a/_constraints +++ b/_constraints @@ -1,20 +1,16 @@ + + 4 - 4 + + 18 - - - - ppc64 - ppc64le - x86_64 - - - 4 + + 20 - - + + SLOW_CPU diff --git a/_service b/_service new file mode 100644 index 0000000..a3c8abd --- /dev/null +++ b/_service @@ -0,0 +1,28 @@ + + + + git + https://gitlab.gnome.org/World/fractal.git + 12 + + + 12.0 + v?(.*)\+0 + \1 + + + + + *.tar + zst + + + + fractal + zst + true + + + diff --git a/fractal-12.0.obscpio b/fractal-12.0.obscpio new file mode 100644 index 0000000..f390098 --- /dev/null +++ b/fractal-12.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f126ca0dae5666e7f5cd3161f74aa9b76f5b67a67d650d1b22d2babd41da0279 +size 11617805 diff --git a/fractal-4.4.1.tar.xz b/fractal-4.4.1.tar.xz deleted file mode 100644 index 3897593..0000000 --- a/fractal-4.4.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a072c1680aadfedc069755e9f634a6c963268118cd3ac60c3886eb51eeb9e04e -size 16631340 diff --git a/fractal-fix-build.patch b/fractal-fix-build.patch deleted file mode 100644 index 7d9d3e7..0000000 --- a/fractal-fix-build.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff -Nur orig-fractal-4.4.1/fractal-gtk/src/main.rs fractal-4.4.1/fractal-gtk/src/main.rs ---- orig-fractal-4.4.1/fractal-gtk/src/main.rs 2021-10-18 12:42:06.733971000 +0200 -+++ fractal-4.4.1/fractal-gtk/src/main.rs 2022-01-26 20:37:07.818569752 +0100 -@@ -1,4 +1,4 @@ --#![deny(dead_code, unused_imports, unused_must_use, unused_variables)] -+#![deny(unused_imports, unused_must_use, unused_variables)] - #[macro_use] - extern crate glib; - diff --git a/fractal.changes b/fractal.changes index b603020..adc881c 100644 --- a/fractal.changes +++ b/fractal.changes @@ -1,3 +1,388 @@ +------------------------------------------------------------------- +Mon Aug 11 16:52:39 UTC 2025 - Bjørn Lie + +- Update to version 12 (CVE-2055-55159, boo#1248050): + + Requesting invites to rooms (aka knocking) is now possible, as + is enabling such requests for room admins. + + The upcoming room version 12 is supported, with the special + power level of room creators. + + A room can be marked as unread via the context menu in the + sidebar. + + You can now see if a section in the sidebar has any + notifications or activity when it is collapsed. + + Clicking on the name of the sender of a message adds a mention + to them in the composer. + + The safety setting to hide media previews in rooms is now + synced between Matrix clients and we added another safety + setting (which is also synced) to hide avatars in invites. + + Updated translations. + +------------------------------------------------------------------- +Fri Aug 1 07:57:20 UTC 2025 - Bjørn Lie + +- Update to version 12.rc: + + The upcoming room version 12 is supported, with the special + power level of room creators. + + Requesting invites to rooms (aka knocking) is now possible. + + Clicking on the name of the sender of a message adds a mention + to them in the composer. + +------------------------------------------------------------------- +Tue Jul 15 08:02:57 UTC 2025 - Bjørn Lie + +- Update to version 12.beta+14 (boo#1246463, CVE-2025-53549): + + The safety setting to hide media previews in rooms is now + synced between Matrix clients. + + Added another safety setting (which is also synced) to hide + avatars in invites. + + A room can be marked as unread via the context menu in the + sidebar. + + Changed the UX a little for tombstoned rooms. Instead of + showing a banner at the top of the history, it now replaces the + composer at the bottom of the history. + + You can now see if a section in the sidebar has any + notifications or activity when it is collapsed. + + As usual, this release includes other improvements and fixes. + + Updated translations. + +------------------------------------------------------------------- +Tue Jun 10 16:59:41 UTC 2025 - Bjørn Lie + +- Update to version 11.2 (boo#1244411): + + This version updates the matrix-sdk-crypto dependency to + include a fix for a high severity security issue + (CVE-2025-48937). + +------------------------------------------------------------------- +Thu May 15 12:02:26 UTC 2025 - Bjørn Lie + +- Update to version 11.1: + + Due to a pesky bug that makes Fractal crash when our users + attempt to start a verification, we are releasing Fractal 11.1 + only 2 weeks after Fractal 11. And while we’re at it we also + backported a few fixes for smaller paper cuts! + +------------------------------------------------------------------- +Sun May 4 06:28:04 UTC 2025 - Bjørn Lie + +- Update to version 11: + + Support for login using the OAuth 2.0 API (as used by + matrix.org, which recently made the switch to Matrix + Authentication Service). + + Overhaul of the page that lists user sessions, with details + moved to subpages, for a less cluttered feel, and allowing to + rename sessions! + + Rearranged account settings, with a new Safety tab that + includes a setting to toggle media preview visibility. + + BlurHashes for images and videos, that are used as placeholders + while the media is loading or if the preview is disabled. + + Contiguous state events are grouped behind a single item. + + As usual, this release includes other improvements and fixes + thanks to all our contributors, and our upstream projects. + +------------------------------------------------------------------- +Tue Feb 11 16:56:58 UTC 2025 - Bjørn Lie + +- Update to version 10.1: + + Due to a couple of unfortunate but important regressions in + Fractal 10, we are releasing Fractal 10.1 so our users don’t + have to wait too long for them to be addressed. This minor + version fixes the following issues: + - Some rooms were stuck in an unread state, even after reading + them or marking them as read. + - Joining or creating a room would crash the app. + +------------------------------------------------------------------- +Fri Jan 31 22:16:41 UTC 2025 - Bjørn Lie + +- Update to version 10: + + The QR code scanning code has been ported to libaperture, the + library behind GNOME Camera. This should result in better + performance and more reliability. + + OAuth 2.0 compatibility was added, to make sure that we are + ready for the upcoming authentication changes for matrix.org. + + Pills for users and rooms mentions show consistently in the + right place instead of seemingly random places, getting rid of + one of our oldest and most annoying bug. + + Attachments go through the send queue, ensuring correct order + of all messages and improving the visual feedback. + + Videos were often not playing after loading in the room + history. This was fixed, and we also show properly when an + error occurred. + + We were downloading too many different sizes for avatar images, + which would fill the media cache needlessly. We now only + download a couple of sizes. This has the extra benefit of + fixing blurry or missing thumbnails in notifications. + +------------------------------------------------------------------- +Fri Jan 17 10:58:59 UTC 2025 - Bjørn Lie + +- Update to version 10.rc: + + The most next-gen addition goes to… making Fractal OIDC aware. + This ensures compatibility with the upcoming authentication + changes for matrix.org. + + The most valuable fix goes to… showing consistently pills for + users and rooms mentions in the right place instead of + seemingly random places, getting rid of one of our oldest and + most annoying bug. + + The most sensible improvement goes to… using the send queue for + attachments, ensuring correct order of all messages and + improving the visual feedback. + + The most underrated feature goes to… allowing to react to + stickers, fixing a crash in the process. + + The most obvious tweak goes to… removing the “Open Direct Chat” + menu entry from avatar menu and member profile in direct chats. + + The clearest enhancement goes to… labelling experimental + versions in the room upgrade menu as such. + + As usual, this release includes other improvements and fixes. + + Updated translations. +- Add pkgconfig(gstgtk4), pkgconfig(lcms2), rubygem(sass) and + rust-grass BuildRequires: New dependencies. + +------------------------------------------------------------------- +Mon Jan 6 19:36:16 UTC 2025 - Bjørn Lie + +- Add explicit gstreamer-plugins-good-gtk Requires: Ensure this + runtime dependency is in place (boo#1191723). + +------------------------------------------------------------------- +Wed Nov 13 09:11:51 UTC 2024 - Bjørn Lie + +- Update to version 9: + * We switched to the glycin library (the same one used by GNOME + Image Viewer) to load images, allowing us to fix several + issues, like supporting more animated formats and SVGs and + respecting EXIF orientation. + * The annoying bug where some rooms would stay as unread even + after opening them is now a distant memory. + * The media cache uses its own database that you can delete if + you want to free some space on your system. It will also soon + be able to clean up unused media files to prevent it from + growing indefinitely. + * Sometimes the day separators would show up with the wrong date, + not anymore! + * We migrated to the new GTK 4.16 and libadwaita 1.6 APIs, + including CSS variables, AdwButtonRow and AdwSpinner. + * We used to only rely on the secrets provider to tell us which + Matrix accounts are logged-in, which caused issues for people + sharing their secrets between devices. Now we also make sure + that there is a data folder for a given session before trying + to restore it. + * Our notifications are categorized as coming from an instant + messenger, so graphical shells that support it, such as Phosh, + can play a sound for them. + * Some room settings are hidden for direct chats, because it does + not make sense to change them in this type of room. + * The size of the headerbar would change depending on whether the + room has a topic or not. This will not happen anymore. +- Update URL and source service url to new home. +- Add pkgconfig(libseccomp) and pkgconfig(libwebp) BuildRequires: + New dependencies. +- Add explicit glycin-loaders Requires: New runtime dependency. +- Drop obsolete and unneeded update-desktop-files BuildRequires and + macro. +- Disable LTO via _lto_cflags %{nil} define, FTBFS without. +- Build for %{rust_tier1_arches} instead of only x86_64. + +------------------------------------------------------------------- +Thu Aug 1 16:28:28 UTC 2024 - Richard Rahl + +- update to version 8: + * Mentions are sent intentionally + * Authenticated media are supported + * Draft messages are kept per-room and persisted across restarts + * More links are detected in messages and room descriptions + * Collapsed categories in the sidebar are remembered between restarts + * A banner appears when synchronization with the homeserver fails + too many times in a row + * The verification and account recovery processes have been polished + * HTML rendering has been improved, with the support of new + elements and attributes + +------------------------------------------------------------------- +Fri May 3 01:32:44 UTC 2024 - Richard Rahl + +- update to version 7: + * Messages that failed to send can now be retried or discarded. + * Messages can be reported to server admins for moderation. + * Room details are now considered complete, with the addition of room address + management, permissions, and room upgrade. + * A new member menu appears when clicking on an avatar in the room history. + It offers a quick way to do many actions related to that person, + including opening a direct chat with them and moderating them. + * Pills are clickable and allow to directly go to a room or member profile. + * Account recovery, introduced during this cycle, could lead to an unclear + situation where it was still incomplete even after successfully going + through the process + * After fixing a focus issue upstream in GtkListView, we got rid of more + focus issues in our widgets. That should make the room history completely + accessible with keyboard navigation. + * Third party verification, that happens in a direct chat, was partly broken + as the banner about an ongoing verification was not showing up anymore. + The culprit was found and we took that opportunity to improve the security + instructions. Along with this bugfix, a coat of polish has been applied. +------------------------------------------------------------------- +Fri Mar 29 10:39:40 UTC 2024 - Richard Rahl + +- update to version 7.beta: + + Encryption support has been extended, with server-side key backup + and account recovery. + + Messages that failed to send can now be retried or discarded. + + Messages can be reported to server admins for moderation. + + Room details are now considered complete, with the addition of room + address management, permissions, and version upgrade. + + A new member menu appears when clicking on an avatar in the room history. + It offers a quick way to do many actions related to that person, including + opening a direct chat with them and moderating them. + + Pills are clickable and allow to directly go to a room or member profile. + + improvements on the accessibility front, for better navigability with a + screen reader. + +- add %suse_update_desktop_file as the wiki instructs +- enable dependency updating in cargo_vendor +- increase vm memory to 20G + +------------------------------------------------------------------- +Fri Jan 19 08:18:52 UTC 2024 - Richard Rahl + +- update to version 6: + + Tab auto-completion also works for mentioning public rooms + + The verification flow was rewritten + +- remove cargo_audit from _service file, as it's nowadays + included in the new version of obs-service-cargo + +------------------------------------------------------------------- +Mon Jan 8 10:12:31 UTC 2024 - Richard Rahl + +- update to version 6 release candidate 1: + + Matrix URIs can be opened with Fractal + + Our Join Room dialog now shows some room details as a preview + + Room members now have a profile page + + ingored people can be managed in the account settings + + The dialog to view an event’s source was reworked + +------------------------------------------------------------------- +Mon Jan 1 03:30:26 UTC 2024 - Richard Rahl + +- update to version 6 beta 1: + + Restoring sessions from Secret Services other than GNOME Keyring + has been fixed + + Times follow the format (12h or 24h) from the system settings + + Media history works in encrypted rooms + + The accessibility of the sidebar was improved + + More notifications settings were added, you can now set global + and per-room behavior and even manage your keywords + +------------------------------------------------------------------- +Tue Nov 28 03:32:07 UTC 2023 - Richard Rahl + +- update to version 5 + +- switch to the newer obs-service-cargo as it simplifies the + spec file + +------------------------------------------------------------------- +Wed Sep 20 21:53:12 UTC 2023 - Bjørn Lie + +- Build only for x86_64 for now, the other targets fails to much. + Replace the exsisting ExcludeArch with an ExclusiveArch. +- Fixup _service, recompress during build. Sadly we can not update + the vendored deps, as this fails the build. + +------------------------------------------------------------------- +Sat Aug 19 01:57:20 UTC 2023 - Luciano Santos + +- Update to version 5.beta2: + + Second beta release since the rewrite of Fractal to take + advantage of GTK 4 and the Matrix Rust SDK, an effort that + started in March 2021. + + The most visible changes since Fractal 5.beta1 are: + - Editing text messages. + - Logging in with homeservers that don’t support + auto-discovery. + - A refactor of the login flow should avoid crashes when going + back at any step. + - Sometimes two day dividers would appear next to each other + without messages between them, this is now fixed. + + Of course, there are also a lot of less visible changes, + notably a lot of refactoring and fixes. + + Updated translations. + +------------------------------------------------------------------- +Fri Aug 11 00:23:34 UTC 2023 - Luciano Santos + +- Update to version 5.beta1: + + First beta release since the rewrite of Fractal to take + advantage of GTK 4 and the Matrix Rust SDK. It is the result of + over two years of work. + + New features since Fractal 5.alpha1: + - Joining room by ID, by alias or with a Matrix URI. + - Creation of direct chats. + - Sending and displaying read receipts, read markers and typing + notifications. + - Notifications on new messages. + - Highlight messages with mentions. + - Added media file history viewers in the room details. + - Displaying the other user's avatar as a room avatar for + direct chats. + + There are a also a lot of less visible changes, fixes and + translations. + + Being still in beta stage, it might trigger crashes or other + bugs but overall should be pretty stable. + +- Changes from version 5.alpha1: + + Fractal 5.alpha1 is the first release since Fractal has been + rewritten to take advantage of GTK 4 and the Matrix Rust SDK. + It is the result of eighteen months of work. + + Currently supported features are: + - Sending and receiving messages and files. + - Sending files via Drag-n-Drop and pasting in the message + entry. + - Rendering of rich formatted (HTML) messages, as well as + media. + - Displaying edited messages, redacting messages. + - Showing and adding reactions. + - Tab completion of user names. + - Sending and displaying replies. + - Sharing the current location. + - Exploring the room directory. + - Sorting the rooms by category. + - Joining rooms. + - Sending and accepting invitations. + - Logging into multiple accounts at once. + - Logging in with Single-Sign On. + - Sending and reading encrypted messages. + - Verifying user sessions using cross-signing. + - Exporting and importing encryption keys. + - Managing the connected devices. + - Changing the user profile details. + - Deactivating the account. + + Major missing features are: Notifications and read markers. + +- Add new BuildRequires: gstreamer-pbutils-1.0, gstreamer-play-1.0, + libadwaita-1, libpipewire-0.3, shumate-1.0, sqlite3, + xdg-desktop-portal pkgconfig() modules; and desktop-file-utils. +- Drop no longer used/needed BuildRequires: atk, cairo, dbus-1, + gdk-3.0, gdk-pixbuf-2.0, gspell-1, gst-editing-services-1.0, + libhandy-1, libsecret-1, pango and pangocairo pkgconfig() + modules; and gmp-devel and cmake. +- Replace BuildRequires: cargo, c++_compiler and c_compiler with + cargo-packaging, clang, clang-devel, and llvm-devel; and + gstreamer-audio-1.0, gstreamer-bad-audio-1.0, + gstreamer-player-1.0, gstreamer-plugins-bad-1.0, + gstreamer-plugins-base-1.0, gtk+-3.0 and gtksourceview-4 with + gstreamer-pbutils-1.0, gstreamer-play-1.0, gtk4 and + gtksourceview-5 pkgconfig() modules. + +------------------------------------------------------------------- +Sun Aug 6 02:48:56 UTC 2023 - Luciano Santos + +- Update to version 4.4.2: There was no visible changes for the end + user. +- Drop merged upstream patches: fractal-fix-build.patch and + 6fa1a23596d65d94aa889efe725174e6cd2903f0.patch. + ------------------------------------------------------------------- Sat Feb 4 14:20:30 UTC 2023 - Bjørn Lie diff --git a/fractal.obsinfo b/fractal.obsinfo new file mode 100644 index 0000000..26fbfc5 --- /dev/null +++ b/fractal.obsinfo @@ -0,0 +1,4 @@ +name: fractal +version: 12.0 +mtime: 1754912154 +commit: ddc5001a79c17c133a83fbe8df994a960c127174 diff --git a/fractal.spec b/fractal.spec index efd4253..fef05de 100644 --- a/fractal.spec +++ b/fractal.spec @@ -1,7 +1,7 @@ # # spec file for package fractal # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,53 +16,55 @@ # -%define commitid 46141d42ea313ecce83c8843f96d2c42 +%define _lto_cflags %{nil} + +%define appname org.gnome.Fractal +%define glib_version 2.72 +%define gstreamer_version 1.20 +%define is_beta %(if echo %{version}|grep -q beta;then echo 1;fi) +%{?is_beta:%bcond_without beta_build}%{!?is_beta:%bcond_with beta_build} Name: fractal -Version: 4.4.1 +Version: 12.0 Release: 0 Summary: Matrix group messaging app License: GPL-3.0-or-later Group: Productivity/Networking/Instant Messenger -URL: https://wiki.gnome.org/Apps/Fractal -Source0: https://gitlab.gnome.org/GNOME/fractal/uploads/%{commitid}/%{name}-%{version}.tar.xz -# PATCH-FIX-UPSTREAM 6fa1a23596d65d94aa889efe725174e6cd2903f0.patch -- Fix build with meson 0.61.0 -Patch0: https://github.com/GNOME/fractal/commit/6fa1a23596d65d94aa889efe725174e6cd2903f0.patch -# PATCH-FIX-OPENSUSE fractal-fix-build.patch -- Downgrade dead_code to a warning, hackfix build for now -Patch1: fractal-fix-build.patch +URL: https://gitlab.gnome.org/World/fractal/-/tags +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst -BuildRequires: c++_compiler -BuildRequires: c_compiler -BuildRequires: cargo -BuildRequires: cmake -BuildRequires: gmp-devel +BuildRequires: cargo-packaging +BuildRequires: clang +BuildRequires: clang-devel +BuildRequires: desktop-file-utils +BuildRequires: llvm-devel BuildRequires: meson BuildRequires: pkgconfig -BuildRequires: rust -BuildRequires: pkgconfig(atk) >= 2.4 -BuildRequires: pkgconfig(cairo) >= 1.10 -BuildRequires: pkgconfig(dbus-1) -BuildRequires: pkgconfig(gdk-3.0) >= 3.22 -BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.30 -BuildRequires: pkgconfig(gio-2.0) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(gspell-1) >= 1.8 -BuildRequires: pkgconfig(gst-editing-services-1.0) -BuildRequires: pkgconfig(gstreamer-1.0) -BuildRequires: pkgconfig(gstreamer-audio-1.0) -BuildRequires: pkgconfig(gstreamer-bad-audio-1.0) -BuildRequires: pkgconfig(gstreamer-base-1.0) -BuildRequires: pkgconfig(gstreamer-player-1.0) -BuildRequires: pkgconfig(gstreamer-plugins-bad-1.0) -BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) -BuildRequires: pkgconfig(gstreamer-video-1.0) -BuildRequires: pkgconfig(gtk+-3.0) >= 3.22 -BuildRequires: pkgconfig(gtksourceview-4) >= 4.0 -BuildRequires: pkgconfig(libhandy-1) -BuildRequires: pkgconfig(libsecret-1) -BuildRequires: libopenssl-1_1-devel -BuildRequires: pkgconfig(pango) >= 1.34 -BuildRequires: pkgconfig(pangocairo) >= 1.34 +BuildRequires: rust-grass +BuildRequires: pkgconfig(gio-2.0) >= %{glib_version} +BuildRequires: pkgconfig(glib-2.0) >= %{glib_version} +BuildRequires: pkgconfig(glycin-gtk4-1) +BuildRequires: pkgconfig(gstgtk4) +BuildRequires: pkgconfig(gstreamer-1.0) >= %{gstreamer_version} +BuildRequires: pkgconfig(gstreamer-base-1.0) >= %{gstreamer_version} +BuildRequires: pkgconfig(gstreamer-pbutils-1.0) >= %{gstreamer_version} +BuildRequires: pkgconfig(gstreamer-play-1.0) >= %{gstreamer_version} +BuildRequires: pkgconfig(gstreamer-video-1.0) >= %{gstreamer_version} +BuildRequires: pkgconfig(gtk4) >= 4.10.0 +BuildRequires: pkgconfig(gtksourceview-5) >= 5.0.0 +BuildRequires: pkgconfig(lcms2) +BuildRequires: pkgconfig(libadwaita-1) >= 1.5.0 +BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.0 +BuildRequires: pkgconfig(libseccomp) +BuildRequires: pkgconfig(libwebp) +BuildRequires: pkgconfig(openssl) >= 1.0.1 +BuildRequires: pkgconfig(shumate-1.0) >= 1.0.0 +BuildRequires: pkgconfig(sqlite3) >= 3.24.0 +BuildRequires: pkgconfig(xdg-desktop-portal) >= 1.14.1 +Requires: glycin-loaders +Requires: gstreamer-plugins-good-gtk +ExclusiveArch: %{rust_tier1_arches} %description Fractal is a Matrix messaging app for GNOME written in Rust. Its @@ -72,40 +74,31 @@ free software projects. %lang_package %prep -%autosetup -p1 +%autosetup -p1 -a1 %build -# bypass error https://bugzilla.opensuse.org/show_bug.cgi?id=1175502 -# to avoid cargo reported error if config.guess has been changed -# by build macro. -%ifarch ppc64le -guessname='src/libbacktrace/config.guess' -cfgguess="./vendor/backtrace-sys/$guessname" -chkjson='./vendor/backtrace-sys/.cargo-checksum.json' -if [[ -f $cfgguess ]] && [[ -f $chkjson ]]; then - chksum=`sha256sum $cfgguess |sed -e 's/ .*//'` - grep -q $guessname $chkjson && grep -q $chksum $chkjson || sed -i -e "s#\($guessname.:.\)[0-9a-f]*#\1$chksum#" $chkjson -fi -%endif - -%define _lto_cflags %{nil} -%meson +export RUSTFLAGS="%{build_rustflags}" +%meson \ + -Dprofile=%{?with_beta_build:beta}%{!?with_beta_build:default} \ + ; %meson_build %install +export RUSTFLAGS="%{build_rustflags}" %meson_install %find_lang %{name} %{?no_lang_C} %files -%license LICENSE.txt -%doc README.md +%license LICENSE +%doc CONTRIBUTING.md README.md %{_bindir}/%{name} %dir %{_datadir}/%{name} -%{_datadir}/%{name}/resources.gresource -%{_datadir}/metainfo/org.gnome.Fractal.metainfo.xml +%{_datadir}/%{name}/{ui-,}resources.gresource +%{_datadir}/metainfo/%{appname}.metainfo.xml %{_datadir}/applications/org.gnome.Fractal.desktop -%{_datadir}/icons/hicolor/*/apps/org.gnome.Fractal*.* -%{_datadir}/glib-2.0/schemas/org.gnome.Fractal.gschema.xml +%{_datadir}/icons/hicolor/*/apps/%{appname}*.* +%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml +%{_datadir}/dbus-1/services/%{appname}.service %files lang -f %{name}.lang diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..14e6540 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55da260c60772b5dd59b7a3d09c6b54b3502d2952b8e0e86c95ebdc87a569a50 +size 67239643 -- 2.51.1