Ignore:
Timestamp:
Dec 14, 2017, 4:33:21 PM (8 years ago)
Author:
Silvan Scherrer
Message:

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

File:
1 edited

Legend:

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

    r1249 r1271  
    4848# bww_app creates:
    4949#  a object in the bww folder (will get a BWW_%{name}_<ID>_APP WPS object ID)
    50 #  a shadow of the object on the desktop (if requested) (will get a BWW_%{name}_<ID>_APP_SHADOW WPS object ID)
    51 #
    52 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    53 # !!!!!! be aware that the -s option (if used) is not the last option. !!!!!!
    54 # !!!!!! as else the complete object is not generated.                 !!!!!!
    55 # !!!!!! this looks like a rpm issue                                   !!!!!!
    56 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    5750#
    5851# %bww_app [ID] -f APP -t TITLE [-n PACKAGE] [-s] [-a ASSOCIATIONS] [-i ICON] [-d STARTUPDIR]
     
    6861#     installation!
    6962#  -d STARTUPDIR (when provided: this value is set as STARTUPDIR in the wps object)
    70 #  -s (when provided: create a shadow on the desktop)
    7163#
    7264
    73 %bww_app(f:t:n:a:i:d:s)\
     65%bww_app(f:t:n:a:i:d:)\
    7466%{!-f:%{error:%0: Missing mandatory EXEFILE parameter}}\
    7567%{!-t:%{error:%0: Missing mandatory TITLE parameter}}\
     
    8274%global __bww_app_name %{-f*}\
    8375%wps_object_create %{__bww_app_id}:WPProgram|%{__bww_app_title}|<%{__bww_folder_id}>|EXENAME=((%{__bww_app_name}));%{__bww_app_startupdir}TITLE=%{__bww_app_title};%{__bww_app_icon}%{__bww_app_assoc}\
    84 %{-s:%wps_object_create %{__bww_app_id}_SHADOW:WPShadow|%{__bww_app_title}|<WP_DESKTOP>|SHADOWID=<%{__bww_app_id}>;}\
     76%{nil}
     77
     78# bww_app_shadow creates:
     79#  a shadow of the object on the given WPS destination (will get a BWW_%{name}_<ID>_APP_SHADOW WPS object ID)
     80#
     81#
     82# %bww_app_shadow [ID] -t TITLE [-n PACKAGE] [-d WPSID]
     83#  ID (when provided: this ID is added to the WPS id)
     84#  -t TITLE (Mandatory: use TITLE as the app title)
     85#     (TITLE *must* be a %global macro if with spaces)
     86#  -n PACKAGE (when provided: associate the folder with PACKAGE, else with %{name})
     87#  -d WPSID (when provided: use this ID as the parent, else use WP_DESKTOP)
     88#
     89
     90%bww_app_shadow(t:n:d:)\
     91%{!-t:%{error:%0: Missing mandatory TITLE parameter}}\
     92%bww_create_folder_id\
     93%bww_create_app_id\
     94%global __bww_app_title %{-t*}\
     95%global __bww_app_shadowdest %{!-d:WP_DESKTOP}%{-d:%{-d*}}\
     96%wps_object_create %{__bww_app_id}_%{__bww_app_shadowdest}_SHADOW:WPShadow|%{__bww_app_title}|<%{__bww_app_shadowdest}>|SHADOWID=<%{__bww_app_id}>;\
    8597%{nil}
    8698
Note: See TracChangeset for help on using the changeset viewer.