Sisyphus repository
Last update: 2018-10-20 23:10:32 +0400 | SRPMs: 18769 | Sign in or Sign up
en ru uk br
ALT Linux repositories
hide window
Sisyphus: 0.1-alt1
p8: 0.1-alt1

Group :: Development/Other
Source RPM: noXShmQuery

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR (0/0)   Repocop 

Raw spec file

Name: noXShmQuery
Version: 0.1
Release: alt1

Summary: Invoke executables with XShmQuery* functions disabled
License: GPLv2+
Group: Development/Other

The noXShmQuery utility helps invoking executables with
XShmQueryExtension and XShmQueryVersion functions disabled.

%setup -cT
cat > %name << &#39;EOF'
#!/bin/sh -efu

LD_PRELOAD="${LD_PRELOAD-}${LD_PRELOAD:+:}%_libdir/" exec "$@"
cat > %name.c << &#39;EOF'
int XShmQueryExtension(void) { return 0; }
int XShmQueryVersion(void) { return 0; }

gcc %optflags -shared -o %name.c

mkdir -p %buildroot{%_bindir,%_libdir}
install -pm755 %name %buildroot%_bindir/
install -pm644 %buildroot%_libdir/


* Fri Aug 05 2016 Dmitry V. Levin <ldv at> 0.1-alt1
- Initial revision.

© 2009–2018 Igor Zubkov