Changeset 1235 for spec/trunk/SPECS


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.

Location:
spec/trunk/SPECS
Files:
2 edited

Legend:

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

    r1233 r1235  
    22%define _strip_opts --no-compress --no-debuginfo
    33
    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}
     4Summary:       bitwise works icons and folders
     5Name:          bww-resources-rpm
     6Version:       1.1.0
     7Release:       1%{?dist}
     8License:       Proprietory
     9Group:         Applications/System
     10URL:           http://www.bitwiseworks.com
     11Vendor:        bww bitwise works GmbH
     12Source1:       macros.bww
     13Source2:       bww-fix-docdir.cmd
     14Source10:      bwwfbkg.bmp
     15Source11:      bwwfldrc.ico
     16Source12:      bwwfldro.ico
     17Source13:      mkres.obj
     18BuildRoot:     %_tmppath/%name-%version-%release-root
     19BuildArch:     noarch
     20Obsoletes:     bwwres
     21Provides:      bwwres = %{version}
     22
     23BuildRequires: rexx_exe
    2124
    2225%description
    23 This package provides bitwiseworks icons and folder background
     26This package provides bitwise works icons and folder background
    2427
    2528%package build
     
    2831
    2932%description build
    30 This package provides bitwiseworks macros for rpm builds
     33This package provides bitwise works macros for rpm builds
    3134
    3235%prep
     
    3437
    3538# Prepare forwarder DLLs.
    36 for m in %{SOURCE1} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13}; do
     39for m in %{SOURCE1} %{SOURCE2} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13}; do
    3740  cp ${m} .
    3841done
     
    6871install -p -m0644 -D bwwfldro.ico $RPM_BUILD_ROOT%{_datadir}/os2/bww/bwwfldro.ico
    6972
     73%{__mkdir_p} %{buildroot}%{_bindir}
     74for f in *.cmd; do
     75  rexx2vio "$f" "%{buildroot}%{_bindir}/${f%.cmd}.exe"
     76done
     77
    7078%clean
    7179rm -rf "$RPM_BUILD_ROOT"
    7280
    7381%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 
     82bww-fix-docdir
    8183
    8284%postun
    83 if [ "$1" -eq 0 ]; then # (upon removal)
    84     %wps_object_delete_all
    85 fi
    8685
    8786%files
    8887%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
    9292
    9393%files build
    94 %_libdir/rpm/macros.d/macros.bww
     94%{_libdir}/rpm/macros.d/macros.bww
    9595
    9696%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
    97102* Thu Jun 29 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.2-1
    98103- added -nv parameter to the macro
     
    118123
    119124* Fri Mar 03 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-1
    120 - first release of bitwiseworks icons, bitmaps and macros
     125- first release of bitwise works icons, bitmaps and macros
  • 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.