[Fedora-packaging] Re: File path clarification

Rich Mattes richmattes at gmail.com
Tue Nov 10 15:09:08 UTC 2009


I found a link from the cmake people that suggests creating
a /usr/lib/projectname folder for libraries and cmake files is suggested
practice to allow other projects to import yours:
http://www.itk.org/Wiki/CMake_2.6_Notes#Exporting_from_an_Installation_Tree

Is this compatible with Fedora packaging, or should pacakges install all of
their shared libs in %{_libdir}?  If the libs do go right into the libdir,
should the project-config.cmake files go somewhere like
/usr/share/projectname/cmake?

Rich

On Tue, Nov 3, 2009 at 1:00 PM, Rich Mattes <richmattes at gmail.com> wrote:

> I'm creating a package for a group of libraries, and I have a few questions
> about where to install some files.
>
> 1. The project creates its own folder in /usr/lib called
> /usr/lib/projectname, and installs its shared libraries there.  What's the
> policy on doing this vs. putting all of the libraries into /usr/lib?
>
> 1a. The project also puts a few .cmake files in its libdir folder.
> Upstream informed me that some other projects use these files during their
> own build process, so moving these cmake files could be problematic.  I
> think that putting .cmake files in /usr/lib might be a violation of linux
> filesystem rules, but doing a "yum provides *lib/*.cmake" shows that some
> other projects do this exact thing (install their libraries and cmake files
> into their own directory under /usr/lib).  This leads me to believe that
> this practice is ok?
>
> 2. The project installs a bunch of other assorted cmake macros, which are
> also used by other projects.  These don't take the form of FindProject.cmake
> though, so I don't think they belong in the system-wide cmake module path.
> I should put those in /usr/share/projectname/cmake?
>
> Thanks for the help,
>
> Rich
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/packaging/attachments/20091110/33f194a4/attachment.html 


More information about the packaging mailing list