File jellyfin-media-player.spec of Package jellyfin-media-player

# Spec file for Jellyfin Media Player
Name:           jellyfin-media-player
Version:        1.9.1
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
Patch0:         Fix-MVP-Compatibility.patch
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  libSDL2-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
BuildRequires:  python
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

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/ ..

%make_build

%install
# echo 'Current dir:' $(pwd). 'Files in dir:'
# ls

cd "%{__builddir}"
# echo 'New dir:' $(pwd). 'Files in dir:'
# ls

%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
openSUSE Build Service is sponsored by