# # Macros for bitwiseworks default WPS object structure # # bww_folder creates the 5 common WPS objects # - Create bitwiseworks Help Center # - Create shadow of the apps doc dir in the bitwise help Center # - Create bitwiseworks Apps and Ports folder # - Create shadow of the bitwise help Center in the Apps and ports folder (if provided) # - Create folder for the installed app # # bww_app creates the WPS object for the installed app # - Create program object for the installed app in the app folder # - Associate file filter with the installed app (if provided) # - Associate Icon to the app (if provided) # - Create shadow of the installed app on the desktop (if provided) # # bww_readme creates the WPS object for the readme # - Create shadow of a file # # parameter (-t) (used in bww_folder, bww_app) # this is the desired title for the folder or the app, if this parameter is left # out, we use %{summary} as the title # # parameter (-d) (used in bww_folder, bww_readme) # use this name as the document directory part # If this parameter is not provided, %_defaultdocdir/%{name}-%{version} is used # # parameter (-e) (used in bww_app) # This is the name of the app w/o the extension # This parameter is mandatory to create a WPS object # # parameter (-i) (used in bww_app) # Icon for the app. If this parameter is left out, no icon is added # The icon has to be copied to /@unixroot/usr/share/os2/icons during installation # If this parameter is not provided, no icons are added # # parameter (-a) (used in bww_app) # Associate a file filter (for example -a *.txt) to the app # If this parameter is not provided, no associations are added # # parameter (-s) (used in bww_folder, bww_app) # Create a shadow # If this parameter is not provided, no shadow is generated # # parameter (-o) (used in bww_app) # App extension including the . like .cmd .bat .sh # If this parameter is not provided, then .exe is used # # parameter (-r) (used in bww_readme) # Create a shadow for the provided readme # If this parameter is not provided, then no shadow is created # %bww_folder(t:d:s:)\ %if %{undefined __bww_folder_done}\ %define __bww_title %{!-t:%{summary} %{version}}%{-t:%{-t*}}\ %define __bww_docdir %{!-d:%_defaultdocdir/%{name}-%{version}}%{-d:%{-d*}}\ %wps_object_create WP_BWWHELP:WPFolder|bww Help||TITLE=bitwiseworks Help Center;SHOWALLINTREEVIEW=YES;ICONRESOURCE=60,PMWP.DLL;ICONNRESOURCE=83,PMWP.DLL;BACKGROUND=((/@unixroot/usr/share/os2/bww/bwwfbkg.bmp));\ %wps_object_create %{name}_BWWHELP:WPShadow|Readme||SHADOWID=((%{__bww_docdir}));\ %wps_object_create WP_BWWAPPS:WPFolder|bww Apps||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;\ %{-s:%{expand:%wps_object_create WP_BWWHELPSHADOW:WPShadow|bitwiseworks Help Center||SHADOWID=;}}\ %wps_object_create %{name}_FOLDER:WPFolder|%{name}||TITLE=%{__bww_title};\ %global __bww_folder_done 1\ %endif\ %{nil} %bww_app(t:e:s:i:a:o:)\ %define __bww_exeTitle %{!-t:%{summary}}%{-t:%{-t*}}\ %define __bww_exeIcon %{!-i:}%{-i:ICONFILE=((/@unixroot/usr/share/os2/icons/%{-i*}));}\ %define __bww_exeAssoc %{!-a:}%{-a:ASSOCFILTER=%{-a*};}\ %define __bww_exeName %{!-o:%{-e*}.exe}%{-o:%{-e*}%{-o*}}\ %{-e:%{expand:%wps_object_create %{-e*}_EXE:WPProgram|%{__bww_exeTitle}|<%{name}_FOLDER>|EXENAME=((%_bindir/%{__bww_exeName}));STARTUPDIR=((%_bindir));TITLE=%{__bww_exeTitle};%{__bww_exeIcon}%{__bww_exeAssoc}}}\ %{-s:%{-e:%{expand:%wps_object_create %{-e*}_SHADOW:WPShadow|%{__bww_exeTitle}||SHADOWID=<%{-e*}_EXE>;}}}\ %{nil} %bww_readme(r:d:)\ %define __bww_docdir %{!-d:%_defaultdocdir/%{name}-%{version}}%{-d:%{-d*}}\ %{-r:%{expand:%wps_object_create %{-r*}_README:WPShadow|Readme|<%{name}_FOLDER>|SHADOWID=((%{__bww_docdir}/%{-r*}))}}\ %{nil}