Update to 2.1.0

This commit is contained in:
Nicolas Chauvet 2018-08-15 14:07:01 +02:00
parent 045e950927
commit 41468420ba
4 changed files with 33 additions and 22 deletions

11
.gitignore vendored
View File

@ -1,10 +1 @@
glew-1.5.4.tgz glew-*.tgz
/glew-1.5.5.tgz
/glew-1.5.7.tgz
/glew-1.5.8.tgz
/glew-1.6.0.tgz
/glew-1.7.0.tgz
/glew-1.9.0.tgz
/glew-1.10.0.tgz
/glew-1.13.0.tgz
/glew-2.0.0.tgz

19
glew-2.1.0-install.patch Normal file
View File

@ -0,0 +1,19 @@
diff -up glew-2.1.0/Makefile.install glew-2.1.0/Makefile
--- glew-2.1.0/Makefile.install 2018-08-15 13:51:45.220637107 +0200
+++ glew-2.1.0/Makefile 2018-08-15 13:52:02.168740876 +0200
@@ -231,6 +231,7 @@ install.bin: glew.bin
install.include:
$(INSTALL) -d -m 0755 "$(DESTDIR)$(INCDIR)"
+ $(INSTALL) -m 0644 include/GL/eglew.h "$(DESTDIR)$(INCDIR)/"
$(INSTALL) -m 0644 include/GL/wglew.h "$(DESTDIR)$(INCDIR)/"
$(INSTALL) -m 0644 include/GL/glew.h "$(DESTDIR)$(INCDIR)/"
$(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/"
@@ -241,6 +242,7 @@ install.pkgconfig: glew.pc
$(INSTALL) -m 0644 glew.pc "$(DESTDIR)$(PKGDIR)/"
uninstall:
+ $(RM) "$(DESTDIR)$(INCDIR)/eglew.h"
$(RM) "$(DESTDIR)$(INCDIR)/wglew.h"
$(RM) "$(DESTDIR)$(INCDIR)/glew.h"
$(RM) "$(DESTDIR)$(INCDIR)/glxew.h"

View File

@ -1,12 +1,12 @@
Name: glew Name: glew
Version: 2.0.0 Version: 2.1.0
Release: 7%{?dist} Release: 1%{?dist}
Summary: The OpenGL Extension Wrangler Library Summary: The OpenGL Extension Wrangler Library
Group: System Environment/Libraries
License: BSD and MIT License: BSD and MIT
URL: http://glew.sourceforge.net URL: http://glew.sourceforge.net
Source0: https://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz Source0: https://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
Patch0: glew-2.1.0-install.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: libGLU-devel BuildRequires: libGLU-devel
@ -23,9 +23,8 @@ are in libGLEW.
%package devel %package devel
Summary: Development files for glew Summary: Development files for glew
Group: Development/Libraries Requires: libGLEW%{?_isa} = %{version}-%{release}
Requires: libGLEW = %{version}-%{release} Requires: libGLU-devel%{?_isa}
Requires: libGLU-devel
%description devel %description devel
Development files for glew Development files for glew
@ -33,19 +32,18 @@ Development files for glew
%package -n libGLEW %package -n libGLEW
Summary: libGLEW Summary: libGLEW
Group: System Environment/Libraries
%description -n libGLEW %description -n libGLEW
libGLEW libGLEW
%prep %prep
%setup -q %autosetup -p1
# update config.guess for new arch support # update config.guess for new arch support
cp /usr/lib/rpm/redhat/config.guess config/ cp /usr/lib/rpm/redhat/config.guess config/
%build %build
make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig %make_build CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= 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" LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
@ -56,11 +54,11 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
%ldconfig_scriptlets -n libGLEW %ldconfig_scriptlets -n libGLEW
%files %files
%doc LICENSE.txt %license LICENSE.txt
%{_bindir}/* %{_bindir}/*
%files -n libGLEW %files -n libGLEW
%doc LICENSE.txt %license LICENSE.txt
%{_libdir}/libGLEW.so.* %{_libdir}/libGLEW.so.*
%files devel %files devel
@ -70,6 +68,9 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
%doc doc/* %doc doc/*
%changelog %changelog
* Wed Aug 15 2018 Nicolas Chauvet <kwizart@gmail.com> - 2.1.0-1
- Update to 2.1.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (glew-2.0.0.tgz) = e9bcd5f19a4495ce6511dfd76e64b4e4d958603c513ee9063eb9fe24fc6e0413f168620661230f1baef558f2f907cef7fe7ab2bdf957a6f7bda5fe96e9319c6a SHA512 (glew-2.1.0.tgz) = 9a9b4d81482ccaac4b476c34ed537585ae754a82ebb51c3efa16d953c25cc3931be46ed2e49e79c730cd8afc6a1b78c97d52cd714044a339c3bc29734cd4d2ab