Policies/Mono

From Mandriva Community Wiki

Jump to: navigation, search
This page is a draft. It requires improvements.
If you want to contribute, simply click on the edit tab. View the other pages to improve and maintain.

Initial intent at forming a Mono packing policy..

Mono Documentation Found

Debian: http://pkg-mono.alioth.debian.org/cli-policy/

Fedora: http://fedoraproject.org/wiki/Packaging:Mono#File_Locations

Mono Project: http://www.mono-project.com/Assemblies_and_the_GAC

Notes/Comments

Other than the DLLs being noarch and other parts of the package being arch dependent. It's very similar to other library packaging.

Macros

Additions for making proper mono library packages

%if "%{?_lib}" == "lib64"
%define monosuffix  64
%endif
%define _libmono libmono%{?monosuffix}
%define mklibmono(d) %{_libmono}%{1}%{?2}%{-d:-devel}

%define _monodir %{_prefix}/lib/mono

libmono(suffix) %{1} name %{2} api hardcoded libmono(suffix) so these libs don't get mixed up with other libs. -d well for devel duh

files that go in %{_prefix}/lib/mono %{_prefix}/lib/gac should be separated into respective DLLs into their own pkgs.

pkgconfig files must be always located the devel pkg.

Personal tools