* when running Jellyfin as a user from a terminal without passing
arguments, it would not find the web-files. This moves them to the
expected/default location.
* fixes#2059
* move actual building process to %build
* remove AutoReqProv as the package purely contains text files and
fonts. There's no dependencies to begin with. This feature is also
intended as sort of a "last resort" and we don't need this here.
* define LICENSE as %license, which automatically puts it in a
standardised directory
Rewrite so we don't need to constantly update with every new Fedora
release. This is especially useful when Fedora and Jellyfin release
cycles don't line up.
Version selection is as follows:
* TARGET environment variable, which is currently used already
* Currently running Fedora version
* Hardcoded Fallback version that can be updated occasionally
Also add an "rpms" target that builds the RPMs using mock in a target
environment.
Fix BuildRequires: for RH platforms.
Fixes: #3221
Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
%install is run as non-root and as such, chown root is not allowed to be done it.
The correct way of achieving a setting of ownership in RPM specfiles is to do it
in the %files section(s).
Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>