File MediaElch2812.spec of Package MediaElch21812
#
# spec file for package mediaelch
#
Name: MediaElch2812
Version: 2.8.12
Release: 1%{?dist}
License: LGPL-3.0-only
Summary: A Media Manager for Kodi
URL: https://github.com/Komet/MediaElch
Group: Productivity/Multimedia/Other
#Requires: libmediainfo0 ffmpeg
Requires: ffmpeg
Source0: MediaElch-%{version}.tar.gz
Patch0: multiepisodes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc7
BuildRequires: gcc7-c++
BuildRequires: libqt5-qtbase-devel
BuildRequires: libQt5Multimedia-devel
BuildRequires: libqt5-qttools-devel
BuildRequires: libqt5-qtsvg-devel
BuildRequires: libmediainfo-devel
BuildRequires: libpulse-devel
%description
MediaElch is a MediaManager for Kodi. Information about Movies, TV Shows, Concerts and
Music are stored as nfo files. Fanarts are downloaded automatically from fanart.tv.
Using the nfo generator, MediaElch can be used with other MediaCenters as well.
This is the last version with active TheTVDB.com support.
%prep
%setup -n MediaElch
%patch0 -p1
export CC=/usr/bin/gcc-7
export CXX=/usr/bin/g++-7
gcc --version
g++ --version
qmake-qt5 --version
qmake-qt5 CONFIG+=release
%build
make %{?jobs:-j%jobs}
%install
export INSTALL_ROOT="%{buildroot}"
make install
mv %{buildroot}/%{_bindir}/MediaElch %{buildroot}/%{_bindir}/%{name}
mv %{buildroot}/%{_datadir}/applications/MediaElch.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
mv %{buildroot}/%{_datadir}/pixmaps/MediaElch.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
mv %{buildroot}/%{_datadir}/metainfo/com.kvibes.MediaElch.metainfo.xml %{buildroot}/%{_datadir}/metainfo/com.kvibes.MediaElch2812.metainfo.xml
%files
%defattr(-,root,root,-)
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/com.kvibes.MediaElch2812.metainfo.xml
%changelog