File hypnotix.spec of Package hypnotix

#
# spec file for package hypnotix
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           hypnotix
Version:        0
Release:        0
Summary:        An M3U IPTV Player
License:        GPL-3.0-only
URL:            https://github.com/linuxmint/hypnotix
Source0:        %{name}-%{version}.tar.zst

BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
Requires:       yt-dlp
Requires:       circle-flags
Requires:       python3-IMDbPY
Requires:       python3-gobject-Gdk
Requires:       python3-pycairo
Requires:       python3-requests
Requires:       python3-setproctitle
Requires:       python3-Unidecode
Requires:       python3-xapp
Requires:       typelib-1_0-Gtk-3_0
BuildArch:      noarch

%description
Hypnotix is an IPTV streaming application with support for live TV, movies and series.

%lang_package

%prep
%autosetup

%build
%make_build all

%install
cp -r usr %{buildroot}

# Fix non-executable script
chmod +x %{buildroot}%{_prefix}/lib/%{name}/xtream.py

%find_lang %{name}

# Validate desktop file (replaces deprecated suse_update_desktop_file)
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop || true

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_prefix}/lib/%{name}
%{_datadir}/glib-2.0/schemas/org.x.hypnotix.gschema.xml
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/hypnotix.svg

%files lang -f %{name}.lang

%changelog
* Wed Nov 19 2025 itachi_re <xanbenson99@gmail.com>
- Initial package for openSUSE
openSUSE Build Service is sponsored by