More > JRiver Media Center 20 for Linux

Fedora 17+ Linux Setup for JRiver Media Center

(1/22) > >>

RemyJ:
For those of us running Fedora, I've created a script that will repack the deb files into an rpm and make sure the correct dependencies are installed.
There are a few gotchas though...

lame and librtmp:  Both are provided by the rpmfusion-free repository.  If you already have the repository installed in /etc/yum.repos.d you're good to go.  If not, the script will download the rpm that installs the repository.  You'll have to install it manually though.  See below.

This is a 2 stage process....  Building the rpm and installing the rpms.

Building the rpm...
Unzip the attached file.  It will create a mediacenter-20 directory in the current directory.
Run the script passing in the version of MediaCenter you want to package.  


--- Code: ---cd mediacenter-20/SPECS
# build the 32 bit version of 20.0.110
./rpmb 20.0.110
# or build the 64 bit version of 20.0.110
./rpmb 20.0.110-amd64

--- End code ---

The script does the following...
Downloads the MediaCenter deb file if it's not already present.
Downloads the rpmfusion repository rpm if it isn't already present.
Runs the rpmbuild process.

If the script completes successfully, you'll have 2 rpms.  With Fedora 20 and MC 20.0.110 as examples...
mediacenter-20/RPMS/noarch/rpmfusion-free-release-20.noarch.rpm
and either
mediacenter-20/RPMS/i686/MediaCenter-20.0.110-22.fc21.i686.rpm
or
mediacenter-20/RPMS/x66_64/MediaCenter-20.0.110-22.fc21.x86_64.rpm


--- Code: ---cd ../RPMS/noarch
sudo yum localinstall rpmfusion-free-release-20.noarch.rpm
# Install the 32 bit version
cd ../RPMS/i686
sudo yum localinstall MediaCenter-20.0.110-22.fc21.i686.rpm
# Or install the 64 bit version
cd ../RPMS/x86_64
sudo yum localinstall MediaCenter-20.0.110-22.fc21.x66_64.rpm

--- End code ---

You'll have to install rpmfusion first, and separately from, MediaCenter otherwise the MediaCenter rpm won't find lame or librtmp.
The rpms can be copied to any machine with the same Fedora release.

-------------------
Edit: Script Version 9.
Added a libcurl compiled under Fedora 17 which will work with 17+.  This should all but eliminate the chances of needing to build libcurl.

-------------------
Edit: Script Version 10
Fixed the mediacenter.desktop file to use LD_LIBRARY_PATH instead of a file in /etc/ld.so.conf.d

-------------------
Edit: Script Version 11
Removed the need for custom versions of libcurl.

-------------------
Edit: Script Version 12
Added a temporary build of libcrypto++.so.9 compiled with SSE2 while waiting for official Fedora build.
http://tinyurl.com/mediacenter-19-12-zip

-------------------
Edit: Script Version 13
Updated to work with Fedora 20.  Still backwards compatible to fc17.
http://tinyurl.com/mediacenter-19-13-zip

-------------------
Edit: Script Version 13
Added dependency for libboost_regex.
http://tinyurl.com/mediacenter-19-14-zip

-------------------
Edit: Script Version 15
Removed dependency for libcryptopp and libboost_regex.
Fixed script to handle '-' in the version number.  You can now do './rpmb 19.0.103-3'
http://tinyurl.com/mediacenter-19-15-zip

-------------------
Edit: Script Version 17
Updated for Media Center 20
http://tinyurl.com/mediacenter-20-17-zip

-------------------
Edit: Script Version 18
Added a dependency for mesa-libGL
http://tinyurl.com/mediacenter-20-18-zip

-------------------
Edit: Script Version 19
Adjust for duplicate 'media center 20.desktop' file
http://tinyurl.com/mediacenter-20-19-zip

-------------------
Edit: Script Version 20
Adjust for .desktop file rename
Added experimental support for 64 bit package
http://tinyurl.com/mediacenter-20-20-zip

-------------------
Edit: Script Version 22
Merged 32 bit and 64 bit scripts
Changed lib64 -> lib for 64 bit
http://tinyurl.com/mediacenter-20-22-zip

kane:
Trying this with fc19.x86_64 but not working with MC 19.0.74.

This is the output:
Loaded plugins: langpacks, refresh-packagekit
Package rpm-build-4.11.1-3.fc19.x86_64 already installed and latest version
Package dpkg-1.16.10-6.fc19.x86_64 already installed and latest version
Nothing to do
Building target platforms: i686-redhat-linux-gnu
Building for target i686-redhat-linux-gnu
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qA9qKA
+ umask 022
+ cd /home/XXXXX/Downloads/mediacenter-19/BUILD
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nNShJp
+ umask 022
+ cd /home/XXXXX/Downloads/mediacenter-19/BUILD
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.scWyIe
+ umask 022
+ cd /home/XXXXX/Downloads/mediacenter-19/BUILD
+ '[' /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386 '!=' / ']'
+ rm -rf /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386
++ dirname /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386
+ mkdir -p /home/XXXXX/Downloads/mediacenter-19/BUILDROOT
+ mkdir /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386
+ rm -rf /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386
+ dpkg -x /home/XXXXX/Downloads/mediacenter-19/SOURCES/MediaCenter-19.0.74.deb /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386
+ cp /home/XXXXX/Downloads/mediacenter-19/SOURCES/libcurl.so.4.3.0.19 '/home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386/usr/lib/jriver/Media Center 19/libcurl.so.4.3.0'
+ cd '/home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386/usr/lib/jriver/Media Center 19'
+ ln -s libcurl.so.4.3.0 libcurl.so.4
+ ln -s libcurl.so.4.3.0 libcurl.so
+ mkdir -p /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386/usr/share/applications
+ cp /home/XXXXX/Downloads/mediacenter-19/SOURCES/mediacenter.desktop /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386/usr/share/applications
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/true
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/true /usr/bin/true
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/true
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: MediaCenter-19.0.74-10.fc19.i686
error: File not found: /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386/usr/bin/mediacenter


RPM build errors:
    File not found: /home/XXXXX/Downloads/mediacenter-19/BUILDROOT/MediaCenter-19.0.74-10.fc19.i386/usr/bin/mediacenter

bob:
The binary is named mediacenter19 now (/usr/bin/mediacenter19). If you change that in RemyJ's script it might work.

RemyJ:
Yeah, I forgot to update the script.   Give me an hour or 2 and I'll upload a new version.

bob:

--- Quote from: RemyJ on November 14, 2013, 11:12:50 am ---Yeah, I forgot to update the script.   Give me an hour or 2 and I'll upload a new version.


--- End quote ---
Thanks!

Navigation

[0] Message Index

[#] Next page

Go to full version