[Mono-list] Creating RPM package - problems

poncky pawel at wolny.info.pl
Fri Jul 23 04:16:26 EDT 2010


Hi,

I have to create my own RPM packages for mono, xsp and mod-mono to install
them on SLES 10 (Upgrading to SLES 11 is not an option, compiling and making
it manually would take too much time because it has to be done on over 100
computers located in different places)

Are there any known methods to do it fast and simple?

I've tried to create my own spec file (For the moment only for mono) and
after a lot of time wasted I finally obtained my own RPM package but when I
try to install it with "rpm -ivh mono-SLES10-2.6.7-1.rpm" I get a lot of
errors like 
"file
/usr/lib/mono/gac/System.Web.Mvc/1.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
from install of mono-SLES10-2.6.7-1 conflicts with file from package
mono-web-2.4.3-26.1"

The only way I can install my package is to use --force argument which I
think isn't going to work out very well.

Here's my spec file:

Name: mono-SLES10
Version: 2.6.7
Release: 1
Summary: Mono for SLES 10
License: GPL
Group: Development/Languages
Source: mono-2.6.7.tar.bz2
Vendor: "My company"
URL: http://mono.ximian.com/monobuild/preview/download-preview/
Packager: "My personal data"
%description
Mono Libraries for SLES 10

%prep
%setup -n mono-2.6.7

%build
./configure --prefix=/usr
make

%install
sudo make install

%files 
%dir /usr/bin
%dir /usr/etc
%dir /usr/include
%dir /usr/lib
%dir /usr/share

/usr/bin/al
/usr/bin/lc
/usr/bin/sn
/usr/bin/al1
/usr/bin/al2
/usr/bin/jay
/usr/bin/mcs
/usr/bin/mjs
/usr/bin/mod
/usr/bin/xsd
/usr/bin/cilc
/usr/bin/gmcs
/usr/bin/mcs1
/usr/bin/mdoc
/usr/bin/mono
/usr/bin/sgen
/usr/bin/wsdl
/usr/bin/xsd2
/usr/bin/monodocer
/usr/bin/monograph
/usr/bin/cert2spc
/usr/bin/resgen1
/usr/bin/resgen2
/usr/bin/disco
/usr/bin/genxs
/usr/bin/ilasm
/usr/bin/monop
/usr/bin/mono-shlib-cop
/usr/bin/wsdl1
/usr/bin/wsdl2
/usr/bin/signcode
/usr/bin/nunit-console2
/usr/bin/mdassembler
/usr/bin/mono-api-info
/usr/bin/secutil
/usr/bin/dtd2rng
/usr/bin/dtd2xsd
/usr/bin/monolinker
/usr/bin/mdoc-validate
/usr/bin/macpack
/usr/bin/mconfig
/usr/bin/mdoc-assemble
/usr/bin/makecert
/usr/bin/installvst
/usr/bin/mono-test-install
/usr/bin/mdvalidater
/usr/bin/sqlmetal
/usr/bin/sqlsharp
/usr/bin/gacutil
/usr/bin/chktrust
/usr/bin/caspol
/usr/bin/svcutil
/usr/bin/csharp
/usr/bin/monodocs2html
/usr/bin/monodis
/usr/bin/genxs1
/usr/bin/mdoc-update
/usr/bin/ilasm1
/usr/bin/ilasm2
/usr/bin/monop1
/usr/bin/monop2
/usr/bin/mono-find-provides
/usr/bin/pedump
/usr/bin/mdoc-export-html
/usr/bin/mozroots
/usr/bin/mono-gdb.py
/usr/bin/resgen
/usr/bin/setreg
/usr/bin/prj2make
/usr/bin/mono-service2
/usr/bin/mono-xmltool
/usr/bin/gacutil1
/usr/bin/gacutil2
/usr/bin/xbuild
/usr/bin/mkbundle
/usr/bin/nunit-console
/usr/bin/pdb2mdb
/usr/bin/mono-cil-strip
/usr/bin/httpcfg
/usr/bin/monodocs2slashdoc
/usr/bin/mono-service
/usr/bin/certmgr
/usr/bin/mono-find-requires
/usr/bin/permview
/usr/bin/soapsuds
/usr/bin/mkbundle1
/usr/bin/mkbundle2
/usr/bin/mdoc-export-msxdoc

/usr/etc/mono/*

/usr/include/mono-1.0/*

/usr/lib/mono/*
/usr/lib/monodoc/*
/usr/lib/mono-source-libs/*
/usr/lib/pkgconfig/*

/usr/lib/libikvm-native.a
/usr/lib/libikvm-native.la
/usr/lib/libikvm-native.so
/usr/lib/libmono.a
/usr/lib/libmono.la
/usr/lib/libMonoPosixHelper.a
/usr/lib/libMonoPosixHelper.la
/usr/lib/libMonoPosixHelper.so
/usr/lib/libmono-profiler-aot.a
/usr/lib/libmono-profiler-aot.la
/usr/lib/libmono-profiler-aot.so
/usr/lib/libmono-profiler-aot.so.0
/usr/lib/libmono-profiler-aot.so.0.0.0
/usr/lib/libmono-profiler-cov.a
/usr/lib/libmono-profiler-cov.la
/usr/lib/libmono-profiler-cov.so
/usr/lib/libmono-profiler-cov.so.0
/usr/lib/libmono-profiler-cov.so.0.0.0
/usr/lib/libmono-profiler-logging.a
/usr/lib/libmono-profiler-logging.la
/usr/lib/libmono-profiler-logging.so
/usr/lib/libmono-profiler-logging.so.0
/usr/lib/libmono-profiler-logging.so.0.0.0
/usr/lib/libmono.so
/usr/lib/libmono.so.0
/usr/lib/libmono.so.0.0.0
/usr/lib/libMonoSupportW.a
/usr/lib/libMonoSupportW.la
/usr/lib/libMonoSupportW.so

%dir /usr/share/jay/

/usr/share/jay/NOTES
/usr/share/jay/README
/usr/share/jay/skeleton.cs
/usr/share/jay/skeleton
/usr/share/jay/ACKNOWLEDGEMENTS
/usr/share/jay/README.jay
/usr/share/jay/NEW_FEATURES

%dir /usr/share/man/
%dir /usr/share/man/man1/

/usr/share/man/man1/al.1
/usr/share/man/man1/lc.1
/usr/share/man/man1/sn.1
/usr/share/man/man1/monodis.1
/usr/share/man/man1/mozroots.1
/usr/share/man/man1/mdoc-assemble.1
/usr/share/man/man1/certmgr.1
/usr/share/man/man1/secutil.1
/usr/share/man/man1/monostyle.1
/usr/share/man/man1/macpack.1
/usr/share/man/man1/disco.1
/usr/share/man/man1/monodocs2html.1
/usr/share/man/man1/jay.1
/usr/share/man/man1/mono-xmltool.1
/usr/share/man/man1/mcs.1
/usr/share/man/man1/resgen.1
/usr/share/man/man1/httpcfg.1
/usr/share/man/man1/xsd.1
/usr/share/man/man1/mdoc-validate.1
/usr/share/man/man1/xbuild.1
/usr/share/man/man1/soapsuds.1
/usr/share/man/man1/mono-cil-strip.1
/usr/share/man/man1/sqlsharp.1
/usr/share/man/man1/mono-service.1
/usr/share/man/man1/mdvalidater.1
/usr/share/man/man1/cilc.1
/usr/share/man/man1/genxs.1
/usr/share/man/man1/monop.1
/usr/share/man/man1/monolinker.1
/usr/share/man/man1/cert2spc.1
/usr/share/man/man1/mdoc.1
/usr/share/man/man1/mint.1
/usr/share/man/man1/mono-shlib-cop.1
/usr/share/man/man1/mono.1
/usr/share/man/man1/prj2make.1
/usr/share/man/man1/mdassembler.1
/usr/share/man/man1/sgen.1
/usr/share/man/man1/pdb2mdb.1
/usr/share/man/man1/mkbundle.1
/usr/share/man/man1/wsdl.1
/usr/share/man/man1/permview.1
/usr/share/man/man1/gacutil.1
/usr/share/man/man1/dtd2xsd.1
/usr/share/man/man1/mdoc-update.1
/usr/share/man/man1/setreg.1
/usr/share/man/man1/monodocer.1
/usr/share/man/man1/chktrust.1
/usr/share/man/man1/ilasm.1
/usr/share/man/man1/oldmono.1
/usr/share/man/man1/mdoc-export-html.1
/usr/share/man/man1/makecert.1
/usr/share/man/man1/csharp.1
/usr/share/man/man1/mconfig.1
/usr/share/man/man1/signcode.1
/usr/share/man/man1/mdoc-export-msxdoc.1

%dir /usr/share/man/man5/

/usr/share/man/man5/mono-config.5
/usr/share/man/man5/mdoc.5

/usr/share/libgc-mono/*
/usr/share/mono-1.0/*

%dir /usr/share/locale/

%dir /usr/share/locale
%dir /usr/share/locale/de
%dir /usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/mcs.mo

%dir /usr/share/locale/es
%dir /usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/mcs.mo

%dir /usr/share/locale/ja
%dir /usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/mcs.mo



-- 
View this message in context: http://mono.1490590.n4.nabble.com/Creating-RPM-package-problems-tp2299828p2299828.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list