Defindit Docs and Howto Home

This page last modified: Mar 13 2006
[twl8n@tull cdrdao-1.2.1]$ rpmbuild -ba specs/cdrdao.fedora.spec
error: File /usr/src/redhat/SOURCES/cdrdao-1.2.1.tar.gz: No such file or directory
[twl8n@tull cdrdao-1.2.1]$ ls -l /usr/src/redhat/SOURCES/
total 3948
-rw-rw-r--  1 root root 1261289 Apr  4  2005 sswf-1.7.2-doc.tar.gz
-rw-rw-r--  1 root root 2770842 Apr  4  2005 sswf-1.7.2-src.tar.gz
[twl8n@tull cdrdao-1.2.1]$ ls -ld /usr/src/redhat/SOURCES/
drwxr-xr-x  2 root root 4096 Oct  4 12:23 /usr/src/redhat/SOURCES/
[twl8n@tull cdrdao-1.2.1]$ su -l root
Password:
[root@tull ~]# cp /home/twl8n/cdrdao-1.2.1.tar /usr/src/redhat/SOURCES/cdrdao-1.2.1.tar.gz
[root@tull ~]# cp /home/twl8n/cdrdao-1.2.1.tar.gz /usr/src/redhat/SOURCES/cdrdao-1.2.1.tar.gz
[root@tull ~]# rpmbuild -ta /usr/src/redhat/SOURCES/cdrdao-1.2.1.tar.gz
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
[root@tull ~]# rpmbuild -ba /home/twl8n/tmp/cdrdao-1.2.1/specs/cdrdao.fedora.spec
error: Failed build dependencies:
        gtkmm24-devel >= 0:2.4 is needed by cdrdao-1.2.1-1.i386
        libgnomeuimm26-devel >= 0:2.6 is needed by cdrdao-1.2.1-1.i386
        libsigc++20-devel >= 0:1.2 is needed by cdrdao-1.2.1-1.i386
        libao-devel >= 0:0.8 is needed by cdrdao-1.2.1-1.i386
[root@tull ~]# rpm -qp gtkmm24-devel
[root@tull ~]# yum install gtkmm24-devel libgnomeuimm26-devel libsigc++20-devel libao-devel
...
Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 gtkmm24-devel           i386       2.6.2-2          extras            1.6 M
 libao-devel             i386       0.8.5-3          base               29 k
 libgnomeuimm26-devel    i386       2.10.0-1         extras            182 k
 libsigc++20-devel       i386       2.0.11-1         extras            1.5 M
Installing for dependencies:
 GConf2-devel            i386       2.10.0-4         base              176 k
 ORBit2-devel            i386       2.12.1-3         base              364 k
 gconfmm26               i386       2.10.0-2         extras             44 k
 gconfmm26-devel         i386       2.10.0-2         extras             40 k
 glibmm24                i386       2.6.1-1          extras            142 k
 glibmm24-devel          i386       2.6.1-1          extras            819 k
 gnome-vfs2-devel        i386       2.10.0-5         base              378 k
 gnome-vfsmm26           i386       2.10.0-1         extras             82 k
 gnome-vfsmm26-devel     i386       2.10.0-1         extras            104 k
 gtkmm24                 i386       2.6.2-2          extras            948 k
 libIDL-devel            i386       0.8.5-2          base               84 k
 libbonobo-devel         i386       2.8.1-1          base              255 k
 libbonoboui-devel       i386       2.8.1-4          base              376 k
 libglade2-devel         i386       2.5.1-2          base               85 k
 libglademm24            i386       2.6.0-1          extras             36 k
 libglademm24-devel      i386       2.6.0-1          extras            274 k
 libgnome-devel          i386       2.10.0-3         base              102 k
 libgnomecanvas-devel    i386       2.10.0-1         base              150 k
 libgnomecanvasmm26      i386       2.10.0-1         extras             93 k
 libgnomecanvasmm26-devel  i386       2.10.0-1         extras            104 k
 libgnomemm26            i386       2.10.0-1         extras             30 k
 libgnomemm26-devel      i386       2.10.0-1         extras             34 k
 libgnomeui-devel        i386       2.10.0-1         base              510 k
 libgnomeuimm26          i386       2.10.0-1         extras            136 k
 libsigc++20             i386       2.0.11-1         extras             38 k

Transaction Summary
=============================================================================
Install     29 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 8.5 M
Is this ok [y/N]: y
...
[root@tull ~]# rpmbuild -ba /home/twl8n/tmp/cdrdao-1.2.1/specs/cdrdao.fedora.spec
...
Wrote: /usr/src/redhat/SRPMS/cdrdao-1.2.1-1.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/cdrdao-1.2.1-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/gcdmaster-1.2.1-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/cdrdao-debuginfo-1.2.1-1.i386.rpm
...