Ignore:
Timestamp:
Sep 15, 2017, 3:29:11 PM (8 years ago)
Author:
herwigb
Message:

spec: bww-resources-rpm: Release version 1.1.0-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/bww-resources-rpm/macros.bww

    r1233 r1235  
    22# Macros for bitwiseworks default WPS object structure
    33#
     4# Reserved WPS ID's in this macro
     5#  - README
     6#  - LICENSE
     7#  - COPYRIGHT
     8#  - DOCDIR
     9#  - FOLDER
     10#  - APP
     11#
     12#
    413# bww_folder creates:
     14#  the bww help center as WP_BWWHELP wps id in WP_ASSISTANCE
     15#  a shadow of the /@unixroot/usr/share/doc dir as WP_BWWDOC in the bww help center (WP_BWWHELP)
     16#  the bww apps folder as WP_BWWAPPS in WP_PROGRAMSFOLDER
     17#  a shadow of the bww help center as WP_BWWHELPSHADOW in the bww apps folder (WP_BWWAPPS)
    518#  a folder for the installed app
    619#
    7 # %bww_folder -t TITLE [-n PAGKAGE] [-V]
     20# the first 4 WPS objects are usually only updated and the referenc counter in wps_create is adjusted
     21# it is necessary that every app creates the bww_folder first, as else the counters are wrong
     22#
     23# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     24# !!!!!! be aware that the -V option (if used) is not the last option. !!!!!!
     25# !!!!!! as else the complete object is not generated.                 !!!!!!
     26# !!!!!! this looks like a rpm issue                                   !!!!!!
     27# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     28#
     29# %bww_folder -t TITLE [-V] [-n PAGKAGE]
    830#  -t TITLE (Mandatory: use TITLE as the folder title)
    931#     (TITLE *must* be a %global macro if with spaces)
     
    1638%global __bww_title %{-t*}\
    1739%global __bww_title_ver %{!-V:%{__bww_title} %{version}}%{-V:%{__bww_title}}\
     40%wps_object_create WP_BWWHELP:WPFolder|bww Help|<WP_ASSISTANCE>|TITLE=bitwiseworks Help Center;SHOWALLINTREEVIEW=YES;ICONRESOURCE=60,PMWP.DLL;ICONNRESOURCE=83,PMWP.DLL;BACKGROUND=((/@unixroot/usr/share/os2/bww/bwwfbkg.bmp));ALWAYSSORT=YES;DEFAULTSORT=-1;DEFAULTVIEW=TREE;OPEN=TREE;NODELETE=YES;\
     41%wps_object_create WP_BWWDOC:WPShadow|Documentation|<WP_BWWHELP>|SHADOWID=((/@unixroot/usr/share/doc));\
     42%wps_object_create WP_BWWAPPS:WPFolder|bww Apps|<WP_PROGRAMSFOLDER>|TITLE=bitwiseworks Apps and Ports;ICONRESOURCE=1,BWWRES.DLL;ICONNFILE=((/@unixroot/usr/share/os2/bww/bwwfldro.ico));BACKGROUND=((/@unixroot/usr/share/os2/bww/bwwfbkg.bmp));ICONVIEW=FLOWED;\
     43%wps_object_create WP_BWWHELPSHADOW:WPShadow|bitwiseworks Help Center|<WP_BWWAPPS>|SHADOWID=<WP_BWWHELP>;\
    1844%wps_object_create %{__bww_folder_id}:WPFolder|%{__bww_folder_name}|<WP_BWWAPPS>|TITLE=%{__bww_title_ver};\
    1945%{nil}
     
    2349#  a shadow of the object on the desktop (if requested) (will get a BWW_%{name}_<ID>_APP_SHADOW WPS object ID)
    2450#
    25 # %bww_app [ID] -f APP -t TITLE [-n PACKAGE] [-a ASSOCIATIONS] [-i ICON] [-d STARTUPDIR] [-s]
     51# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     52# !!!!!! be aware that the -s option (if used) is not the last option. !!!!!!
     53# !!!!!! as else the complete object is not generated.                 !!!!!!
     54# !!!!!! this looks like a rpm issue                                   !!!!!!
     55# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     56#
     57# %bww_app [ID] -f APP -t TITLE [-n PACKAGE] [-s] [-a ASSOCIATIONS] [-i ICON] [-d STARTUPDIR]
    2658#  ID (when provided: this ID is added to the WPS id)
    2759#  -f EXEFILE (Mandatory: fullpath/to/app)
     
    5385
    5486# bww_readme creates:
    55 #  a shadow of a readme file (will get a BWW_%{name}_README_FILE WPS ID)
     87#  a shadow of a readme file (will get a BWW_%{name}_README WPS ID)
    5688#
    5789# %bww_readme -f FILE [-n PACKAGE]
     
    6496
    6597# bww_license creates:
    66 #  a shadow of a license file (will get a BWW_%{name}_LICENSE_FILE WPS ID)
     98#  a shadow of a license file (will get a BWW_%{name}_LICENSE WPS ID)
    6799#
    68100# %bww_license -f LICENSE [-n PACKAGE]
     
    75107
    76108# bww_copyright creates:
    77 #  a shadow of a copyright file (will get a BWW_%{name}_COPYRIGHT_FILE WPS ID)
     109#  a shadow of a copyright file (will get a BWW_%{name}_COPYRIGHT WPS ID)
    78110#
    79111# %bww_copyright -f FILE [-n PACKAGE]
     
    85117%{nil}
    86118
     119# bww_doc creates:
     120#  a shadow of a doc directory (will get a BWW_%{name}_DOCDIR WPS ID)
     121#
     122# %bww_doc -f FILE [-n PACKAGE]
     123#  -f FILE (Mandatory: create a shadow for the provided doc FILE (directory in this case))
     124#  -n PACKAGE (when provided: associate the folder with PACKAGE, else with %{name})
     125
     126%bww_doc(f:n:)\
     127%bww_file DOCDIR\
     128%{nil}
     129
    87130# bww_file creates:
    88 #  a shadow of a file (will get a BWW_%{name}_<ID>_FILE WPS object ID)
     131#  a shadow of a file (will get a BWW_%{name}_<ID> WPS object ID)
    89132#
    90133# %bww_file ID -f FILE [-n PACKAGE]
     
    99142%global __bww_file_id %{1}\
    100143%global __bww_file %{-f*}\
    101 %wps_object_create BWW_%{__bww_folder_name}_%{__bww_file_id}_FILE:WPShadow|%{__bww_file_id}|<%{__bww_folder_id}>|SHADOWID=((%{__bww_file}))\
     144%wps_object_create BWW_%{__bww_folder_name}_%{__bww_file_id}:WPShadow|%{__bww_file_id}|<%{__bww_folder_id}>|SHADOWID=((%{__bww_file}))\
    102145%{nil}
    103146
Note: See TracChangeset for help on using the changeset viewer.