]>
Commit | Line | Data |
---|---|---|
7d66c013 | 1 | Summary: Portable game library |
66848702 | 2 | Summary(pl.UTF-8): Przenośna biblioteka do programowania gier |
56ea7b0f | 3 | Name: plib |
253545c2 | 4 | Version: 1.8.4 |
78b87f40 | 5 | Release: 2 |
56ea7b0f | 6 | License: LGPL |
41fb55e3 | 7 | Group: X11/Libraries |
41fb55e3 | 8 | Source0: http://plib.sourceforge.net/dist/%{name}-%{version}.tar.gz |
253545c2 | 9 | # Source0-md5: 5e3f289a9d1c5de0b1cfdec76bf139e6 |
23c2b65f | 10 | Patch0: %{name}-shared.patch |
64920735 | 11 | Patch1: %{name}-js_fix.patch |
0f77bab2 | 12 | Patch2: %{name}-gcc4.patch |
78b87f40 | 13 | Patch3: %{name}-link.patch |
41fb55e3 | 14 | URL: http://plib.sourceforge.net/ |
56ea7b0f | 15 | BuildRequires: OpenGL-devel |
41fb55e3 | 16 | BuildRequires: autoconf |
28a798b1 | 17 | BuildRequires: automake |
41fb55e3 | 18 | BuildRequires: libstdc++-devel |
23c2b65f | 19 | BuildRequires: libtool |
0f77bab2 MB |
20 | BuildRequires: xorg-lib-libXi-devel |
21 | BuildRequires: xorg-lib-libXmu-devel | |
d08a8dd8 | 22 | Requires: OpenGL |
72f7d96b | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56ea7b0f | 24 | |
d08a8dd8 | 25 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
41fb55e3 | 26 | |
56ea7b0f | 27 | %description |
7d66c013 | 28 | Portable game library. |
56ea7b0f | 29 | |
66848702 JR |
30 | %description -l pl.UTF-8 |
31 | Przenośna biblioteka do programowania gier. | |
56ea7b0f | 32 | |
28a798b1 | 33 | %package devel |
34 | Summary: Header files for plib library | |
66848702 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki plib |
28a798b1 | 36 | Group: Development/Libraries |
ecbf60de | 37 | Requires: %{name} = %{version}-%{release} |
0f77bab2 MB |
38 | Requires: OpenGL-devel |
39 | Requires: libstdc++-devel | |
40 | Requires: xorg-lib-libXi-devel | |
41 | Requires: xorg-lib-libXmu-devel | |
28a798b1 | 42 | |
43 | %description devel | |
44 | Header files for plib library. | |
45 | ||
66848702 JR |
46 | %description devel -l pl.UTF-8 |
47 | Pliki nagłówkowe biblioteki plib. | |
28a798b1 | 48 | |
23c2b65f | 49 | %package static |
50 | Summary: Static plib libraries | |
66848702 | 51 | Summary(pl.UTF-8): Statyczne biblioteki plib |
23c2b65f | 52 | Group: Development/Libraries |
ecbf60de | 53 | Requires: %{name}-devel = %{version}-%{release} |
23c2b65f | 54 | |
55 | %description static | |
56 | Static plib libraries. | |
57 | ||
66848702 | 58 | %description static -l pl.UTF-8 |
23c2b65f | 59 | Statyczne biblioteki plib. |
60 | ||
56ea7b0f | 61 | %prep |
62 | %setup -q | |
23c2b65f | 63 | %patch0 -p1 |
64920735 | 64 | %patch1 -p1 |
0f77bab2 | 65 | %patch2 -p1 |
78b87f40 | 66 | %patch3 -p1 |
56ea7b0f | 67 | |
68 | %build | |
41fb55e3 | 69 | rm -f config.cache missing |
23c2b65f | 70 | %{__libtoolize} |
26c155b3 | 71 | %{__aclocal} |
25ebd972 | 72 | %{__autoconf} |
73 | %{__automake} | |
0f77bab2 | 74 | %configure |
d6b24d0f | 75 | %{__make} |
56ea7b0f | 76 | |
56ea7b0f | 77 | %install |
41fb55e3 | 78 | rm -rf $RPM_BUILD_ROOT |
56ea7b0f | 79 | |
28a798b1 | 80 | %{__make} install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
56ea7b0f | 82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
65c498fb | 86 | %post -p /sbin/ldconfig |
87 | %postun -p /sbin/ldconfig | |
dd9cab95 | 88 | |
56ea7b0f | 89 | %files |
90 | %defattr(644,root,root,755) | |
a5af6b60 | 91 | %doc AUTHORS README* NOTICE NEWS ChangeLog |
23c2b65f | 92 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
28a798b1 | 93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
23c2b65f | 96 | %attr(755,root,root) %{_libdir}/lib*.so |
97 | %{_libdir}/*.la | |
28a798b1 | 98 | %{_includedir}/%{name} |
23c2b65f | 99 | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
102 | %{_libdir}/*.a |