Can someone help me with creating RPM sample i need ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Can someone help me with creating RPM sample i need ?
# 1  
Old 05-25-2011
Can someone help me with creating RPM sample i need ?

i know there are tons n tons of documentation out there to help me out to understand this.. but wen i read it, its to confusing for me.. i would really wish a kind hearted person on this forum can come out with a sample spec file for the example steps that i need for the RPM. This will make me understand how n what am i suppose to put for the first time.. (yes i am doing it first time) and later further i can do some reading wen i already understood how it works...

So getting there..

i know RPM need 5 directory which are :
  • BUILD.
  • RPMS.
  • SOURCES.
  • SPECS.
  • SRPMS

the steps i wan my RPM to do is..

----

Files that i have and its locations :

/source.tar.gz
/myappdocs/

**source.tar.gz already contain the myappdocs/ in it already

sample files in source.tar.gz
- first.py
- second.py
- third.py

----

ok as from what i read online /source.tar.gz has to be in :

SOURCES/ ok thats done


so now it looks like this :

BUILD/
RPMS/
SOURCES/source.tar.gz
SPECS/myapp.spec <-- currently empty n this is where i need help
SRPMS/

---

so now what i would like to do wen i build my rpm is very simple.. jus for my understanding


1) wen the rpm is install everything in source.tar.gz is copied to a folder say /myapp/
2) all the documents has to be in unix default doc folder which i think /usr/doc/myapp/
3) verify if all the files are copied.
4) able to remove all the mentioned files when a user removes the package

---

i know it sounds silly why i just wan to copy files only take all this hassle.. understood!.. but this is just for me to understand the concept further exploring i can do myself i guess..

..

I hope someone can pls help me come out with a sample spec file based on this .. i really wish to see how it looks like plsss...


Thank you very much.
This User Gave Thanks to bladez For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Issue while creating RPM

I am trying to create an RPM that basically creates a JBOss container. At the end it copies folders and files in a particular directory structure. /root/rpmbuild/SOURCES # tree cac-1.0 cac-1.0 └── opt └── msdp └── ca └── iam_cac ... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

2. AIX

Rpm issue with autoconf-2.63-1.AIX6.1.noarch.rpm

dears i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message . P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm error: failed dependencies: m4 is needed by autoconf-2.63-1 P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies

3. Shell Programming and Scripting

Creating a larger .xml file from a template(sample file)

Dear All, I have a template xml file like below. ....Some---Header....... <SignalPreference> ... <SignalName>STRING</SignalName> ... </SignalPreference> ......Some formatting text....... <SignalPreference> ......... ... (3 Replies)
Discussion started by: ks_reddy
3 Replies

4. AIX

Creating RPM

HI All, I have couple of doubts on creating RPM in AIX. I have AIX 5.3 version. I installed rpmbuild on it. Before creating RPM in AIX I just wanted to know whether I can install the RPM created in the other linux flavors like Ubuntu or Red Hat or I need to create the RPM in AIX alone to install... (3 Replies)
Discussion started by: vijayraghavk
3 Replies

5. Red Hat

Creating rpm package file

Hi, I have a binary file ans some scripts which copy the binary file to a location and create some files and then add a entry to cron . I want to create a rpm package file for all these.So that if a user run: rpm -i my.rpm the binary is copied and scripts are run. Can anyone help me in... (1 Reply)
Discussion started by: kailash19
1 Replies

6. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

7. Shell Programming and Scripting

Extract RPM name from path to .rpm file

It's the end of the day and I just can't get my head around this. I'm trying to extract just the name of the RPM from the path to a .rpm file. So from: /home/me/rpm/RPMS/i386/nagios-our-plugins-1.2-6.i386.rpmI need to extract 'nagios-our-plugins'. I can't get the awk syntax right: awk '{... (5 Replies)
Discussion started by: aussieos
5 Replies

8. SuSE

How to install .src.rpm ? ( source rpm )

Hi, I have got few RPM's from rpmfind.net ( mainly gcc ). But it seems to be src files instead of the image. so I think we have to build the src files according to target machine using rpmbuild. Can any one help me with 1) Various options of rpm build that have to be taken care 2)... (3 Replies)
Discussion started by: Sivaswami
3 Replies

9. Linux

Converting source rpm to binary rpm

Hi, I need to install an rpm file,but I only have '.src.rpm' version of it. I want to convert it to a binary rpm. so I tried this rpm --rebuild somethin.src.rpm But I am gettin '--rebuild:Invalid option' as output Is there another way to rebuild source rpm.? Thanks in... (2 Replies)
Discussion started by: eamani_sun
2 Replies

10. Linux

Failed dependencies of rpm / how does RPM check for ?

Hey, I've a problem installing a package. rpm -ivh brings the errors: libjvm.so is needed by libverify.so is needed by But I have installed the Java SDK like requested and the files are on the disk. But I have no idea how to find out, why rpm cann't find them. I have also... (2 Replies)
Discussion started by: mod
2 Replies
Login or Register to Ask a Question