File jellyfin-media-player.spec of Package jellyfin-media-player
# Spec file for Jellyfin Media Player
Name: jellyfin-media-player
Version: 1.12.0
Release: 0
License: GPL-2.0
Group: Productivity/Multimedia/Video/Players
Summary: The Jellyfin Desktop Client
Url: https://github.com/jellyfin/jellyfin-media-player
Source: https://github.com/jellyfin/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: SDL2-devel
BuildRequires: libqt5-qtwebengine-devel
BuildRequires: libqt5-qtquickcontrols2
BuildRequires: libqt5-qtx11extras-devel
BuildRequires: libcec-devel
BuildRequires: libqt5-qtquickcontrols
BuildRequires: libqt5-qtwebengine
BuildRequires: libqt5-qtwebchannel-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: libqt5-qtbase-private-headers-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cmake
BuildRequires: wget
%if 0%{?suse_version} <= 1500
BuildRequires: python
%else
BuildRequires: python313
%endif
BuildRequires: curl
BuildRequires: mpv-devel
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A package for Jellyfin Media Player
%prep
%autosetup -p1 -n %{name}-%{version}
%check
%build
# cd build # Not needed as of 1.11.0
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/ .
%make_build
%install
# cd "%%{__builddir}" # Not needed as of 1.11.0
%make_install
%fdupes %{buildroot}/usr/share/jellyfinmediaplayer/web-client/desktop/
%{__strip} %{buildroot}/usr/bin/jellyfinmediaplayer
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/*
######### FILES BELOW #########
### _datadir = /usr/share
### _bindir = /usr/bin
### _libdir = /usr/lib64
%dir %_datadir/jellyfinmediaplayer/
%dir %_datadir/icons/hicolor/
%dir %_datadir/icons/hicolor/scalable/
%dir %_datadir/icons/hicolor/scalable/apps/
%_datadir/jellyfinmediaplayer/*
%_datadir/applications/com.github.iwalton3.jellyfin-media-player.desktop
%_datadir/icons/hicolor/scalable/apps/com.github.iwalton3.jellyfin-media-player.svg
%_datadir/metainfo/com.github.iwalton3.jellyfin-media-player.appdata.xml
%changelog