Compare commits
12 Commits
bcde2c252b
...
3c8ed002bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c8ed002bb | |||
| 7ef9669dec | |||
| eb62392da7 | |||
| 60961f8415 | |||
| e087248165 | |||
| 90ea1e0fa4 | |||
| bafd812074 | |||
| 75881d5ac1 | |||
| fd6d4d872f | |||
| c96ff1ed4b | |||
| a37ae0b5f5 | |||
| b8f64b3f0c |
26
installJRMC
26
installJRMC
@@ -21,7 +21,7 @@
|
|||||||
# shellcheck disable=SC2329
|
# shellcheck disable=SC2329
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
declare -g SCRIPT_VERSION="1.35.2"
|
declare -g SCRIPT_VERSION="1.35.3"
|
||||||
declare -g MC_VERSION_HARDCODE="35.0.24" # do find all replace
|
declare -g MC_VERSION_HARDCODE="35.0.24" # do find all replace
|
||||||
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
|
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
|
||||||
declare -g BOARD_ID="92.0" # MC35 board ID for legacy latest version detection
|
declare -g BOARD_ID="92.0" # MC35 board ID for legacy latest version detection
|
||||||
@@ -997,27 +997,26 @@ build_rpm() {
|
|||||||
Release: $MC_RELEASE
|
Release: $MC_RELEASE
|
||||||
Summary: JRiver Media Center
|
Summary: JRiver Media Center
|
||||||
Group: Applications/Media
|
Group: Applications/Media
|
||||||
|
License: LicenseRef-JRiver-Proprietary
|
||||||
|
URL: https://www.jriver.com/
|
||||||
Source0: $MC_SOURCE
|
Source0: $MC_SOURCE
|
||||||
%define _rpmfilename %%{ARCH}/%%{NAME}-%%{version}-%%{release}.%%{ARCH}.rpm
|
|
||||||
|
|
||||||
AutoReq: 0
|
BuildArch: $ARCH
|
||||||
|
|
||||||
|
%global _rpmfilename %%{ARCH}/%%{NAME}-%%{version}-%%{release}.%%{ARCH}.rpm
|
||||||
|
|
||||||
|
AutoReqProv: no
|
||||||
|
|
||||||
$requires_str
|
$requires_str
|
||||||
$recommends_str
|
$recommends_str
|
||||||
|
|
||||||
Conflicts: MediaCenter
|
|
||||||
|
|
||||||
Provides: mediacenter$MC_MVERSION
|
Provides: mediacenter$MC_MVERSION
|
||||||
|
|
||||||
License: Copyright 1998-$(date +%Y), JRiver, Inc. All rights reserved. Protected by U.S. patents #7076468 and #7062468
|
|
||||||
URL: https://www.jriver.com/
|
|
||||||
|
|
||||||
%define __provides_exclude_from ^%{_libdir}/jriver/.*/.*\\.so.*$
|
%define __provides_exclude_from ^%{_libdir}/jriver/.*/.*\\.so.*$
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Media Center is more than a world class player.
|
Media Center is more than a world class player.
|
||||||
|
|
||||||
%global __os_install_post %{nil}
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@@ -1025,9 +1024,6 @@ build_rpm() {
|
|||||||
%install
|
%install
|
||||||
dpkg -x %{S:0} %{buildroot}
|
dpkg -x %{S:0} %{buildroot}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/mediacenter$MC_MVERSION
|
%{_bindir}/mediacenter$MC_MVERSION
|
||||||
$stub
|
$stub
|
||||||
@@ -1233,10 +1229,10 @@ run_createrepo() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Run createrepo
|
# Run createrepo
|
||||||
local -a cr_opts=(-q "$CREATEREPO_WEBROOT")
|
local -a cr_opts=(--update)
|
||||||
# [[ -d "$CREATEREPO_WEBROOT/repodata" ]] && cr_opts+=(--update) # TODO temporarily disabled for legacy createrepo
|
# [[ -d "$CREATEREPO_WEBROOT/repodata" ]] && cr_opts+=(--update) # TODO temporarily disabled for legacy createrepo
|
||||||
if ! execute sudo -u "$CREATEREPO_USER" createrepo "${cr_opts[@]}"; then
|
if ! execute sudo -u "$CREATEREPO_USER" createrepo "${cr_opts[@]}" "$CREATEREPO_WEBROOT"; then
|
||||||
if ! (execute sudo createrepo "${cr_opts[@]}" && execute sudo chown -R "$CREATEREPO_USER:$CREATEREPO_USER" "$CREATEREPO_WEBROOT"); then
|
if ! (execute sudo createrepo "${cr_opts[@]}" "$CREATEREPO_WEBROOT" && execute sudo chown -R "$CREATEREPO_USER:$CREATEREPO_USER" "$CREATEREPO_WEBROOT"); then
|
||||||
err "createrepo failed"
|
err "createrepo failed"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user