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


Reply
  Search this Thread
Old 09-24-2009, 03:54 AM   #1
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
rpmbuild - giving the devel it's share


HI LQers,

as LPI 2 is creeping up I'm messing around with rpmbuild. As there are nice howtos and book on the subject the first package was a brezze but now I'm working on subpackages and wonder which files should go into the a development package. Maybe someone with good understanding of compilation skills can shed some light on this.

Heres my setup right now
Code:
Name: libmcrypt
Summary: new improved version of crypt library
Version: 2.5.7
SOURCE: libmcrypt-2.5.7.tar.gz
License: GPL
Release: 2
Group: support
URL: ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt
BuildRoot: /home/user/downloads/libmcrypt_build
%description
        Improved version of crypt library. Supports a dozen of encrpytions

%package devel
Summary: New Improved Version of the Crypt Library. Develepoers version
Group: development
%description devel

%prep
%setup -q

%build
%configure
#make

%install
%makeinstall

%files
%defattr(755,root,root)
/usr/lib64/libmcrypt
/usr/lib64/libmcrypt.so.4
/usr/lib64/libmcrypt.so.4.4.7

%files devel
/usr/include/mcrypt.h
/usr/lib64/libmcrypt.so
/usr/lib64/libmcrypt.la
/usr/bin/libmcrypt-config
/usr/share/aclocal/libmcrypt.m4
%doc /usr/share/man/man3/mcrypt.3.gz
Code:
$ rpm -qlp ./libmcrypt-2.5.7-2.x86_64.rpm
/usr/lib64/libmcrypt
/usr/lib64/libmcrypt.so.4
/usr/lib64/libmcrypt.so.4.4.7
Code:
$ rpm -qlp ./libmcrypt-devel-2.5.7-2.x86_64.rpm
/usr/bin/libmcrypt-config
/usr/include/mcrypt.h
/usr/lib64/libmcrypt.la
/usr/lib64/libmcrypt.so
/usr/share/aclocal/libmcrypt.m4
/usr/share/man/man3/mcrypt.3.gz
I just borrowed this file splitting from libgcrypt on RH4 but am not sure what the libmcryt.la files about.....

I'd be happy about any input

Last edited by zhjim; 10-01-2009 at 07:56 AM. Reason: typos
 
Old 10-01-2009, 07:33 AM   #2
andrew_nh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Rep: Reputation: 0
Usually the only files that go into devel are files you need to compile against the package. This is usually the C header files.

Think of it like this

the main package is everything you need to run the program. This can include docs and shared libs. You can also put the docs and libs in there own rpms.

The devel rpm is the header files and anything you would need to build against the package. You should not need to install the devel unless you are compiling against the rpm.

In your example I would think just the /usr/include/mcrypt.h
file would go into devel.
 
Old 10-01-2009, 07:58 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748

Original Poster
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Thanks for your input Andrew. I made my had around and switch the

/usr/lib64/libmcrypt.la
/usr/lib64/libmcrypt.so

files into the normal package. The rest remains in the devel.
 
  


Reply



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
Qt libraries not found during compile - but libqt3-devel and libqt4-devel installed! prasadbrg Mandriva 5 12-02-2008 05:58 AM
kdelibs3-devel or kdelibs-devel? meknb Linux - Software 4 06-18-2006 03:35 PM
Package fam-devel needs libselinux-devel belkins Linux - Newbie 2 10-18-2004 03:02 PM
mplayer and gtk-devel and libpng-devel ... purpleburple Linux - Software 1 03-16-2003 03:57 AM
Possible bug in glibc-devel-2.2.93-5 and glibc-devel-2.2.5 mark_umr Linux - Software 1 10-22-2002 01:28 AM

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

All times are GMT -5. The time now is 07:42 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