Fix installation with prefix=/app

This commit is contained in:
Owen W. Taylor 2018-09-06 19:57:55 -04:00
parent a7d0fd2820
commit 7efa2c5645

View File

@ -1,6 +1,6 @@
Name: glew
Version: 2.1.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: The OpenGL Extension Wrangler Library
License: BSD and MIT
URL: http://glew.sourceforge.net
@ -43,10 +43,17 @@ libGLEW
cp /usr/lib/rpm/redhat/config.guess config/
%build
%make_build CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
%make_build CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC"\
STRIP= \
GLEW_PREFIX=%{_prefix} GLEW_DEST=%{_prefix} \
includedir=%{_includedir} \
BINDIR=%{_bindir} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
%install
make install.all DESTDIR="$RPM_BUILD_ROOT" LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
make install.all DESTDIR="$RPM_BUILD_ROOT" \
GLEW_PREFIX=%{_prefix} GLEW_DEST=%{_prefix} \
includedir=%{_includedir} \
BINDIR=%{_bindir} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
# sigh
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
@ -68,6 +75,9 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
%doc doc/*
%changelog
* Thu Sep 6 2018 Owen Taylor <otaylor@redhat.com> - 2.1.0-3
- Fix installation with prefix=/app
* Thu Aug 23 2018 Nicolas Chauvet <kwizart@gmail.com> - 2.1.0-2
- Fix mesa-libGLU-devel isnt't arched