LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 05-16-2012, 04:31 AM   #1
malcmcmul
LQ Newbie
 
Registered: May 2012
Location: Liverpool, UK.
Distribution: OS X, RHEL, Fedora and Ubuntu.
Posts: 10

Rep: Reputation: Disabled
Build Simple RPM of SMB


OS: Fedora 11, Samba: 3.6.5, trying to create an RPM.

I've just done an autogen, ./configure, make and make install of the Samba 3.6.5 and it's all gone swimmingly. But now I'm trying to create an RPM package of this Samba, to easily deploy on several other Fed 11 systems. However I'm having some troubles as there seems to be differing views on what goes into the spec file. As it's a very simple installation, a lot of what I've read doesn't apply to me.

I've created my RPM directory, inserted the samba tar file into SOURCES and created a .spec file with various information inside it. How do I basically just say "There's my source, build it, give me an RPM".

Or perhaps I'm expecting it to be easier than it is.

EDIT: I've attempted a basic SPEC file already and received the following error: "error: File: /home/user1/rpmbuild/SOURCES/samba.3.6.5.tar: No such file or directory". I never even gave that path

EDIT1: I'm also following these lecture notes: http://www.ucs.cam.ac.uk/support/uni...s/rpmbuild.pdf and fall over at Slide 20 with a bad exit status

Last edited by malcmcmul; 05-16-2012 at 05:14 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-16-2012, 05:49 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Do you have to run Fedora 11? .. my recommendation would be to download the source rpm for the version you want and rebuild it.
 
Old 05-16-2012, 06:01 AM   #3
malcmcmul
LQ Newbie
 
Registered: May 2012
Location: Liverpool, UK.
Distribution: OS X, RHEL, Fedora and Ubuntu.
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kbp View Post
Do you have to run Fedora 11? .. my recommendation would be to download the source rpm for the version you want and rebuild it.
I definitely can't change the version of Fedora.

That's just it, I've downloaded the latest Samba source code, compiled it and it works fine. I'm just trying to put this into an RPM.
 
Old 05-16-2012, 06:35 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,678

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
How about 'rpmbuild --rebuild samba-3.6.5-86.fc17.1.src.rpm' ?
Or 'rpmbuild -bb samba.spec', using the spec file from the package.

http://dl.fedoraproject.org/pub/fedo...fc17.1.src.rpm
( The link will change, when Fedora 17 is out next week.)

.

Last edited by knudfl; 05-16-2012 at 06:37 AM.
 
Old 05-16-2012, 06:45 AM   #5
malcmcmul
LQ Newbie
 
Registered: May 2012
Location: Liverpool, UK.
Distribution: OS X, RHEL, Fedora and Ubuntu.
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
How about 'rpmbuild --rebuild samba-3.6.5-86.fc17.1.src.rpm' ?
Or 'rpmbuild -bb samba.spec', using the spec file from the package.

http://dl.fedoraproject.org/pub/fedo...fc17.1.src.rpm
( The link will change, when Fedora 17 is out next week.)

.
I believe this would work if Samba was an RPM already but it's not - it's source code. Therefore I'm essentially trying to build a Samba RPM from scratch. So far I have:

/home/user_1/Samba with directory /BUILD, /RPMS, /SOURCES, /SPECS and /SRPMS. In /SOURCES there is the Samba source code in a .tar file. In /SPECS there is a samba.spec.

When I do a rpmbuild -v -bb --clean SPECS/samba.spec it will get as far as untarring the source code but falls over in the %build section (the autogen.sh, ./configure and make).

Last edited by malcmcmul; 05-16-2012 at 06:56 AM.
 
Old 05-16-2012, 08:46 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You're missing the point, we're advising you to download a source rpm not a source tarball, these are 2 different things. Using a source rpm you can simply rebuild it, it already contains a functioning spec file.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
stuck on not able to access simple smb share I created from linux to windows umcpgrad Linux - Newbie 6 02-08-2012 08:29 PM
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 05:23 PM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
URGENT: need simple smb live distro Fraudulent Linux - Enterprise 1 04-13-2005 07:09 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration