Sisyphus repository
Last update: 2017-12-17 14:07:50 +0300 | SRPMs: 18242 | 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

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

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

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

%build
gcc %optflags -shared -o %name.so %name.c

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

%files
%_bindir/%name
%_libdir/%name.so

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

 
© 2009–2017 Igor Zubkov