Fix installation with prefix=/app
This commit is contained in:
parent
a7d0fd2820
commit
7efa2c5645
16
glew.spec
16
glew.spec
@ -1,6 +1,6 @@
|
|||||||
Name: glew
|
Name: glew
|
||||||
Version: 2.1.0
|
Version: 2.1.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: The OpenGL Extension Wrangler Library
|
Summary: The OpenGL Extension Wrangler Library
|
||||||
License: BSD and MIT
|
License: BSD and MIT
|
||||||
URL: http://glew.sourceforge.net
|
URL: http://glew.sourceforge.net
|
||||||
@ -43,10 +43,17 @@ libGLEW
|
|||||||
cp /usr/lib/rpm/redhat/config.guess config/
|
cp /usr/lib/rpm/redhat/config.guess config/
|
||||||
|
|
||||||
%build
|
%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
|
%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
|
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
|
||||||
# sigh
|
# sigh
|
||||||
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
|
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
|
||||||
@ -68,6 +75,9 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
|
|||||||
%doc doc/*
|
%doc doc/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Aug 23 2018 Nicolas Chauvet <kwizart@gmail.com> - 2.1.0-2
|
||||||
- Fix mesa-libGLU-devel isnt't arched
|
- Fix mesa-libGLU-devel isnt't arched
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user