LinuxQuestions.org
Visit the LQ Articles and Editorials section
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

Reply
 
Search this Thread
Old 06-15-2005, 09:23 AM   #1
afaiq
Member
 
Registered: Jul 2003
Location: Bay Area, CA
Distribution: SuSE 10.2
Posts: 33

Rep: Reputation: 15
How to create devel rpm from source ?


I have been unable to find a current release rpm for gtk2 for SuSE9.2, so I am thinking of creating one on my own using a source tarball and checkinstall. Normally, when I have created an rpm using source and checkinstall, I end up with a single package of the form - gtk2-2.6.5.i386.rpm. If I only install this rpm, there are corresponding gtk2-devel dependencies, that are not satisfied.

So my question - how can I create 2 rpms from a source tarball, a 'regular' and 'devel'?
 
Old 06-16-2005, 09:10 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
well, if you are sure that you have all the source code you need in that tarball, you can use the --force option and it will pass over any dependency when installing the package.

...about creating two packages, I have no idea...


good luck.
 
Old 06-16-2005, 11:28 AM   #3
ewt3y
Member
 
Registered: May 2005
Location: hanoi vietnam
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
Why using the --force option ? Gnome will not be able to use gtk without atk, pango, glib. So I recommend afaiq to install glib then atk then pango then gtk from tar.bzip2 package. afaiq will need to handle the dependencies manually ie: add libgcc.pc to PKG_CONFIG_PATH
 
Old 06-16-2005, 02:41 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
To create a devel package from source, you have to include a devel section in your rpm spec file. The best thing to do is to search for a Suse gtk2 rpm spec file and use that as a guide for creating your own package. If you are good at shell scripting you can create your own spec file fom scratch.
 
Old 06-16-2005, 03:06 PM   #5
afaiq
Member
 
Registered: Jul 2003
Location: Bay Area, CA
Distribution: SuSE 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by reddazz
To create a devel package from source, you have to include a devel section in your rpm spec file. The best thing to do is to search for a Suse gtk2 rpm spec file and use that as a guide for creating your own package. If you are good at shell scripting you can create your own spec file fom scratch.
actually, I did better than that - I found the source rpm for gtk2 for SuSE9.3, which has the complete spec file. Quick cut and paste got me started. Will work on it tonight and see how it goes....

Thank you all for your input...
 
Old 06-16-2005, 03:38 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Yeah, getting a source rpm usually is a good idea if looking for a spec file. Some distros just post all spec files in their developers section so that others can download. I am not sure about Suse though.
 
  


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
compiling from source and devel packages acedreds Linux - Software 1 09-22-2005 12:27 PM
How to create file "kernel-source-version.rpm xinix Linux - Software 2 09-10-2005 02:45 AM
imlib-devel source code? behmjoe Linux - Software 3 03-31-2005 06:14 AM
create my own update source RPM hdlist.cz carl0ski Mandriva 3 11-21-2004 12:47 AM
i try to rpm httpd-devel-2.0.40-11 rhuser Linux - Software 1 01-21-2003 11:36 AM


All times are GMT -5. The time now is 03:44 PM.

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