FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 07-28-2011, 04:18 PM
Ralf Corsepius
 
Default (C++) Header-Only Package

On 07/28/2011 05:27 PM, Denis Arnaud wrote:
> Hello,
>
> we would like to package a C++ header-only project, namely tclap
> (https://bugzilla.redhat.com/show_bug.cgi?id=683591).
> The relevant guideline is to be found on:
> https://fedoraproject.org/wiki/Packaging/Guidelines#DevelPackages
>
> The question is:
> 1. Should the header files go into the main package, removing the need
> for a -devel sub-package? The reason would be that that package is a
> development package only, like gcc for instance.
> 2. Or should the header files go into the -devel sub-package, leaving
> the main package almost empty (only the README, COPYING documentation
> would go into the main package), much like what is done for Boost
> header-only components?
It's basically up to your preference.
I'd package it into a *-devel (sub-) package or at least let the
"base-package" additionally provide "*-devel". This would help users of
the package should the package be extended in future and a split between
"base" and "devel" be necessary.

> In either case, then, since header files are architecture independent,
This assumption may apply in your case, but does not apply in general.
Header files may well be arch-dependent or the package only support a
subset of architectures,

> I
> guess that the corresponding package should be 'noarch'. However, a
> pkgconfig (.pc) file is delivered together with the package; and rpmlint
> complains that pkgconfig files should be delivered by
> architecture-dependent sub-packages only. Should you leave rpmlint
> complaining quietly?

Where is the *.pc file being installed to rsp. what is rpmlint's complaint?

If the package is "noarch", the *.pc should be installed into
%{datadir}/pkgconfig, if it's "arch'ed" the *pc should be installed into
%{_libdir}/pkgconfig.

Ralf
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 03:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org