Rpm Problem!
hello everyone,
i am creating a rpm for our software.
i have created a .spec file and here it follows ........
%define name dashboard
%define version 2.0.1
%define release 1mdk
Name: %{name}
Summary: Tools for converting websites from using GIFs to using PNGs
Version: %{version}
Release: %{release}
Source0: ftp://10.11.13.41/usr/src/redhat/SOURCES/%{name}-%{version}.tar.gz
Group: Applications/Multimedia
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License: MIT-like
Requires: python
%description
Antispam Dashboard Installation.
%prep
rm -rf $RPM_BUILD_DIR/dashboard-2.0.1
%setup
%build
%install
%files
%defattr(-,root,root,0755)
%changelog
* Mon Nov 02 1999 Camille Begnis <camille@mandrakesoft.com> 2.0.1-1mdk
- Upgraded to 2.0.1
* Mon Oct 25 1999 Camille Begnis <camille@mandrakesoft.com> 2.0.0-1mdk
- Specfile adaptations for Mandrake
- gz to bz2 compression
when i execute the above .spec file using the command rpmbuild -ba <filename>.spec
it gives me the following results:
Wrote: /usr/src/redhat/SRPMS/dashboard-2.0.1-1mdk.src.rpm
Wrote: /usr/src/redhat/RPMS/i586/dashboard-2.0.1-1mdk.i586.rpm
Wrote: /usr/src/redhat/RPMS/i586/dashboard-debuginfo-2.0.1-1mdk.i586.rpm
it does create a directory by the name of dashboard-2.0.1 in the /usr/src/redhat/BUILD
directory and in this directory, it untars all the files, but my problem is.....
that when i export this dashboard-2.0.1-1mdk.src.rpm binary rpm file to another red hat linux pc and execute it using rpm -ivh dashboard-2.0.1-1mdk.src.rpm command,
all it does is ,gives a message package is 100%, but it doesn't create the same directory
of 'dashboard-2.0.1' in the /usr/src/redhat/BUILD directory of that remote machine and therfore files are also not untarred there......why so.........?
i am confused and don't know as to how should i create an rpm which when installs on that
another pc, automatically creates a directory in the same manner and in the same location and also untars the files
as it was doing on the first machine(where i am running my .spec file)
as far as i can think of it's may be bcauz when i query my package using the command
rpm -qlp dashboard-2.0.1-1mdk.i586.rpm
it says....
contains no files
acc. to me now that may mean , that the files have not been put into the package,even
though the .rpm has been generated.
This again acc. to me may be due to my %file section in .spec file being empty.......
but i don't know how to create/put the files into package using the %file section, even if
this is the problem.....though i am not sure....
plz. help as i have been trying for many days now.......
my platform/distribution/kernel version are as under:
Distribution : Red Hat Linux
Kernel Version: 2.4.20-8
Thanks in anticipation
sd
|