Changeset 1235 for spec/trunk/SPECS/bww-resources-rpm/macros.bww
- Timestamp:
- Sep 15, 2017, 3:29:11 PM (8 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/bww-resources-rpm/macros.bww (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/bww-resources-rpm/macros.bww
r1233 r1235 2 2 # Macros for bitwiseworks default WPS object structure 3 3 # 4 # Reserved WPS ID's in this macro 5 # - README 6 # - LICENSE 7 # - COPYRIGHT 8 # - DOCDIR 9 # - FOLDER 10 # - APP 11 # 12 # 4 13 # 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) 5 18 # a folder for the installed app 6 19 # 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] 8 30 # -t TITLE (Mandatory: use TITLE as the folder title) 9 31 # (TITLE *must* be a %global macro if with spaces) … … 16 38 %global __bww_title %{-t*}\ 17 39 %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>;\ 18 44 %wps_object_create %{__bww_folder_id}:WPFolder|%{__bww_folder_name}|<WP_BWWAPPS>|TITLE=%{__bww_title_ver};\ 19 45 %{nil} … … 23 49 # a shadow of the object on the desktop (if requested) (will get a BWW_%{name}_<ID>_APP_SHADOW WPS object ID) 24 50 # 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] 26 58 # ID (when provided: this ID is added to the WPS id) 27 59 # -f EXEFILE (Mandatory: fullpath/to/app) … … 53 85 54 86 # bww_readme creates: 55 # a shadow of a readme file (will get a BWW_%{name}_README _FILEWPS ID)87 # a shadow of a readme file (will get a BWW_%{name}_README WPS ID) 56 88 # 57 89 # %bww_readme -f FILE [-n PACKAGE] … … 64 96 65 97 # bww_license creates: 66 # a shadow of a license file (will get a BWW_%{name}_LICENSE _FILEWPS ID)98 # a shadow of a license file (will get a BWW_%{name}_LICENSE WPS ID) 67 99 # 68 100 # %bww_license -f LICENSE [-n PACKAGE] … … 75 107 76 108 # bww_copyright creates: 77 # a shadow of a copyright file (will get a BWW_%{name}_COPYRIGHT _FILEWPS ID)109 # a shadow of a copyright file (will get a BWW_%{name}_COPYRIGHT WPS ID) 78 110 # 79 111 # %bww_copyright -f FILE [-n PACKAGE] … … 85 117 %{nil} 86 118 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 87 130 # bww_file creates: 88 # a shadow of a file (will get a BWW_%{name}_<ID> _FILEWPS object ID)131 # a shadow of a file (will get a BWW_%{name}_<ID> WPS object ID) 89 132 # 90 133 # %bww_file ID -f FILE [-n PACKAGE] … … 99 142 %global __bww_file_id %{1}\ 100 143 %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}))\ 102 145 %{nil} 103 146
Note:
See TracChangeset
for help on using the changeset viewer.
