build rpm with SPEC file for packaging .jar and some .sh files..

Good day people,

Hereby wish to have your advise for below:

I have some .jar files, some script files (install.sh, action.sh) , and a libaes.so file. Basically, the .jar files compute the operation of my system and define the working directory for my system.

My current scenario:
i trigger

install.sh

to set up the my service with /etc/init.d and with command

service xSystem start

to start up my system.

service xSystem start

will eventually trigger

action.sh 

with passing parameter

start

to run the .jar file.

Now i intend package my system into rpm. I tried to write the SPEC file to build the rpm but i failed. Hope to have some guidance here.

Below is my SPEC file content:

# This is a spec file for xSystem

%define _topdir	 	/usr/src/redhat
%define name		xSystem
%define release		1
%define version 	1.0
%define buildroot %{_topdir}/%{name}-%{version}-root

BuildRoot:	%{buildroot}
Summary: 		GNU xSystem
License: 		GPL
Name: 			%{name}
Version: 		%{version}
Release: 		%{release}
Source: 		%{name}-%{version}.tar.gz
Prefix: 		/usr
Group: 			Applications/System

%description
xSystem's description is here.


%prep
%build
/%{name}/.install.sh

%files

I tar all my .jar, .sh, and .so files and place it under /usr/src/redhat/SOURCES and place my SPEC file under /usr/src/redhat/SPECS .. then i execute

rpmbuild xSystem.spec

from the SPECS directory.

But unfortunately, i can't find any .rpm file after executing that command.
What i have missed out?

please advice again.. I have come across with reference on making rpm with spec files.. but most of the one i found is working on .c file.. and not really matching my scenario. I have run out of idea..

I appreciate for guidance given here.

Many thanks again.

---------- Post updated 04-02-12 at 09:00 PM ---------- Previous update was 04-01-12 at 10:59 PM ----------

Hope to have any guidance again..

Seriously need help on this.

Many thanks.

Good day people,

I have posted this under Linux' Red Hat session but no luck.
Hope can have some luck here with my problem.

Hereby wish to have your advise for below:

I have some .jar files, some script files (install.sh, action.sh) , and a libaes.so file. Basically, the .jar files compute the operation of my system and define the working directory for my system.

My current scenario:
i trigger install.sh to set up the my service with /etc/init.d and with command service xSystem start to start up my system.

service xSystem start will eventually trigger action.sh with passing parameter start to run the .jar file.

Now i intend package my system into rpm. I tried to write the SPEC file to build the rpm but i failed. Hope to have some guidance here.

Below is my SPEC file content:

# This is a spec file for xSystem

%define _topdir	 	/usr/src/redhat
%define name		xSystem
%define release		1
%define version 	1.0
%define buildroot %{_topdir}/%{name}-%{version}-root

BuildRoot:	%{buildroot}
Summary: 		GNU xSystem
License: 		GPL
Name: 			%{name}
Version: 		%{version}
Release: 		%{release}
Source: 		%{name}-%{version}.tar.gz
Prefix: 		/usr
Group: 			Applications/System

%description
xSystem's description is here.


%prep
%build
/%{name}/.install.sh

%files

I tar all my .jar, .sh, and .so files and place it under /usr/src/redhat/SOURCES and place my SPEC file under /usr/src/redhat/SPECS .. then i execute
rpmbuild xSystem.spec from the SPECS directory.

But unfortunately, i can't find any .rpm file after executing that command.
What i have missed out?

please advice again.. I have come across with reference on making rpm with spec files.. but most of the one i found is working on .c file.. and not really matching my scenario. I have run out of idea..

I appreciate for guidance given here.

Many thanks again.