| 1 | %define debug_package %{nil}
|
|---|
| 2 | %define _strip_opts --no-compress --no-debuginfo
|
|---|
| 3 |
|
|---|
| 4 | Summary: bitwise works icons and folders
|
|---|
| 5 | Name: bww-resources-rpm
|
|---|
| 6 | Version: 1.1.2
|
|---|
| 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 | Requires: os2-rpm >= 0-4
|
|---|
| 23 |
|
|---|
| 24 | BuildRequires: rexx_exe
|
|---|
| 25 |
|
|---|
| 26 | %description
|
|---|
| 27 | This package provides bitwise works icons and folder background
|
|---|
| 28 |
|
|---|
| 29 | %package build
|
|---|
| 30 | Summary: bww rpm macros for rpm
|
|---|
| 31 | Group: Development/Libraries
|
|---|
| 32 |
|
|---|
| 33 | %description build
|
|---|
| 34 | This package provides bitwise works macros for rpm builds
|
|---|
| 35 |
|
|---|
| 36 | %prep
|
|---|
| 37 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 38 |
|
|---|
| 39 | # Prepare forwarder DLLs.
|
|---|
| 40 | for m in %{SOURCE1} %{SOURCE2} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13}; do
|
|---|
| 41 | cp ${m} .
|
|---|
| 42 | done
|
|---|
| 43 |
|
|---|
| 44 | cat << EOF >mkres.def
|
|---|
| 45 | ; MKRES.DEF: Definition file for resource DLL's
|
|---|
| 46 | ; -----------------------------------------------
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | LIBRARY
|
|---|
| 50 |
|
|---|
| 51 | CODE SHARED
|
|---|
| 52 | DATA SHARED SINGLE
|
|---|
| 53 |
|
|---|
| 54 | PROTMODE
|
|---|
| 55 | EOF
|
|---|
| 56 |
|
|---|
| 57 | cat << EOF >bwwres.rc
|
|---|
| 58 | ICON 1 BWWFLDRC.ICO
|
|---|
| 59 | ICON 2 BWWFLDRO.ICO
|
|---|
| 60 | BITMAP 3 BWWFBKG.BMP
|
|---|
| 61 | EOF
|
|---|
| 62 |
|
|---|
| 63 | %build
|
|---|
| 64 | link386 /A:4 /BASE:0x12000000 /NOD /NOL mkres.obj, bwwres.dll, nul, , mkres;
|
|---|
| 65 | rc bwwres.rc bwwres.dll
|
|---|
| 66 |
|
|---|
| 67 | %install
|
|---|
| 68 | install -p -m0644 -D bwwres.dll $RPM_BUILD_ROOT%{_libdir}/bwwres.dll
|
|---|
| 69 | install -p -m0644 -D macros.bww $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.bww
|
|---|
| 70 | install -p -m0644 -D bwwfbkg.bmp $RPM_BUILD_ROOT%{_datadir}/os2/bww/bwwfbkg.bmp
|
|---|
| 71 | install -p -m0644 -D bwwfldrc.ico $RPM_BUILD_ROOT%{_datadir}/os2/bww/bwwfldrc.ico
|
|---|
| 72 | install -p -m0644 -D bwwfldro.ico $RPM_BUILD_ROOT%{_datadir}/os2/bww/bwwfldro.ico
|
|---|
| 73 |
|
|---|
| 74 | %{__mkdir_p} %{buildroot}%{_bindir}
|
|---|
| 75 | for f in *.cmd; do
|
|---|
| 76 | rexx2vio "$f" "%{buildroot}%{_bindir}/${f%.cmd}.exe"
|
|---|
| 77 | done
|
|---|
| 78 |
|
|---|
| 79 | %clean
|
|---|
| 80 | rm -rf "$RPM_BUILD_ROOT"
|
|---|
| 81 |
|
|---|
| 82 | %post
|
|---|
| 83 | bww-fix-docdir
|
|---|
| 84 |
|
|---|
| 85 | %postun
|
|---|
| 86 |
|
|---|
| 87 | %files
|
|---|
| 88 | %defattr(-,root,root,-)
|
|---|
| 89 | %{_bindir}/bww-fix-docdir.exe
|
|---|
| 90 | %{_libdir}/bwwres.dll
|
|---|
| 91 | %{_datadir}/os2/bww/bwwfbkg.bmp
|
|---|
| 92 | %{_datadir}/os2/bww/*.ico
|
|---|
| 93 |
|
|---|
| 94 | %files build
|
|---|
| 95 | %{_libdir}/rpm/macros.d/macros.bww
|
|---|
| 96 |
|
|---|
| 97 | %changelog
|
|---|
| 98 | * Fri Dec 15 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.2-1
|
|---|
| 99 | - adjusted bww_app_shadow a bit
|
|---|
| 100 | - reworded the help and info in the macro (no functional change)
|
|---|
| 101 |
|
|---|
| 102 | * Thu Dec 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.1-1
|
|---|
| 103 | - added bww_app_shadow and removed the -s switch from bww_app
|
|---|
| 104 |
|
|---|
| 105 | * Wed Oct 04 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.0-3
|
|---|
| 106 | - changed bww_doc to bww_docdir
|
|---|
| 107 | - changed "Documentation" to "Package Documentation"
|
|---|
| 108 |
|
|---|
| 109 | * Tue Oct 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.0-2
|
|---|
| 110 | - added bww_changelog macro
|
|---|
| 111 | - added a req for os2-rpm >= 0-4 to be sure all exe and symlink are available
|
|---|
| 112 |
|
|---|
| 113 | * Thu Sep 07 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.0-1
|
|---|
| 114 | - big overhaul of the macros
|
|---|
| 115 | - added better documentation
|
|---|
| 116 | - add several presentation parameters to the bitwise help center
|
|---|
| 117 |
|
|---|
| 118 | * Thu Jun 29 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.2-1
|
|---|
| 119 | - added -nv parameter to the macro
|
|---|
| 120 | - fixed a possible wps id issue in the readme part of the macro
|
|---|
| 121 |
|
|---|
| 122 | * Thu Jun 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.1-1
|
|---|
| 123 | - redesigned the macro completely
|
|---|
| 124 | - moved the macro to -devel
|
|---|
| 125 | - renamed the spec
|
|---|
| 126 |
|
|---|
| 127 | * Sat Mar 18 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-5
|
|---|
| 128 | - fix -a switch (diver)
|
|---|
| 129 |
|
|---|
| 130 | * Tue Mar 14 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-4
|
|---|
| 131 | - -a switch in order to allow file filters
|
|---|
| 132 |
|
|---|
| 133 | * Mon Mar 06 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-3
|
|---|
| 134 | - -t switch in order to allow custom object titles (diver)
|
|---|
| 135 |
|
|---|
| 136 | * Mon Mar 06 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-2
|
|---|
| 137 | - fix exe shadow
|
|---|
| 138 | - heavily modified specfile (diver)
|
|---|
| 139 |
|
|---|
| 140 | * Fri Mar 03 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.0-1
|
|---|
| 141 | - first release of bitwise works icons, bitmaps and macros
|
|---|