From 7efa2c56459d0e94324051aa89158abfcdcfc9b1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 6 Sep 2018 19:57:55 -0400 Subject: [PATCH] Fix installation with prefix=/app --- glew.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/glew.spec b/glew.spec index 59c5d8d..f0b38db 100644 --- a/glew.spec +++ b/glew.spec @@ -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 - 2.1.0-3 +- Fix installation with prefix=/app + * Thu Aug 23 2018 Nicolas Chauvet - 2.1.0-2 - Fix mesa-libGLU-devel isnt't arched