Что делал.
Получил последнюю версию из svn-репозитория mplayer.
Упаковал ее в тарбол аналогично тому как упакован тарбол в пакете из репозитория.
Подправил спекфайл.
Код: Выделить всё
diff mplayer.spec mplayer_new.spec
3c3
< %define svn r36417
---
> %define svn r37329
6c6
< %define rel 2.%{svn}.11
---
> %define rel 2.%{svn}.0
70c70
< %define build_plf 1
---
> %define build_plf 0
141c141
< BuildRequires: libdxr3-devel
---
> # BuildRequires: libdxr3-devel
650,651c650,654
< * Mon Sep 22 2014 Andrey Bondrov <andrey.bondrov@rosalab.ru> 1.1.1-2.r36417.11plf
< + Revision: 11b687c
---
> * Mon Dec 4 2014 Yamah <##################@##########> 1.1.1-2.r37329
> + svn r37329
>
> * Mon Sep 22 2014 Andrey Bondrov <andrey.bondrov@rosalab.ru> 1.1.1-2.r36417.11
> + Revision: 1190d3d
Код: Выделить всё
rpmbuild -ba mplayer_new.spec
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.42807
+ umask 022
+ cd /home/yamah/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/yamah/rpmbuild/BUILD
+ rm -rf mplayer
+ /usr/bin/xz -dc /home/yamah/rpmbuild/SOURCES/mplayer-r37329.tar.xz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mplayer
+ /usr/bin/bzip2 -dc /home/yamah/rpmbuild/SOURCES/Blue-1.8.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ echo r37329
+ sed 's/^r//'
+ find DOCS -name .svn
+ xargs rm -rf
+ chmod 644 AUTHORS Changelog README Copyright
+ rm -f Blue/README
+ echo 'Patch #0 (mplayer-mdvconfig.patch):'
Patch #0 (mplayer-mdvconfig.patch):
+ /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-mdvconfig.patch
+ /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .mdv~
+ echo 'Patch #1 (mplayer-r36417-giflib51.patch):'
Patch #1 (mplayer-r36417-giflib51.patch):
+ /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-r36417-giflib51.patch
+ /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .giflib51~
1 out of 1 hunk FAILED -- saving rejects to file libmpdemux/demux_gif.c.rej
+ exit 1
error: Неверный код возврата из /var/tmp/rpm-tmp.42807 (%prep)
Ошибки сборки пакетов:
Неверный код возврата из /var/tmp/rpm-tmp.42807 (%prep)
Код: Выделить всё
cat rpm-tmp.42807
#!/bin/sh
RPM_BUILD_DIR="/home/yamah/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC"
export RPM_BUILD_DIR RPM_OPT_FLAGS
RPM_PACKAGE_NAME="mplayer"
export RPM_BUILD_DIR RPM_OPT_FLAGS RPM_PACKAGE_NAME
RPM_BUILD_ROOT="/home/yamah/rpmbuild/BUILDROOT/mplayer-1.1.1-2.r37329.0-rosa2012.1.x86_64-buildroot"
export RPM_BUILD_ROOT
unset PERL_MM_OPT || :
LC_ALL=C
export LC_ALL
LANG=C
export LANG
unset DISPLAY || :
unset LINGUAS || :
unset LANGUAGE || :
unset LC_MESSAGES || :
set -x
umask 022
cd "/home/yamah/rpmbuild/BUILD"
[ 1 -eq 1 ] || exit 0
[ 1 -eq 1 ] || exit 0
[ 1 -eq 1 ] || exit 0
cd '/home/yamah/rpmbuild/BUILD'
rm -rf 'mplayer'
/usr/bin/xz -dc '/home/yamah/rpmbuild/SOURCES/mplayer-r37329.tar.xz' | /bin/tar -xf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
exit $STATUS
fi
cd 'mplayer'
/usr/bin/bzip2 -dc '/home/yamah/rpmbuild/SOURCES/Blue-1.8.tar.bz2' | /bin/tar -xf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
exit $STATUS
fi
#gw as we have have used svn export:
echo r37329|sed s/^r// > snapshot_version
find DOCS -name .svn|xargs rm -rf
#gw fix permissions
chmod 644 AUTHORS Changelog README Copyright
rm -f Blue/README
echo "Patch #0 (mplayer-mdvconfig.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-mdvconfig.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .mdv~ ) || exit 1
echo "Patch #1 (mplayer-r36417-giflib51.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-r36417-giflib51.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .giflib51~ ) || exit 1
echo "Patch #2 (mplayer-1.1.1-samba4.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-1.1.1-samba4.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .samba4~ ) || exit 1
echo "Patch #28 (mplayer-rtsp-extra-fixes.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-rtsp-extra-fixes.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .rtsp-extra-fixes ) || exit 1
echo "Patch #31 (mplayer-format-string-literal.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-format-string-literal.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .format~ ) || exit 1
echo "Patch #33 (mplayer-have-dlfcn_h.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-have-dlfcn_h.patch | /usr/bin/patch --fuzz=0 -s -U -p0 -b --suffix .dlfcn~ ) || exit 1
echo "Patch #35 (mplayer-fix-dvd-crash.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-fix-dvd-crash.patch | /usr/bin/patch --fuzz=0 -s -U -p0 ) || exit 1
echo "Patch #39 (mplayer-dlopen-libfaac-libfaad-and-libx264.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-dlopen-libfaac-libfaad-and-libx264.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .dlopen~ ) || exit 1
rm -rf ffmpeg
echo "Patch #40 (mplayer-r36361-local-copy-of-internal-ffmpeg-type-definition.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-r36361-local-copy-of-internal-ffmpeg-type-definition.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .ffmpeg~ ) || exit 1
echo "Patch #42 (mplayer-filters-hack-with-shared.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-filters-hack-with-shared.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .internal_filters~ ) || exit 1
echo "Patch #43 (mplayer-r34911-dont-use-ffmpeg-functionality-outside-stable-release.patch):" && ( /bin/cat /home/yamah/rpmbuild/SOURCES/mplayer-r34911-dont-use-ffmpeg-functionality-outside-stable-release.patch | /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .ffm_stable~ ) || exit 1
# Sometimes (1.1.1) mplayer guys forget to update the VERSION file...
# Let's fix it here, but let's not abuse this ;)
echo 1.1.1 >VERSION
perl -pi -e 's^r\$svn_revision^2.r37329.0^' version.sh
mv DOCS/README README.DOCS
exit 0