This repository was archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglewmx-devel.spec
More file actions
50 lines (38 loc) · 1.41 KB
/
glewmx-devel.spec
File metadata and controls
50 lines (38 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Name: glewmx-devel
Version: 1.13.0
Release: 1%{?dist}
Summary: OpenGL Extension Wrangler MX
License: GPLv3+
URL: https://launchpad.net/ubuntu/+source/glewmx
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/g/glewmx/glewmx_%{version}.orig.tar.gz
Source1: http://archive.ubuntu.com/ubuntu/pool/universe/g/glewmx/glewmx_%{version}-5.debian.tar.xz
BuildRequires: make
BuildRequires: gcc
BuildRequires: mesa-libGLU
BuildRequires: libXmu-devel
BuildRequires: libXi-devel
Requires: libXi
Requires: mesa-libGLU
Requires: libXmu
%description
OpenGL Extension Wrangler MX. The MX version is discountinued but is maintained in Ubuntu.
%prep
%setup -q -n glew-%{version}
tar -x -I 'xz -d -T0 -k' -f '%{SOURCE1}'
for i in debian/patches/*.patch; do patch -p1 < $i; done
sed -i 's:$(GLEW_DEST)/include/GL:$(GLEW_DEST)/include/glewmx-%{version}/GL:' Makefile
%build
%make_build
%install
sed -i 's:includedir=${prefix}/include:includedir=${prefix}/include/glewmx-%{version}:' glewmx.pc
%make_build DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p" install.lib.mx install.mx install.pkgconfig.mx
rm -fv %{buildroot}%{_libdir}/*.a
pushd %{buildroot}/usr
find . ! -type d -exec ls {} + > %{_builddir}/glew-%{version}/files.txt
popd
sed -i s/^\.\\/// ./files.txt
sed -i 'sn^n%{_usr}/n' ./files.txt
%files -f files.txt
%license LICENSE.txt
%changelog
%autochangelog