Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

TUTORIAL: mplayerplug-in



Build a binary and source rpm from a tarball using rpmbuild.

[tchung@localhost cvs]$ rpmbuild -ta mplayerplug-in-1.0.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.12899
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/mplayerplug-in-1.0-root
+ /bin/mkdir -p /var/tmp/mplayerplug-in-1.0-root/usr/lib/mozilla/plugins
+ /bin/mkdir -p /var/tmp/mplayerplug-in-1.0-root/etc
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf mplayerplug-in
+ /usr/bin/gzip -dc /home/tchung/cvs/mplayerplug-in-1.0.tar.gz
+ tar -xvvf -
drwxrwxr-x tchung/tchung     0 2004-01-10 11:56:00 mplayerplug-in/
drwxrwxr-x tchung/tchung     0 2004-01-10 11:56:00 mplayerplug-in/CVS/
-rw-rw-r-- tchung/tchung    63 2004-01-10 11:55:59 mplayerplug-in/CVS/Root
-rw-rw-r-- tchung/tchung    15 2004-01-10 11:55:59 mplayerplug-in/CVS/Repository
-rw-rw-r-- tchung/tchung   538 2004-01-10 11:56:00 mplayerplug-in/CVS/Entries
-rw-rw-r-- tchung/tchung    82 2004-01-10 11:56:00 mplayerplug-in/CVS/Entries.Log
drwxrwxr-x tchung/tchung     0 2004-01-10 11:56:00 mplayerplug-in/Source/
drwxrwxr-x tchung/tchung     0 2004-01-10 11:56:00 mplayerplug-in/Source/CVS/
-rw-rw-r-- tchung/tchung    63 2004-01-10 11:56:00 mplayerplug-in/Source/CVS/Root
-rw-rw-r-- tchung/tchung    22 2004-01-10 11:56:00 mplayerplug-in/Source/CVS/Repository
-rw-rw-r-- tchung/tchung   269 2004-01-10 11:56:00 mplayerplug-in/Source/CVS/Entries
-rw-rw-r-- tchung/tchung  3986 2003-12-03 09:17:43 mplayerplug-in/Source/memmem.c
-rwxrwxr-x tchung/tchung 32179 2004-01-06 15:55:45 mplayerplug-in/Source/mplayerplug-in.c
-rw-rw-r-- tchung/tchung  3664 2003-12-07 11:48:27 mplayerplug-in/Source/mplayerplug-in.h
-rwxrwxr-x tchung/tchung   520 2003-01-12 07:05:08 mplayerplug-in/Source/stubs.c
-rw-rw-r-- tchung/tchung 23481 2004-01-07 08:19:57 mplayerplug-in/Source/support.c
-rw-rw-r-- tchung/tchung  1951 2003-12-09 07:44:24 mplayerplug-in/Source/ui.c
-rw-rw-r-- tchung/tchung 12681 2004-01-07 08:19:57 mplayerplug-in/ChangeLog
-rw-rw-r-- tchung/tchung   552 2003-10-20 10:30:08 mplayerplug-in/INSTALL
-rwxrwxr-x tchung/tchung  1794 2003-12-04 14:13:13 mplayerplug-in/Makefile.in
-rw-rw-r-- tchung/tchung   436 2003-01-14 11:52:10 mplayerplug-in/README
-rw-rw-r-- tchung/tchung   276 2003-05-21 10:34:44 mplayerplug-in/TODO
-rw-rw-r-- tchung/tchung  2972 2003-12-10 08:56:57 mplayerplug-in/config.h.in
-rwxrwxr-x tchung/tchung 151560 2003-12-10 08:49:11 mplayerplug-in/configure
-rw-rw-r-- tchung/tchung    816 2003-12-10 08:49:11 mplayerplug-in/configure.in
-rw-rw-r-- tchung/tchung      0 2003-10-27 12:33:27 mplayerplug-in/install.sh
-rw-rw-r-- tchung/tchung    209 2003-09-30 12:36:39 mplayerplug-in/mplayerplug-in.conf
-rw-rw-r-- tchung/tchung   2364 2003-12-02 13:18:18 mplayerplug-in/mplayerplug-in.spec
-rw-rw-r-- tchung/tchung   1258 2003-10-17 09:28:13 mplayerplug-in/mplayerplug-in.types
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/Unix/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/Unix/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/Unix/CVS/Root
-rw-rw-r-- tchung/tchung     20 2004-01-10 11:56:00 mplayerplug-in/Unix/CVS/Repository
-rw-rw-r-- tchung/tchung      2 2004-01-10 11:56:00 mplayerplug-in/Unix/CVS/Entries
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/common/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/common/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/common/CVS/Root
-rw-rw-r-- tchung/tchung     22 2004-01-10 11:56:00 mplayerplug-in/common/CVS/Repository
-rw-rw-r-- tchung/tchung    135 2004-01-10 11:56:00 mplayerplug-in/common/CVS/Entries
-rwxrwxr-x tchung/tchung  16710 2003-01-12 07:05:07 mplayerplug-in/common/npmac.cpp
-rwxrwxr-x tchung/tchung  11038 2003-06-10 13:38:24 mplayerplug-in/common/npunix.c
-rwxrwxr-x tchung/tchung   9033 2003-01-12 07:05:08 mplayerplug-in/common/npwin.cpp
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/include/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/include/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/include/CVS/Root
-rw-rw-r-- tchung/tchung     23 2004-01-10 11:56:00 mplayerplug-in/include/CVS/Repository
-rw-rw-r-- tchung/tchung    204 2004-01-10 11:56:00 mplayerplug-in/include/CVS/Entries
-rwxrwxr-x tchung/tchung  22397 2003-06-10 13:38:24 mplayerplug-in/include/jri_md.h
-rwxrwxr-x tchung/tchung  33248 2003-06-10 13:38:24 mplayerplug-in/include/jri.h
-rwxrwxr-x tchung/tchung   5992 2003-06-10 13:38:24 mplayerplug-in/include/jritypes.h
-rwxrwxr-x tchung/tchung  10155 2003-06-10 13:38:24 mplayerplug-in/include/npapi.h
-rwxrwxr-x tchung/tchung  31871 2003-06-10 13:38:25 mplayerplug-in/include/npupp.h
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/CVS/Root
-rw-rw-r-- tchung/tchung     30 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/CVS/Repository
-rw-rw-r-- tchung/tchung      2 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/CVS/Entries
-rw-rw-r-- tchung/tchung     59 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/CVS/Entries.Log
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Source/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Source/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Source/CVS/Root
-rw-rw-r-- tchung/tchung     37 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Source/CVS/Repository
-rw-rw-r-- tchung/tchung      2 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Source/CVS/Entries
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Unix/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Unix/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Unix/CVS/Root
-rw-rw-r-- tchung/tchung     35 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Unix/CVS/Repository
-rw-rw-r-- tchung/tchung      2 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/Unix/CVS/Entries
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/common/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/common/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/common/CVS/Root
-rw-rw-r-- tchung/tchung     37 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/common/CVS/Repository
-rw-rw-r-- tchung/tchung      2 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/common/CVS/Entries
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/include/
drwxrwxr-x tchung/tchung      0 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/include/CVS/
-rw-rw-r-- tchung/tchung     63 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/include/CVS/Root
-rw-rw-r-- tchung/tchung     38 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/include/CVS/Repository
-rw-rw-r-- tchung/tchung      2 2004-01-10 11:56:00 mplayerplug-in/mplayerplug-in/include/CVS/Entries
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mplayerplug-in
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.12899
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd mplayerplug-in
+ LANG=C
+ export LANG
+ unset DISPLAY
+ ./configure
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking X11/StringDefs.h usability... yes
checking X11/StringDefs.h presence... yes
checking for X11/StringDefs.h... yes
checking for sys/stat.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for memmem... yes
checking for snprintf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
+ /usr/bin/make
gcc -c -g -O2 -DXP_UNIX -Iinclude -fPIC Source/mplayerplug-in.c
gcc -c -g -O2 -DXP_UNIX -Iinclude -fPIC Source/support.c
gcc -c -g -O2 -DXP_UNIX -Iinclude -fPIC Source/stubs.c
gcc -c -g -O2 -DXP_UNIX -Iinclude -fPIC Source/ui.c
gcc -shared -o mplayerplug-in.so mplayerplug-in.o support.o stubs.o ui.o
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.74092
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd mplayerplug-in
+ LANG=C
+ export LANG
+ unset DISPLAY
+ /usr/bin/install -m755 mplayerplug-in.so /var/tmp/mplayerplug-in-1.0-root/usr/lib/mozilla/plugins
+ /usr/bin/install -m755 mplayerplug-in.types /var/tmp/mplayerplug-in-1.0-root/etc
+ /usr/bin/install -m755 mplayerplug-in.conf /var/tmp/mplayerplug-in-1.0-root/etc
+ /usr/lib/rpm/find-debuginfo.sh /home/tchung/rpmbuild/BUILD/mplayerplug-in
extracting debug info from /var/tmp/mplayerplug-in-1.0-root/usr/lib/mozilla/plugins/mplayerplug-in.so
345 blocks
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: mplayerplug-in-1.0-1.fc1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.62879
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd mplayerplug-in
+ DOCDIR=/var/tmp/mplayerplug-in-1.0-root/usr/share/doc/mplayerplug-in-1.0
+ export DOCDIR
+ rm -rf /var/tmp/mplayerplug-in-1.0-root/usr/share/doc/mplayerplug-in-1.0
+ /bin/mkdir -p /var/tmp/mplayerplug-in-1.0-root/usr/share/doc/mplayerplug-in-1.0
+ cp -pr ChangeLog INSTALL README TODO /var/tmp/mplayerplug-in-1.0-root/usr/share/doc/mplayerplug-in-1.0
+ exit 0
Provides: config(mplayerplug-in) = 1.0-1.fc1 mplayerplug-in mplayerplug-in.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires: config(mplayerplug-in) = 1.0-1.fc1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) mozilla
Obsoletes: mplayerplug-in < 1.0
Processing files: mplayerplug-in-debuginfo-1.0-1.fc1
Provides: mplayerplug-in.so.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/mplayerplug-in-1.0-root
Wrote: /home/tchung/rpmbuild/SRPMS/mplayerplug-in-1.0-1.fc1.src.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/mplayerplug-in-1.0-1.fc1.i386.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/mplayerplug-in-debuginfo-1.0-1.fc1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.62879
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd mplayerplug-in
+ rm -rf /var/tmp/mplayerplug-in-1.0-root
+ exit 0
[tchung@localhost cvs]$