Re: [Rpm-maint] base package or devel package?

2008-08-28 Thread Pavol Rusnak

holmes86 wrote:
I am a make rpm newbie.I have a question now.when I was making rpm 
package,I don't know which parts are base package and which parts are 
devel package one? Is they any rule? thanks very much!


Rough explanation:

Assume project called foo, we could split into following packages:

* base package - foo
  - binaries (eg. /usr/bin/*)
  - documentation (could go into separate foo-doc if very large)
  - icons, desktop files, etc.

* shared library package - libfooXXX (XXX is .so major number eg libfoo3 
for libfoo.so.3.24.3)

  - only library! (/usr/lib/libfooXXX.so.*)

* devel package - libfoo-devel (no XXX here)
  - .so symlink - /usr/lib/libfoo.so
  - includes - /usr/include/*
  - pkgconfig file - /usr/lib/pkg-config/*

We usually do not package .a or .la files (you could avoid building .a 
with --disable-static passed to configure, you have to manually delete 
.la files though).


Base package should require libfoo-devel and devel package should 
require particular lib package (libfooXXX).


Hope that helps.

--
Best Regards / S pozdravom,

Pavol RUSNAK   SUSE LINUX, s.r.o
Package MaintainerLihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.czhttp://www.suse.cz
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] base package or devel package?

2008-08-28 Thread Pavol Rusnak

Mark Hatle wrote:

(Note, base/devel is a minimal breakdown everyone uses.)


Of course, it does not have sense to always split shared libraries into 
separate package. Use your common sense and ask whether this library is 
used also in other packages.


--
Best Regards / S pozdravom,

Pavol RUSNAK   SUSE LINUX, s.r.o
Package MaintainerLihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.czhttp://www.suse.cz
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [draft] spec file unification: autotools based projects

2008-07-18 Thread Pavol Rusnak

Stanislav Brabec wrote:

Attached script changes all references to %{_libdir} form. It is far
from being perfect, but it helps a bit.


By choosing the right order of replacements we could use less rules to 
have the same effect. I'm attaching a modified script.


--
Best Regards / S pozdravom,

Pavol RUSNAK   SUSE LINUX, s.r.o
Package MaintainerLihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.czhttp://www.suse.cz


spec-polish-macros.sh
Description: application/shellscript
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint