RPM - spec - Directory Standarization: Difference between revisions
Jump to navigation
Jump to search
(→Links) |
|||
Line 13: | Line 13: | ||
| @unixroot/usr/share/doc/ || || %doc || TXT files goes here | | @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/man || || %{_mandir} || MAN files goes here |
Revision as of 01:29, 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/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