Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 75410356b0b54ea14bc6ab36a6ebe965 > files > 6

glew-2.2.0-5.mga9.src.rpm

%define	major 2.2
%define	libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

%bcond_with egl

Summary:        The OpenGL Extension Wrangler Library
Name:           glew
Version:        2.2.0
Release:        %mkrel 5
Group:          Development/C
License:        BSD and MIT
URL:            http://glew.sourceforge.net
Source0:        https://downloads.sourceforge.net/glew/%{name}-%{version}.tgz
Patch0:         glew-2.0.0-pic.patch
Patch1:         glew-2.0.0-pkgconfig.patch
Patch2:         glew-2.1.0-install.patch
Patch10:         glew-2.2.0-gcc12-cplusplus.patch

BuildRequires:  file
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xmu)

%description
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.

%package -n %{libname}
Summary:        GLEW library
Group:          System/Libraries

%description -n %{libname}
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.

%package -n %{develname}
Summary:        Development files for using the %{name} library
Group:          Development/C
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}
Provides:       lib%{name}-devel = %{version}-%{release}

%description -n %{develname}
Development files for using the %{name} library.

%prep
%autosetup -p1

%build
%make_build \
    POPT="%{optflags}" \
    LDFLAGS.EXTRA="%{ldflags}" \
    LIBDIR=%{_libdir} \
%if %{with egl}
    LDFLAGS.GL="-lEGL -lGL" \
    CFLAGS.EXTRA+="-DGLEW_EGL" \
%endif
    STRIP=""

%install
make install.all DESTDIR=%{buildroot} GLEW_DEST=%{_prefix} GLEW_PREFIX=%{_prefix} LIBDIR=%{_libdir}

rm -f %{buildroot}%{_libdir}/*.a
chmod 0755 %{buildroot}%{_libdir}/*.so*

%files
%license LICENSE.txt
%{_bindir}/glewinfo
%{_bindir}/visualinfo

%files -n %{libname}
%{_libdir}/libGLEW.so.%{major}
%{_libdir}/libGLEW.so.%{major}.*

%files -n %{develname}
%doc README.md doc/*
%license LICENSE.txt
%{_includedir}/GL/*.h
%{_libdir}/libGLEW.so
%{_libdir}/pkgconfig/%{name}.pc


%changelog
* Mon Sep 12 2022 wally <wally> 2.2.0-5.mga9
+ Revision: 1887398
- drop unneeded BR mx

* Mon Apr 04 2022 umeabot <umeabot> 2.2.0-4.mga9
+ Revision: 1843008
- Mageia 9 Mass Rebuild

* Mon Feb 28 2022 tv <tv> 2.2.0-3.mga9
+ Revision: 1786670
- Fix 2.2.0 breaking c++ code build with -std=c++03
+ wally <wally>
- drop old obsoeltes and provides

* Tue Jan 12 2021 daviddavid <daviddavid> 2.2.0-2.mga8
+ Revision: 1671289
- install also eglew.h header

* Wed Nov 18 2020 luigiwalser <luigiwalser> 2.2.0-1.mga8
+ Revision: 1647357
- 2.2.0
- libmajor is now 2.2
- remove upstreamed patch

* Fri Feb 14 2020 umeabot <umeabot> 2.1.0-5.mga8
+ Revision: 1522597
- Mageia 8 Mass Rebuild

* Mon Jan 28 2019 daviddavid <daviddavid> 2.1.0-4.mga7
+ Revision: 1361644
- add patch to fix for glext.h collision due to moved header also patch include/GL/glew.h
  to account for glext.h moving to /usr/include/GL

* Sun Sep 23 2018 umeabot <umeabot> 2.1.0-3.mga7
+ Revision: 1297908
- Mageia 7 Mass Rebuild

* Sun Jun 03 2018 wally <wally> 2.1.0-2.mga7
+ Revision: 1234059
- fix build on aarch64

* Wed Nov 22 2017 akien <akien> 2.1.0-1.mga7
+ Revision: 1178818
- Version 2.1.0

* Sun Oct 08 2017 daviddavid <daviddavid> 2.0.0-3.mga7
+ Revision: 1170133
- rebuild for gcc7

* Mon Sep 11 2017 cjw <cjw> 2.0.0-2.mga7
+ Revision: 1152677
- fix debug packages

* Mon Jul 17 2017 akien <akien> 2.0.0-1.mga7
+ Revision: 1124227
- Version 2.0.0

* Sun Feb 14 2016 umeabot <umeabot> 1.13.0-2.mga6
+ Revision: 960297
- Mageia 6 Mass Rebuild

* Sat Aug 22 2015 cjw <cjw> 1.13.0-1.mga6
+ Revision: 868120
- patch0: fix shared library build without -fPIC in CFLAGS.EXTRA
- make sure libglewmx is built and put it in a separate subpackage
+ akien <akien>
- Version 1.13.0
- Rebuild for gcc 5.2.1

* Mon Jun 22 2015 akien <akien> 1.12.0-1.mga6
+ Revision: 839855
- Version 1.12.0

* Wed Oct 15 2014 umeabot <umeabot> 1.11.0-3.mga5
+ Revision: 740415
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.11.0-2.mga5
+ Revision: 679639
- Mageia 5 Mass Rebuild

* Sun Aug 31 2014 luigiwalser <luigiwalser> 1.11.0-1.mga5
+ Revision: 670112
- 1.11.0
- library major is now 1.11

* Sat Oct 19 2013 umeabot <umeabot> 1.10.0-2.mga4
+ Revision: 530441
- Mageia 4 Mass Rebuild

* Wed Jul 24 2013 sander85 <sander85> 1.10.0-1.mga4
+ Revision: 457672
- New version: 1.10.0

* Sat Jan 12 2013 umeabot <umeabot> 1.9.0-2.mga3
+ Revision: 351803
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Aug 16 2012 fedya <fedya> 1.9.0-1.mga3
+ Revision: 281587
- fix rpmlint warning
- version update 1.9.0

* Tue Jul 24 2012 blino <blino> 1.8.0-1.mga3
+ Revision: 274067
- 1.8.0

* Wed Jun 27 2012 kamil <kamil> 1.7.0-2.mga3
+ Revision: 264185
- update license
- build and install glewmx files

* Mon Oct 03 2011 fwang <fwang> 1.7.0-1.mga2
+ Revision: 151149
- update major
- new version 1.7.0
+ tv <tv>
- fix file list
- fix file list
- new release

* Mon May 16 2011 rtp <rtp> 1.5.8-2.mga1
+ Revision: 99223
- Add missing build requires

* Wed Apr 13 2011 tv <tv> 1.5.8-1.mga1
+ Revision: 84623
- new release

* Mon Jan 10 2011 pterjan <pterjan> 1.5.7-1.mga1
+ Revision: 5353
- Drop obsolete scriptlets
- imported package glew


* Sat Dec 25 2010 Funda Wang <fwang@mandriva.org> 1.5.7-1mdv2011.0
+ Revision: 624811
- new version 1.5.7

* Wed Dec 22 2010 Funda Wang <fwang@mandriva.org> 1.5.5-2mdv2011.0
+ Revision: 623749
- tighten BR

  + Matthew Dawkins <mattydaw@mandriva.org>
    - properly commented out the patch macro for rpm5 compat

* Sun Jul 25 2010 John Balcaen <mikala@mandriva.org> 1.5.5-1mdv2011.0
+ Revision: 558537
- Update to 1.5.5

* Sun Jan 17 2010 Emmanuel Andry <eandry@mandriva.org> 1.5.2-1mdv2010.1
+ Revision: 492754
- New version 1.5.2
- drop p0, fixed upstream

* Thu Dec 31 2009 Ahmad Samir <ahmadsamir@mandriva.org> 1.5.1-3mdv2010.1
+ Revision: 484592
- fix files/doc permissions

* Thu May 21 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.5.1-2mdv2010.0
+ Revision: 378528
- rebuild

* Fri Nov 14 2008 Oden Eriksson <oeriksson@mandriva.com> 1.5.1-1mdv2009.1
+ Revision: 303173
- 1.5.1
- rediffed P0

* Wed Aug 06 2008 Thierry Vignaud <tv@mandriva.org> 1.5.0-2mdv2009.0
+ Revision: 264551
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue Apr 22 2008 Paulo Andrade <pcpa@mandriva.com.br> 1.5.0-1mdv2009.0
+ Revision: 196683
- Remove 1.4.0 source files.
 Correct bug #35848 (Can not compile enblend due to error in mesa).

* Fri Feb 01 2008 Austin Acton <austin@mandriva.org> 1.5.0-1mdv2008.1
+ Revision: 161240
- new release

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Nov 06 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.4.0-1mdv2008.1
+ Revision: 106436
- provide patch 0, a various makefile fixes
- spec file clean
- new version
- new devel library policy
- Import glew

  + Guillaume Rousse <guillomovitch@mandriva.org>
    - rebuild



* Tue Sep 12 2006 Giuseppe Ghibò <ghibo@mandriva.com> 1.3.4-3mdv2007.0
- added -fPIC to CFLAGS.extra.
- disabled parallel building.

* Fri Jul 21 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.3.4-2mdv2007.0
- rebuild
- do parallell build

* Thu May 11 2006 Olivier Thauvin <nanardon@mandriva.org> 1.3.4-1mdk
- 1.3.4

* Thu Aug 25 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.3.3-4mdk
- fix buildrequires (fixes #17848)
- fix library-not-linked-against-libc

* Wed Aug 24 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.3.3-3mdk
- don't own %%{_includedir]/GL

* Tue Aug 23 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.3.3-2mdk
- fix requires

* Tue Aug 23 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.3.3-1mdk
- initial release based on newrpms fedora package

* Wed Sep 08 2004 Che
- initial rpm release