The place to discuss linux version of MakeMKV
-
AliceWonder
- Posts: 11
- Joined: Mon Mar 10, 2014 1:16 am
Post
by AliceWonder » Thu Oct 02, 2014 10:12 pm
It builds it and makes an RPM - but it wants to bring in a bunch of i686 libraries - I'm looking into that, I hope that using MakeMKV doesn't *really* require I pollute my x86_64 system with i686 libraries...
Needless to say I haven't tested it yet, need to resolve that issue first.
Code: Select all
Name: MakeMKV
Version: 1.8.13
Release: 1%{?dist}
Summary: Convert video into other formats
Group: Applications/Multimedia
License: Complicated
URL: http://www.makemkv.com/
Source0: http://www.makemkv.com/download/makemkv-oss-1.8.13.tar.gz
Source1: http://www.makemkv.com/download/makemkv-bin-1.8.13.tar.gz
# If you need to build in an automated system like mock - comment out
# the nosource below to build a src.rpm
nosource: 0
nosource: 1
#The Makefile strips the libraries - debug package useless
%define debug_package %{nil}
# These are for building in RHEL/CentOS 7
# ffmpeg from http://awel.domblogger.net/7/media/
BuildRequires: openssl-devel
BuildRequires: ffmpeg-devel >= 2.0.0
BuildRequires: mesa-libGL-devel
BuildRequires: qt-devel >= 4
#Requires:
%description
MakeMKV is your one-click solution to convert video that you own into free and
patents-unencumbered format that can be played everywhere. MakeMKV is a format
converter, otherwise called "transcoder". It converts the video clips from
proprietary (and usually encrypted) disc into a set of MKV files, preserving
most information but not changing it in any way. The MKV format can store
multiple video/audio tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms, and
there are tools to convert MKV files to many formats, including DVD and Blu-ray
discs.
%package oss
Summary: The OSS components of MakeMKV
Group: Applications/Multimedia
License: LGPLv2
Requires: %{name}-bin
%description oss
This is the Open Source component of MakeMKV. You also need to install the
closed source binary component for it to work.
MakeMKV is your one-click solution to convert video that you own into free and
patents-unencumbered format that can be played everywhere. MakeMKV is a format
converter, otherwise called "transcoder". It converts the video clips from
proprietary (and usually encrypted) disc into a set of MKV files, preserving
most information but not changing it in any way. The MKV format can store
multiple video/audio tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms, and
there are tools to convert MKV files to many formats, including DVD and Blu-ray
discs.
%package bin
Summary: Binary source component of MakeMKV
Group: Applications/Multimedia
License: Commercial
Requires: %{name}-oss
%description bin
This is the Closed Source binary component of MakeMKV. You also need to install
the closed source binary component for it to work.
MakeMKV is your one-click solution to convert video that you own into free and
patents-unencumbered format that can be played everywhere. MakeMKV is a format
converter, otherwise called "transcoder". It converts the video clips from
proprietary (and usually encrypted) disc into a set of MKV files, preserving
most information but not changing it in any way. The MKV format can store
multiple video/audio tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms, and
there are tools to convert MKV files to many formats, including DVD and Blu-ray
discs.
%prep
%setup -q -c -T
tar -zxf %{SOURCE0}
tar -zxf %{SOURCE1}
%build
cd makemkv-oss-%{version}
#fix library install location
sed -i -e s?"LIBDIR=.*"?"LIBDIR=\$(PREFIX)/%{_lib}"? Makefile.in
%configure
make %{?_smp_mflags}
cd ..
%install
cd makemkv-oss-%{version}
make install DESTDIR=%{buildroot}
cd ../makemkv-bin-%{version}
# If you need to build in an automated build system such as mock, uncomment
# below AFTER you read and agree to the license.
#sed -i -e s?"^install: tmp/eula_accepted"?"install:"? Makefile
make install DESTDIR=%{buildroot}
cd ..
%post oss -p /sbin/ldconfig
%postun oss -p /sbin/ldconfig
%files oss
%defattr(-,root,root,-)
%doc makemkv-oss-%{version}/License.txt
%{_bindir}/makemkv
%{_libdir}/lib*.so.*
%{_datadir}/applications/makemkv.desktop
%{_datadir}/icons/hicolor/*/apps/makemkv.png
%files bin
%defattr(-,root,root,-)
%doc makemkv-bin-%{version}/src/eula_en_linux.txt
%{_bindir}/makemkvcon
%{_bindir}/mmdtsdec
%{_datadir}/MakeMKV
%changelog
* Thu Oct 02 2014 Alice Wonder <alicewonder@shastaherps.org> - 1.8.13-1
- Initial spec file for RHEL/CentOS 7
-
AliceWonder
- Posts: 11
- Joined: Mon Mar 10, 2014 1:16 am
Post
by AliceWonder » Thu Oct 02, 2014 10:26 pm
Okay - the i686 deps look like they are coming from mmdtsdec
How necessary is that? From the name it looks like a DTS decoder.
Do I really need that on x86_64?
-
AliceWonder
- Posts: 11
- Joined: Mon Mar 10, 2014 1:16 am
Post
by AliceWonder » Thu Oct 02, 2014 10:43 pm
Splitting out the i686 into a separate package, I'm here:
Code: Select all
[alice@localhost result]$ rpm --test -ih MakeMKV-oss-1.8.13-2.el7.awel.x86_64.rpm MakeMKV-bin-1.8.13-2.el7.awel.x86_64.rpm
error: Failed dependencies:
libdriveio.so.0()(64bit) is needed by MakeMKV-bin-1.8.13-2.el7.awel.x86_64
libmakemkv.so.1()(64bit) is needed by MakeMKV-bin-1.8.13-2.el7.awel.x86_64
I seem to remember solving that problem in Fedora 18 I think it was last time I installed this (but that wasn't via RPM) - I'll look through the notes.
And hopefully the DTS decoder isn't actually needed, I don't want i686 libs on my system.
-
AliceWonder
- Posts: 11
- Joined: Mon Mar 10, 2014 1:16 am
Post
by AliceWonder » Thu Oct 02, 2014 11:06 pm
Solved - the shared libraries were being installed 644 not 755
This spec file builds and installs on x86_64 - testing to commence:
Code: Select all
Name: MakeMKV
Version: 1.8.13
Release: 2%{?dist}
Summary: Convert video into other formats
Group: Applications/Multimedia
License: Complicated
URL: http://www.makemkv.com/
Source0: http://www.makemkv.com/download/makemkv-oss-1.8.13.tar.gz
Source1: http://www.makemkv.com/download/makemkv-bin-1.8.13.tar.gz
# If you need to build in an automated system like mock - comment out
# the nosource below to build a src.rpm
nosource: 0
nosource: 1
#The Makefile strips the libraries - debug package useless
%define debug_package %{nil}
# These are for building in RHEL/CentOS 7
# ffmpeg from http://awel.domblogger.net/7/media/
BuildRequires: openssl-devel
BuildRequires: ffmpeg-devel >= 2.0.0
BuildRequires: mesa-libGL-devel
BuildRequires: qt-devel >= 4
#Requires:
%description
MakeMKV is your one-click solution to convert video that you own into free and
patents-unencumbered format that can be played everywhere. MakeMKV is a format
converter, otherwise called "transcoder". It converts the video clips from
proprietary (and usually encrypted) disc into a set of MKV files, preserving
most information but not changing it in any way. The MKV format can store
multiple video/audio tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms, and
there are tools to convert MKV files to many formats, including DVD and Blu-ray
discs.
%package oss
Summary: The OSS components of MakeMKV
Group: Applications/Multimedia
License: LGPLv2
Requires: %{name}-bin
%description oss
This is the Open Source component of MakeMKV. You also need to install the
closed source binary component for it to work.
MakeMKV is your one-click solution to convert video that you own into free and
patents-unencumbered format that can be played everywhere. MakeMKV is a format
converter, otherwise called "transcoder". It converts the video clips from
proprietary (and usually encrypted) disc into a set of MKV files, preserving
most information but not changing it in any way. The MKV format can store
multiple video/audio tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms, and
there are tools to convert MKV files to many formats, including DVD and Blu-ray
discs.
%package bin
Summary: Binary source component of MakeMKV
Group: Applications/Multimedia
License: Commercial
Requires: %{name}-oss
%ifarch i686
Requires: %{name}-bin-mmdtsdec
%endif
%description bin
This is the Closed Source binary component of MakeMKV. You also need to install
the closed source binary component for it to work.
MakeMKV is your one-click solution to convert video that you own into free and
patents-unencumbered format that can be played everywhere. MakeMKV is a format
converter, otherwise called "transcoder". It converts the video clips from
proprietary (and usually encrypted) disc into a set of MKV files, preserving
most information but not changing it in any way. The MKV format can store
multiple video/audio tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms, and
there are tools to convert MKV files to many formats, including DVD and Blu-ray
discs.
%package bin-mmdtsdec
Summary: Binary source DTS Decoder component of MakeMKV
Group: Applications/Multimedia
License: Commercial
Requires: %{name}-bin
%description bin-mmdtsdec
This package includes the DTS decoder binary, which will pull in 32-bit library
dependencies on x86_64 systems.
%prep
%setup -q -c -T
tar -zxf %{SOURCE0}
tar -zxf %{SOURCE1}
%build
cd makemkv-oss-%{version}
#fix library install location
sed -i -e s?"LIBDIR=.*"?"LIBDIR=\$(PREFIX)/%{_lib}"? Makefile.in
%configure
make %{?_smp_mflags}
cd ..
%install
cd makemkv-oss-%{version}
make install DESTDIR=%{buildroot}
cd ../makemkv-bin-%{version}
# If you need to build in an automated build system such as mock, uncomment
# below AFTER you read and agree to the license.
#sed -i -e s?"^install: tmp/eula_accepted"?"install:"? Makefile
make install DESTDIR=%{buildroot}
chmod +x %{buildroot}%{_libdir}/lib*
cd ..
%post oss -p /sbin/ldconfig
%postun oss -p /sbin/ldconfig
%files oss
%defattr(-,root,root,-)
%doc makemkv-oss-%{version}/License.txt
%{_bindir}/makemkv
%{_libdir}/lib*.so.*
%{_datadir}/applications/makemkv.desktop
%{_datadir}/icons/hicolor/*/apps/makemkv.png
%files bin
%defattr(-,root,root,-)
%doc makemkv-bin-%{version}/src/eula_en_linux.txt
%{_bindir}/makemkvcon
%{_datadir}/MakeMKV
%files bin-mmdtsdec
%defattr(-,root,root,-)
%doc makemkv-bin-%{version}/src/eula_en_linux.txt
%{_bindir}/mmdtsdec
%changelog
* Thu Oct 02 2014 Alice Wonder <alicewonder@shastaherps.org> - 1.8.13-2
- Split mmdtsdec into separate package, +x the shared libraries
* Thu Oct 02 2014 Alice Wonder <alicewonder@shastaherps.org> - 1.8.13-1
- Initial spec file for RHEL/CentOS 7
-
AliceWonder
- Posts: 11
- Joined: Mon Mar 10, 2014 1:16 am
Post
by AliceWonder » Fri Oct 03, 2014 12:14 am
Works at least for ripping DVD, I'll try Bluray tomorrow.
A nosrc.rpm can be gotten here:
http://awel.domblogger.net/7/special/re ... keMKV.html
Note that does not incluse the makemkv-oss or makemkv-bin sources, you have to supply those yourself.
Install the nosrc.rpm and it will install the spec file in ~/rpmbuild/SPECS/
The ffmpeg-devel that I built against and libdvdcss are here:
http://awel.domblogger.net/7/media/