LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > JDS
User Name
Password
JDS This forum is for the discussion of the Sun Java Desktop System.

Notices


Reply
  Search this Thread
Old 10-19-2004, 05:35 PM   #1
tadelste
JDSHelp Founder
 
Registered: Sep 2004
Location: Texas
Distribution: FC3 & Ubuntu
Posts: 68

Rep: Reputation: 15
Building xsane into an RPM


1) Download xsane-0.94.tar.gz

2) Check your build "optflags" in terminal
rpm --eval '%{optflags}'
should see something like this:
-02 -march=i486 -mcpu=i686

3) Check your Top Directory (this is where your build takes place) in terminal
rpm --eval '%{_topdir}'
should see something like this:
/usr/src/packages

4) In terminal cd /usr/src/packages
ls -1F /usr/src/packages
should have:
BUILD/
RPMS/
SOURCES/
SPECS/
SRPMS/

5)As Root, Copy source xsane-0.94.tar.gz to /usr/src/packages/SOURCES
(I also extracted mine there, for quick reference - but you don't have to)

6)As Root, Open the xsane-0.94 folder that was created when you extracted the files, copy xsane.spec to /usr/src/packages/SPECS

7)As Root, Edit /usr/src/packages/SPECS/xsane.spec
I edited the following:
version 0.94
Requires sane (not sane-backends)
Build Requires gtk+ >= 1.2.0 (I deleted sane-backends-dev >=1.0.2)
add vendor - make your own name (under Build Requires)
add Packager - your name & email address (under Build Requires)

8) As Root, cd /usr/src/packages/SPECS
rpm -bb xsane.spec
This will build it & place a copy of the build under /usr/src/packages/BUILD, it will also place a copy of the rpm under /usr/src/packages/RPMS under i386(it won't show any items intially outside the i386 folder, until you open it- I don't know why)

9)As Root, Install RPM
cd /usr/src/packages/RPMS/i386
rpm -i xsane-0.94-1.i386.rpm
 
  


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
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 05:29 PM
regarding building RPM hinetvenkat Linux - Networking 2 08-29-2005 09:42 AM
need help building rpm Hockeyfan Linux - Software 3 11-20-2004 06:15 AM
building rpm nearfar Linux - Newbie 1 12-29-2003 10:21 PM
building rpm saleem Programming 1 11-12-2001 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > JDS

All times are GMT -5. The time now is 06:49 PM.

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