%global debug_package %{nil} %global gitcommit 5579430fdc337d460589a2c404a4a070c906e8e1 %global gitdate 20241104.080500 %global shortcommit %(c=%{gitcommit}; echo ${c:0:7}) %global glib2_version 2.79.0 %global gtk4_version 4.15.0 %global libadwaita_version 1.6~beta Name: showtime Version: 48.0~%{gitdate}.%{shortcommit} Release: 1%{?dist} Summary: Modern video player built using GTK4 License: GPL-3.0-or-later URL: https://apps.gnome.org/Showtime/ %global tarball_version %%(echo %{version} | tr '~' '.') %global major_version %%(cut -d "." -f 1 <<<%{tarball_version}) # Source0: https://download.gnome.org/sources/%%{name}/%%{major_version}/%%{name}-%%{tarball_version}.tar.xz Source0: https://gitlab.gnome.org/GNOME/Incubator/%{name}/-/archive/%{gitcommit}/%{name}-%{gitcommit}.tar.gz BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: gettext BuildRequires: meson BuildRequires: blueprint-compiler BuildRequires: python3-devel BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} BuildRequires: pkgconfig(gnome-desktop-4) BuildRequires: pkgconfig(gtk4) >= %{gtk4_version} BuildRequires: pkgconfig(libadwaita-1) >= %{libadwaita_version} BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: gtk4%{_isa} >= %{gtk4_version} Requires: libadwaita%{_isa} >= %{libadwaita_version} Requires: python3%{_isa} Requires: hicolor-icon-theme Requires: gstreamer1-plugin-gtk4 %description Play your favorite movies and video files without hassle. Showtime features simple playback controls that fade out of your way when you're watching, fullscreen, adjustable playback speed, multiple language and subtitle tracks, and screenshots — everything you need for a straightforward viewing experience. %prep %autosetup -p1 -n %{name}-%{gitcommit} %build %meson %meson_build %install %meson_install %find_lang %{name} %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.gnome.Showtime.metainfo.xml desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop %files -f %{name}.lang %doc README.md %license COPYING %{python3_sitelib}/showtime/ %{_bindir}/showtime %{_datadir}/applications/org.gnome.Showtime.desktop %{_datadir}/glib-2.0/schemas/org.gnome.Showtime.gschema.xml %{_datadir}/icons/hicolor/scalable/apps/org.gnome.Showtime.svg %{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Showtime-symbolic.svg %{_metainfodir}/org.gnome.Showtime.metainfo.xml %{_datadir}/showtime/ %changelog * Thu Nov 7 2024 Steve Cossette - 48.0~20241104.080500.5579430-1 - Initial release