LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 12-01-2009, 12:21 AM   #1
jayasekar
Member
 
Registered: May 2008
Posts: 39

Rep: Reputation: 16
Error in Creating rpm package for a simple "Hello World" Program


Hi friends,
I tried to created a simple rpm package for "Hello world" program
Im getting the error while creating rpm package using rpmbuild -bb hello.spec.

My spec file:
#script to build sample rpm
%define ver 1.0
%define rel 1
%define prefix /usr

Name: Demorpm
Version: 1.0
Release: 1.0
Summary: To test the rpm package building process
Group: Applications
License: GPL
URL: None
Source0: %{name}-%{ver}.tar.gz
Source1: %{name}-%{ver}
BuildRoot: /tmp/%{name}-%{ver}-root

#BuildRequires:
#Requires:

%description
To test the sample rpm build

%prep
%setup
make

%build
#make

#%configure
#make configure

%install
rm -rf ${RPM_BUILD_ROOT}
make install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc
#%changelog

Can any one help me..
Thanks in advance.
 
Old 12-01-2009, 05:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You are not saying, which error, it's about :

Difficult to repair unknown error ... ?

But I can show a home made simple example, that works.
Then you can compare.

And a "Hello World" spec file instruction
http://www.ceylonlinux.com/pdf/rpm_howto.pdf
.....
Attached Files
File Type: txt EL5-xfardic-0.8.1.spec.txt (1.5 KB, 32 views)
File Type: txt buildrpm-build--rpm--spec-file--rpmbuild.txt (2.1 KB, 27 views)

Last edited by knudfl; 12-01-2009 at 06:09 AM.
 
Old 12-01-2009, 08:26 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:
http://www.linuxquestions.org/questi...d.php?t=772449
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in creating rpm package for a simple "Hello World" c program jayasekar Linux - Newbie 8 12-02-2009 12:53 AM
"Failed Dependency error" while installing RPM for "DateTime" perl modules giridhargopal.cj Linux - Newbie 7 11-19-2008 12:05 AM
How could I get rid of this error? "RPM package is not installed" Selvanind Linux - Newbie 3 06-12-2008 05:41 AM
checkinstall error : *** The "rpm" program is not in your PATH! logicalfuzz Linux - Software 2 09-11-2005 06:40 AM
simple "Hello World" sample in C please plisken Programming 2 02-27-2002 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration