]>
Commit | Line | Data |
---|---|---|
13b6ab21 | 1 | Summary: OpenGL Easy Extension library |
0646da20 | 2 | Summary(pl.UTF-8): Biblioteka OpenGL Easy Extension |
13b6ab21 | 3 | Name: GLee |
4ff1554c PG |
4 | Version: 5.03 |
5 | %define _ver %(echo %{version} | tr . _) | |
6 | Release: 1 | |
13b6ab21 PG |
7 | License: BSD-like |
8 | Group: X11/Libraries | |
4ff1554c PG |
9 | Source0: http://elf-stone.com/downloads/GLee/%{name}%{_ver}.zip |
10 | # Source0-md5: 92a3f9282af73b8a9966ad5a0e2eaf8d | |
11 | Source1: http://elf-stone.com/downloads/GLee/%{name}-3.03-src.tar.gz | |
12 | # Source1-md5: 84664f6545ed890ea87244c1ea5b2259 | |
13b6ab21 PG |
13 | URL: http://elf-stone.com/downloads.php |
14 | BuildRequires: OpenGL-devel | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
393028b5 JB |
17 | BuildRequires: libstdc++-devel |
18 | BuildRequires: rpmbuild(macros) >= 1.167 | |
ddf5253a | 19 | BuildRequires: unzip |
13b6ab21 PG |
20 | Requires: OpenGL |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
358cd2ad JB |
24 | The OpenGL Easy Extension library (GLee) makes life easier for OpenGL |
25 | developers by automatically linking OpenGL extensions and core | |
26 | functions at initialisation time. This saves programmers the effort of | |
27 | manually linking every required extension, and effectively brings the | |
28 | OpenGL library up to date. | |
29 | ||
b02ee7e9 JR |
30 | %description -l pl.UTF-8 |
31 | Biblioteka OpenGL Easy Extension (GLee) ułatwia życie programistom | |
32 | używającym OpenGL poprzez automatyczne linkowanie rozszerzeń OpenGL i | |
33 | głównych funkcji w czasie inicjalizacji. Oszczędza to programistom | |
34 | trudów ręcznego linkowania każdego wymaganego rozszerzenia i | |
35 | efektywnie czyni bibliotekę OpenGL aktualną. | |
13b6ab21 | 36 | |
393028b5 JB |
37 | %package devel |
38 | Summary: Header file for GLee library | |
0646da20 | 39 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki GLee |
393028b5 JB |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: OpenGL-devel | |
43 | ||
44 | %description devel | |
45 | Header file for GLee library. | |
46 | ||
b02ee7e9 JR |
47 | %description devel -l pl.UTF-8 |
48 | Plik nagłówkowy biblioteki GLee. | |
393028b5 | 49 | |
13b6ab21 | 50 | %prep |
4ff1554c PG |
51 | %setup -q -a1 -c |
52 | cp glee/{configure,config.h.in,install-sh,Makefile.in} . | |
13b6ab21 PG |
53 | |
54 | %build | |
393028b5 | 55 | CXXFLAGS="%{rpmcxxflags} -fPIC" |
13b6ab21 PG |
56 | %configure |
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT{%{_includedir}/GL,%{_libdir}} | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT \ | |
65 | INCLUDEDIR=$RPM_BUILD_ROOT%{_includedir} \ | |
66 | LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ | |
67 | DATADIR=$RPM_BUILD_ROOT%{_datadir} \ | |
68 | LDCONFIG=/bin/true | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc extensionList.txt readme.txt | |
393028b5 JB |
79 | %attr(755,root,root) %{_libdir}/libGLee.so |
80 | ||
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %{_includedir}/GL/GLee.h |