]> git.pld-linux.org Git - packages/allegro-gl.git/blob - allegro-gl.spec
67259515ad69474065c3f86567a688821280a8c9
[packages/allegro-gl.git] / allegro-gl.spec
1 Summary:        The Allegro game programming library GL backend
2 Summary(pl.UTF-8):      Wsparcie GL dla biblioteki do programowania gier Allegro
3 Name:           allegro-gl
4 Version:        0.4.1
5 Release:        1
6 License:        Giftware
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/allegrogl/alleggl-%{version}.tar.bz2
9 # Source0-md5:  b08cd58b37e1d3185c13d997a179ddc0
10 Patch0:         %{name}-mouse.patch
11 Patch1:         %{name}-link.patch
12 URL:            http://allegrogl.sourceforge.net/
13 BuildRequires:  OpenGL-GLU-devel
14 BuildRequires:  allegro-devel >= 4.3.1
15 BuildRequires:  autoconf >= 2.53
16 BuildRequires:  automake
17 Requires:       allegro >= 4.3.1
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         specflags       -fomit-frame-pointer
21
22 %description
23 AllegroGL is a cross-platform GL backend for the Allegro library.
24
25 %description -l pl.UTF-8
26 AllegroGL jest przenośną biblioteką dodającą wsparcie GL
27 w aplikacjach używających biblioteki Allegro.
28
29 %package devel
30 Summary:        A game programming library - header files
31 Summary(pl.UTF-8):      Biblioteka do programowania gier - pliki nagłówkowe
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34 Requires:       allegro-devel >= 4.3.1
35
36 %description devel
37 AllegroGL is a cross-platform GL backend for the Allegro library.
38
39 This package contains header files neccessary for compiling
40 applications using AllegroGL library.
41
42 %description devel -l pl.UTF-8
43 AllegroGL jest przenośną biblioteką dodającą wsparcie GL
44 w aplikacjach używających biblioteki Allegro.
45
46 Ten pakiet zawiera pliki nagłówkowe niezbędne do kompilowania
47 aplikacji wykorzystujących bibliotekę AllegroGL.
48
49 %prep
50 %setup -q -n alleggl
51 %patch0 -p1
52 %patch1 -p1
53
54 %build
55 %{__aclocal}
56 %{__autoconf}
57 %configure \
58         --enable-static \
59 %ifnarch %{ix86}
60         --disable-asm \
61         --disable-mmx \
62         --disable-sse
63 %endif
64
65 %{__make} lib \
66         CFLAGS="%{rpmcflags} -Wall -ffast-math"
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}{,/allegrogl{,/GLext}}}
71
72 install include/*.h $RPM_BUILD_ROOT%{_includedir}
73 install include/allegrogl/*.h $RPM_BUILD_ROOT%{_includedir}/allegrogl
74 install include/allegrogl/GLext/*.h $RPM_BUILD_ROOT%{_includedir}/allegrogl/GLext
75 install lib/unix/libagl.so $RPM_BUILD_ROOT%{_libdir}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc readme.txt todo.txt bugs.txt
86 %attr(755,root,root) %{_libdir}/libagl.so
87
88 %files devel
89 %defattr(644,root,root,755)
90 %doc howto.txt
91 %{_includedir}/*
This page took 0.073869 seconds and 2 git commands to generate.