OS/2, eCS & ArcaOS - Technical > Applications
Creating some apps RPM packages
Ben Rietbroek:
Hi,
My name is Ben Rietbroek and I am working on RPM for V.O.I.C.E
(VOICE Software Provisioning)
The use of RPM packages for OS/2 will increase in the future, so it might be
a good idea to think about conventions all RPM providers should adhere to.
These are the conventions I settled on for VOICE:
- package names are lowercase
- the dash (-) is used to separate name components
- no underscores (_)
- always use the '.oc00' distribution identifier
I am developing automated RPM stuff so consistent naming is important for
proper processing.
Additionally one can distinguish between packaging legacy software and
*NIX ported software. This has to do with the locations where the files are
installed and their structure.
And there are more things which would need some cooperation among
package providers so we do not make a mess of our upcoming repositories.
I am open for discussion on these subjects, either at this forum or via:
ben-at-rpm.os2voice.org
Best regards,
Ben Rietbroek.
(aka rousseau)
Martin Iturbide:
Hi Ben
I would love the see the specs samples that you have produced for the OS2VOICE RPM.
I would also like to check your suggested specs for "legacy software".
Are you writing the os2voice rpm rules somewhere? I will like to collaborate creating more packages.
--- Quote from: Ben Rietbroek on February 17, 2021, 04:06:32 pm ---- always use the '.oc00' distribution identifier
--- End quote ---
I have no idea what is this '.oc00'. I don't know where it came from, on the specs it came from "{?dist}"
Regards
Ben Rietbroek:
Hi Martin,
--- Quote ---I would love the see the specs samples that you have produced for the OS2VOICE RPM.
I would also like to check your suggested specs for "legacy software".
--- End quote ---
I will address the above with a broader document in a Request-For-Comments (RFC)
fashion. I am working on that.
--- Quote ---Are you writing the os2voice rpm rules somewhere?
--- End quote ---
I am writing almost everything down, from issues with tools to useful conventions to
ideas that popup in my head. They all have a tag and there is a background task active
clustering relevant stuff to produce a coherent document.
--- Quote ---I will like to collaborate creating more packages.
--- End quote ---
That is very cool.
I tool the liberty to send you an invitation to become a "bollplanker", which kinda means this
https://en.wiktionary.org/wiki/bollplank
and where the focus is on _your_ perspective of things.
--- Quote ---I have no idea what is this '.oc00'.
I don't know where it came from, on the specs it came from "{?dist}"
--- End quote ---
It is defined in: '@unixroot/etc/macros.dist'.
It is mainly used in the *NIX world to identify target platform.
Dunno who defined the '.oc00' name or what it stands for (yet).
[spectest]
I have a self-contained Makefile that does some 'rpmbuild' inspection.
It comes from the MDE4OS2 engine, so I have to manually adjust it a bit.
When ready I will post a dl-link here for anyone interested in inspecting
how 'rpmbuild' sees your environment behind the scenes.
Looking forward to working with you at the RPM front.
Greetz,
Ben.
Martin Iturbide:
Hi
I got this suggestion to try out:
--- Quote ---# System-wide path for OS/2 language files accessed via DPATH env. variable.
%os2_langdir %{_datadir}/os2/lang
# System-wide path for OS/2 INF files accessible via BOOKSHELF env. variable.
%os2_bookdir %{_datadir}/os2/book
# System-wide path for OS/2 HLP files accessible via HELP env. variable.
%os2_helpdir %{_datadir}/os2/help
those values are defined in rpm anyway. So don't add new stuff to dpath, help env and so forth
every installation has those values defined.
--- End quote ---
...but this knowledge came with a demotivational complain that I removed. ;D
But it is not what I'm looking for:
--- Quote ---# rpm --eval %{_programs}
%{_programs}
# 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
#
--- End quote ---
I want to find a way to install things on the \Programs\ path without hard coding it.
Regards
Ben Rietbroek:
Does
rpm --eval %{os2_boot_drive}/Programs
help you?
I also checked a fresh install and %PROGRAMS% is set in CONFIG.SYS,
so it should be in the ENVIRONMENT. So depending on which %section
you are in ${PROGRAMS} might evaluate properly.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version