test/filesystem.spec
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Apr 22 13:09:42 2015 +0100 (2015-04-22)
changeset 465 271bb9e6e10f
parent 393 d16ac3fb05fa
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:      filesystem
     5 Summary:   Test package
     6 Group:     Test
     7 License:   GPL
     8 Version:   1
     9 Release:   1
    10 BuildArch: noarch
    11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    12 
    13 %description
    14 Test package
    15 
    16 %prep
    17 
    18 %build
    19 
    20 %install
    21 mkdir -p %{buildroot}
    22 mkdir -p %{buildroot}%{_sysconfdir}
    23 mkdir -p %{buildroot}/{%{_bindir},%{_prefix}/lib,%{_includedir}}
    24 mkdir -p %{buildroot}/media
    25 
    26 %clean
    27 rm -rf %{buildroot}
    28 
    29 %post -p <lua>
    30 function mkdir_missing(dir)
    31     if posix.stat(dir) == nil then
    32         posix.mkdir(dir)
    33     end
    34 end
    35 mkdir_missing("/media/cdrom")
    36 
    37 %files
    38 %defattr(0755,root,root)
    39 /etc
    40 %{_prefix}
    41 %dir /media