I need to build a RPM package to install in Citrix XenServer. (centos 5). The package maintainer didn't update the RPMs.
I downloaded and installed Centos 5 and the rpm-build, gcc, etc packages.
Put the tar.gz in /home/jsivil/rpmbuild/SOURCES
[jsivil@localhost ~]$ cd rpmbuild/ [jsivil@localhost rpmbuild]$ ls -la total 56 drwxr-xr-x 7 jsivil root 4096 ene 8 21:04 . drwx------ 4 jsivil jsivil 4096 ene 8 21:05 .. drwxr-xr-x 2 jsivil root 4096 ene 8 21:04 BUILD drwxr-xr-x 2 jsivil root 4096 ene 8 21:04 RPMS drwxr-xr-x 2 jsivil root 4096 ene 8 21:26 SOURCES drwxr-xr-x 2 jsivil root 4096 ene 8 21:04 SPECS drwxr-xr-x 2 jsivil root 4096 ene 8 21:04 SRPMS
Now the tutorial says I need to create a .spec file.
In /platforms/redhat there is a file named apcupsd.spec.in
Should I use this?
Previously I unpacked the tar, and did ./configure and then make. It seems to have created a platforms/redhat/apcupsd.spec file (without .in extension), but the tutorial says that I must put the tar.gz in SOURCES.
How should I go on?