Quote:
Originally Posted by cheerio158
Cool, I'm learning some good information!
Back to the original procedure, is all I have to do is to copy the patchfile to ~/rpmbuild/SOURCES (with all the other mplayer patch files) and edit the spec file accordingly? This way I don't have to tamper with the tarball at all?
Lets call the patch mplayer-mypatch.patch and I took the next number in the list ( Patch 15). Below is the snippet from the mplayer.spec file with my suggested changes.
Code:
Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
Source10: mplayer-snapshot.sh
Patch2: %{name}-config.patch
Patch8: %{name}-manlinks.patch
Patch10: %{name}-qcelp.patch
Patch14: %{name}-nodvdcss.patch
Patch15: %{name}-mypatch.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
You will need to add the patch to the %prep section as well to apply it.
Code:
%prep
%if %{svn}
%setup -q -n mplayer-export-%{svnbuild}
%else
%setup -q -n MPlayer-%{version}%{pre}
%endif
%patch2 -p1 -b .config
%patch8 -p1 -b .manlinks
%patch10 -p1 -b .qcelp
%patch14 -p1 -b .nodvdcss
%patch15 -p0 -b .mypatch
doconv() {
iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
mv DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1