RPM - spec - Directory Standarization: Difference between revisions

From OS2World.Com Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
{|class="wikitable sortable"
{|class="wikitable sortable"
!Where||Name 1||SPECS (RPM)|| Comments  
!Where||Name 1||SPECS (RPM)|| Comments  
|-
| @unixroot/usr || usr || %{_usr} || usr directory
|-
|-
| @unixroot/usr/bin  || Binaries  || %{_bindir}  || EXE files goes here
| @unixroot/usr/bin  || Binaries  || %{_bindir}  || EXE files goes here
Line 13: Line 15:
| @unixroot/usr/share/doc/ ||  || %doc ||  TXT files goes here
| @unixroot/usr/share/doc/ ||  || %doc ||  TXT files goes here
|-
|-
| ||  || %{_docdir} ||  
| @unixroot/usr/share/doc/ ||  || %{_docdir} ||  
|-
|-
| @unixroot/usr/share/man ||  || %{_mandir} || MAN files  goes here
| @unixroot/usr/share/man ||  || %{_mandir} || MAN files  goes here
Line 67: Line 69:
  # rpm --eval %os2_helpdir
  # rpm --eval %os2_helpdir
  /@unixroot/usr/share/os2/help
  /@unixroot/usr/share/os2/help
# rpm --eval %{echo:$PROGRAMS\\myapp}
F:\Apps\myapp
# rpm --eval %{echo:$PROGRAMS\\myapp}
$PROGRAMS\\myapp


==Links==
==Links==

Latest revision as of 04:33, 1 March 2021

FHS structure is making me crazy and I need to write down things since I forget how that FHS craziness works.

USR Directory

Where Name 1 SPECS (RPM) Comments
@unixroot/usr usr %{_usr} usr directory
@unixroot/usr/bin Binaries %{_bindir} EXE files goes here
@unixroot/usr/lib Libraries %{_libdir} DLL files goes here
@unixroot/usr/share/ DataDir %{_datadir} Any apps files goes here. Images, sounds, etc.
@unixroot/usr/share/doc/ %doc TXT files goes here
@unixroot/usr/share/doc/ %{_docdir}
@unixroot/usr/share/man %{_mandir} MAN files goes here
@unixroot/usr/share/os2/lang %os2_langdir
@unixroot/usr/share/os2/book %os2_bookdir
@unixroot/usr/share/os2/help %os2_helpdir HLP Files here

HOME Directory

Where Name 1 SPECS (RPM) Comments
x:\Home Home Path %{getenv:HOME}

VAR

Where Name 1 SPECS (RPM) Comments
@unixroot/var/tmp %{_tmppath} Temporary Path
@unixroot/var %{_var} var pat

OTHERS

Where Name 1 SPECS (RPM) Comments
x:PROGRAMS %{env:PROGRAMS} Brings the variable from "SET PROGRAMS=" withoout the backslash
x:\PROGRAMS $PROGRAMS Brings the variable from "SET PROGRAMS=", full path.
x:\config.sys %{os2_config_sys} Brings config.sys full path.
x: %{os2_unixroot_path} OS/2 Unix root drive

Testing

You can open sh command line session and test:

# rpm --eval %os2_langdir
/@unixroot/usr/share/os2/lang
# rpm --eval %os2_bookdir
/@unixroot/usr/share/os2/book
# rpm --eval %os2_helpdir
/@unixroot/usr/share/os2/help
# rpm --eval %{echo:$PROGRAMS\\myapp}
F:\Apps\myapp
# rpm --eval %{echo:$PROGRAMS\\myapp}
$PROGRAMS\\myapp

Links