test/zap.spec
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Apr 22 13:09:42 2015 +0100 (2015-04-22)
changeset 465 271bb9e6e10f
parent 351 48b0adfe3059
permissions -rw-r--r--
Add -lole32 to link libraries.

This fixes a problem when compiling with mingw-headers version 3.3
where the use of SHGetFolderPath() expands to a call to CoTaskMemFree()
which is defined in libole32.dll:

/usr/x86_64-w64-mingw32/sys-root/mingw/include/shobjidl.h:29954: undefined reference to `__imp_CoTaskMemFree'
     1 %define _source_payload w9.gzdio
     2 %define _binary_payload w9.gzdio
     3 
     4 Name:      zap
     5 Summary:   Test package
     6 Group:     Test
     7 License:   GPL
     8 Version:   1
     9 Release:   1
    10 Source:    zap.tar
    11 BuildArch: noarch
    12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    13 Prefix:    /usr
    14 
    15 %description
    16 Test package
    17 
    18 %prep
    19 
    20 %build
    21 
    22 %install
    23 mkdir -p $RPM_BUILD_ROOT/usr/bin
    24 touch $RPM_BUILD_ROOT/usr/bin/zap
    25 
    26 %clean
    27 
    28 %files
    29 /usr/bin/zap