Re: SPECS: mono.spec - handle rpm mono provides/requires - rel 2

2005-08-11 Thread Elan Ruusamäe
why thse are in /usr/bin, while other similiar scripts are in /usr/lib/rpm?

$ l /usr/lib/rpm/find-*-{provides,requires}
-rwxr-xr-x  1 root root 514 Jul  7 02:12 /usr/lib/rpm/find-php-provides
-rwxr-xr-x  1 root root 871 Jul  7 02:12 /usr/lib/rpm/find-php-requires


On Thursday 11 August 2005 21:23, wolf wrote:
 Author: wolf Date: Thu Aug 11 18:23:30 2005 GMT
 Module: SPECS Tag: HEAD
  Log message:
 - handle rpm mono provides/requires
 - rel 2

  Files affected:
 SPECS:
mono.spec (1.130 - 1.131)

  Diffs:

 
 Index: SPECS/mono.spec
 diff -u SPECS/mono.spec:1.130 SPECS/mono.spec:1.131
 --- SPECS/mono.spec:1.130 Thu Aug 11 19:52:36 2005
 +++ SPECS/mono.spec   Thu Aug 11 20:23:24 2005
 @@ -3,13 +3,20 @@
  # Conditional build:
  %bcond_without   nptl# don't use TLS (which effectively 
 requires NPTL
 libs) %bcond_without  static_libs # don't build static libraries
 +%bcond_with  bootstrap   # don't require mono-devel to find req/prov
  #
  %define  _glibver2.4
 +#
 +%if ! %{with bootstrap}
 +%define  __mono_provides /usr/bin/mono-find-provides
 +%define  __mono_requires /usr/bin/mono-find-requires
 +%endif
 +#
  Summary: Common Language Infrastructure implementation
  Summary(pl): Implementacja Common Language Infrastructure
  Name:mono
  Version: 1.1.8.3
 -Release: 1
 +Release: 2
  License: GPL/LGPL/MIT
  Group:   Development/Languages
  #Source0Download: http://www.mono-project.com/Downloads
 @@ -27,7 +34,9 @@
  BuildRequires:   glib2-devel = %{_glibver}
  BuildRequires:   libtool
  BuildRequires:   pkgconfig
 +BuildRequires:   rpm-build = 4.4.2-0.3
  BuildRequires:   rpmbuild(macros) = 1.213
 +%{!?with_bootstrap:BuildRequires:mono-devel}
  ExclusiveArch:   %{ix86} %{x8664} arm hppa ppc s390 s390x sparc sparcv9
 sparc64 # alpha still broken, mips/ia64/m68k disabled in configure
  # note: plain i386 is not supported; mono uses cmpxchg/xadd which require
 i486 @@ -410,6 +419,10 @@
  All persons listed below can be reached at cvs_login@pld-linux.org

  $Log$
 +Revision 1.131  2005/08/11 18:23:24  wolf
 +- handle rpm mono provides/requires
 +- rel 2
 +
  Revision 1.130  2005/08/11 17:52:36  wolf
  - use bash for bash scripts

 

  CVS-web:
 http://cvs.pld-linux.org/SPECS/mono.spec?r1=1.130r2=1.131f=u

 ___
 pld-cvs-commit mailing list
 pld-cvs-commit@lists.pld-linux.org
 http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
glen
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: mono.spec - handle rpm mono provides/requires - rel 2

2005-08-11 Thread Bartosz Taudul
On Thu, Aug 11, 2005 at 09:38:21PM +0300, Elan Ruusamäe wrote:
 why thse are in /usr/bin, while other similiar scripts are in /usr/lib/rpm?
Mono places them there. If it's good or not is open to discussion.

wolf
-- 
  Bartek   .  - Przy drobnych przeliczeniach, które zajmą ci stronę...
  Taudul   :  
  .:
w o l f @ p l d - l i n u x . o r g.:. http://wolf.valkyrie.one.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: mono.spec - handle rpm mono provides/requires - rel 2

2005-08-11 Thread Tomasz Wittner
On Thu 11. of August 2005 21:42, Bartosz Taudul wrote:
 On Thu, Aug 11, 2005 at 09:38:21PM +0300, Elan Ruusamäe wrote:
  why thse are in /usr/bin, while other similiar scripts are 
in /usr/lib/rpm?
 Mono places them there. If it's good or not is open to discussion.
I suppose that /usr/bin/mono-find-{provides,requires} are not called directly 
by admin or users but only from other programs (from rpm in this case). In 
such situation, in accordance with FHS 2.3 they should go to %{_libdir}/rpm/

http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA
quote
/usr/lib : Libraries for programming and packages
Purpose

/usr/lib includes object files, libraries, and internal binaries that are not 
intended to be executed directly by users or shell scripts.
/quote

 
 wolf

-- 
Tomasz Wittner
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en