Changeset 1235 for spec/trunk/SPECS
- Timestamp:
- Sep 15, 2017, 3:29:11 PM (8 years ago)
- Location:
- spec/trunk/SPECS
- Files:
-
- 2 edited
-
bww-resources-rpm.spec (modified) (5 diffs)
-
bww-resources-rpm/macros.bww (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/bww-resources-rpm.spec
r1233 r1235 2 2 %define _strip_opts --no-compress --no-debuginfo 3 3 4 Summary: bitwiseworks icons and folders 5 Name: bww-resources-rpm 6 Version: 1.0.2 7 Release: 2%{?dist} 8 License: Proprietory 9 Group: Applications/System 10 URL: http://www.bitwiseworks.com 11 Vendor: bww bitwiseworks GmbH 12 Source1: macros.bww 13 Source10: bwwfbkg.bmp 14 Source11: bwwfldrc.ico 15 Source12: bwwfldro.ico 16 Source13: mkres.obj 17 BuildRoot: %_tmppath/%name-%version-%release-root 18 BuildArch: noarch 19 Obsoletes: bwwres 20 Provides: bwwres = %{version} 4 Summary: bitwise works icons and folders 5 Name: bww-resources-rpm 6 Version: 1.1.0 7 Release: 1%{?dist} 8 License: Proprietory 9 Group: Applications/System 10 URL: http://www.bitwiseworks.com 11 Vendor: bww bitwise works GmbH 12 Source1: macros.bww 13 Source2: bww-fix-docdir.cmd 14 Source10: bwwfbkg.bmp 15 Source11: bwwfldrc.ico 16 Source12: bwwfldro.ico 17 Source13: mkres.obj 18 BuildRoot: %_tmppath/%name-%version-%release-root 19 BuildArch: noarch 20 Obsoletes: bwwres 21 Provides: bwwres = %{version} 22 23 BuildRequires: rexx_exe 21 24 22 25 %description 23 This package provides bitwise works icons and folder background26 This package provides bitwise works icons and folder background 24 27 25 28 %package build … … 28 31 29 32 %description build 30 This package provides bitwise works macros for rpm builds33 This package provides bitwise works macros for rpm builds 31 34 32 35 %prep … … 34 37 35 38 # Prepare forwarder DLLs. 36 for m in %{SOURCE1} %{SOURCE 10} %{SOURCE11} %{SOURCE12} %{SOURCE13}; do39 for m in %{SOURCE1} %{SOURCE2} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13}; do 37 40 cp ${m} . 38 41 done … … 68 71 install -p -m0644 -D bwwfldro.ico $RPM_BUILD_ROOT%{_datadir}/os2/bww/bwwfldro.ico 69 72 73 %{__mkdir_p} %{buildroot}%{_bindir} 74 for f in *.cmd; do 75 rexx2vio "$f" "%{buildroot}%{_bindir}/${f%.cmd}.exe" 76 done 77 70 78 %clean 71 79 rm -rf "$RPM_BUILD_ROOT" 72 80 73 81 %post 74 if [ "$1" -eq 0 ]; then # (upon install) 75 %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)); 76 %wps_object_create WP_BWWDOC:WPShadow|Documentation|<WP_BWWHELP>|SHADOWID=((/@unixroot/usr/share/doc)); 77 %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; 78 %wps_object_create WP_BWWHELPSHADOW:WPShadow|bitwiseworks Help Center|<WP_BWWAPPS>|SHADOWID=<WP_BWWHELP>; 79 fi 80 82 bww-fix-docdir 81 83 82 84 %postun 83 if [ "$1" -eq 0 ]; then # (upon removal)84 %wps_object_delete_all85 fi86 85 87 86 %files 88 87 %defattr(-,root,root,-) 89 %_libdir/bwwres.dll 90 %_datadir/os2/bww/bwwfbkg.bmp 91 %_datadir/os2/bww/*.ico 88 %{_bindir}/bww-fix-docdir.exe 89 %{_libdir}/bwwres.dll 90 %{_datadir}/os2/bww/bwwfbkg.bmp 91 %{_datadir}/os2/bww/*.ico 92 92 93 93 %files build 94 % _libdir/rpm/macros.d/macros.bww94 %{_libdir}/rpm/macros.d/macros.bww 95 95 96 96 %changelog 97 * Thu Sep 07 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.0-1 98 - big overhaul of the macros 99 - added better documentation 100 - add several presentation parameters to the bitwise help center 101 97 102 * Thu Jun 29 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.2-1 98 103 - added -nv parameter to the macro … … 118 123 119 124 * Fri Mar 03 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-1 120 - first release of bitwise works icons, bitmaps and macros125 - first release of bitwise works icons, bitmaps and macros -
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.
