1 | %define name plib |
---|
2 | %define version 1.8.4 |
---|
3 | %define release 1%{?_dist_release} |
---|
4 | |
---|
5 | Summary: Set of portable libraries especially useful for games |
---|
6 | Name: %{name} |
---|
7 | Version: %{version} |
---|
8 | Release: %{release} |
---|
9 | Source: http://plib.sourceforge.net/dist/%{name}-%{version}.tar.gz |
---|
10 | ### from OpenSuse |
---|
11 | Patch0: plib-1.8.4-type.diff |
---|
12 | Patch1: plib-1.8.4-joystick.diff |
---|
13 | Patch2: plib-1.8.4-shared.diff |
---|
14 | Patch3: plib-1.8.4-extraqual.diff |
---|
15 | ### |
---|
16 | License: LGPL |
---|
17 | Group: System Environment/Libraries |
---|
18 | URL: http://plib.sourceforge.net |
---|
19 | |
---|
20 | #Requires: |
---|
21 | #BuildRequires: XOrg-devel, XOrg-gl-devel |
---|
22 | BuildRequires: xorg-x11-devel, mesa-libGL-devel |
---|
23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
24 | |
---|
25 | %description |
---|
26 | This is a set of OpenSource (LGPL) libraries that will permit programmers |
---|
27 | to write games and other realtime interactive applications that are 100% |
---|
28 | portable across a wide range of hardware and operating systems. Here is |
---|
29 | what you need - it's all free and available with LGPL'ed source code on |
---|
30 | the web. All of it works well together. |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Development files for %{name} |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | #Requires: XOrg-gl-devel |
---|
37 | Requires: mesa-libGL-devel |
---|
38 | |
---|
39 | %description devel |
---|
40 | This package contains the header files and libraries needed to write |
---|
41 | or compile programs that use plib. |
---|
42 | |
---|
43 | |
---|
44 | %prep |
---|
45 | rm -rf ${RPM_BUILD_ROOT} |
---|
46 | |
---|
47 | %setup -q |
---|
48 | %patch0 |
---|
49 | %patch1 |
---|
50 | %patch2 |
---|
51 | %patch3 -p1 |
---|
52 | |
---|
53 | %build |
---|
54 | libtoolize --force |
---|
55 | aclocal --force |
---|
56 | automake -acf |
---|
57 | autoconf --force |
---|
58 | %configure CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DXF86VIDMODE" |
---|
59 | make %{?_smp_mflags} |
---|
60 | |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
65 | libtool --finish $RPM_BUILD_ROOT%{_libdir} |
---|
66 | |
---|
67 | ## remove unuse files |
---|
68 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
69 | |
---|
70 | %clean |
---|
71 | rm -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | %post -p /sbin/ldconfig |
---|
74 | |
---|
75 | %postun -p /sbin/ldconfig |
---|
76 | |
---|
77 | |
---|
78 | %files |
---|
79 | %defattr(-,root,root) |
---|
80 | %doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS |
---|
81 | %doc NEWS NOTICE README README.GLUT TODO-1.6 TODO-2.0 TODO_AFTER135 |
---|
82 | %{_libdir}/*.so.* |
---|
83 | |
---|
84 | %files devel |
---|
85 | %defattr(-,root,root) |
---|
86 | %{_includedir}/plib |
---|
87 | %{_libdir}/*.so |
---|
88 | #%{_libdir}/*.*a |
---|
89 | %{_libdir}/*.a |
---|
90 | |
---|
91 | |
---|
92 | %changelog |
---|
93 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.8.4-1vl5 |
---|
94 | - applied new versioning policy |
---|
95 | - removed *.la |
---|
96 | |
---|
97 | * Sat Feb 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.8.4-0vl2 |
---|
98 | - rebuild for VineSeed |
---|
99 | |
---|
100 | * Sun Aug 5 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.8.4-0vl1 |
---|
101 | - initial build for Vine Linux 4.1 |
---|
102 | |
---|
103 | # * Sat Oct 22 2005 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.8.4-0vl1 |
---|
104 | # - initial build for Vine Linux 3.2 |
---|
105 | |
---|
106 | * Wed May 23 2007 prusnak@suse.cz |
---|
107 | - move devel files to plib-devel subpackage |
---|
108 | |
---|
109 | * Wed Jan 25 2006 mls@suse.de |
---|
110 | - converted neededforbuild to BuildRequires |
---|
111 | |
---|
112 | * Thu Oct 20 2005 mmj@suse.de |
---|
113 | - remove extra qualification |
---|
114 | |
---|
115 | * Fri Feb 25 2005 ro@suse.de |
---|
116 | - fix filelist (packing complete /usr/lib is not possible) |
---|
117 | |
---|
118 | * Wed Feb 23 2005 mjancar@suse.cz |
---|
119 | - build shared libraries (needed by torcs) |
---|
120 | |
---|
121 | * Wed Feb 2 2005 mjancar@suse.cz |
---|
122 | - update to 1.8.4 (needed by FlightGear) |
---|
123 | |
---|
124 | * Fri Aug 13 2004 mjancar@suse.cz |
---|
125 | - update to 1.8.3 |
---|
126 | |
---|
127 | * Sat Jan 10 2004 adrian@suse.de |
---|
128 | - add %%defattr |
---|
129 | |
---|
130 | * Mon Oct 13 2003 ro@suse.de |
---|
131 | - remove explicit requires for mesa |
---|
132 | |
---|
133 | * Thu Jul 31 2003 mjancar@suse.cz |
---|
134 | - use %%run_ldconfig |
---|
135 | |
---|
136 | * Tue Dec 10 2002 prehak@suse.cz |
---|
137 | - fixed brace-enclosed initialization (due to gcc-3.3) |
---|
138 | |
---|
139 | * Thu Oct 24 2002 prehak@suse.cz |
---|
140 | - updated to version 1.6.0 |
---|
141 | |
---|
142 | * Wed Aug 21 2002 nadvornik@suse.cz |
---|
143 | - use RPM_OPT_FLAGS instead of -O6 |
---|
144 | |
---|
145 | * Thu Jan 10 2002 rvasice@suse.cz |
---|
146 | - use %%{_libdir} |
---|
147 | |
---|
148 | * Fri Nov 9 2001 rvasice@suse.cz |
---|
149 | - fix to compile with new automake |
---|
150 | |
---|
151 | * Thu Nov 8 2001 ro@suse.de |
---|
152 | - use mesa-devel-packages in neededforbuild |
---|
153 | |
---|
154 | * Thu Jul 26 2001 rvasice@suse.cz |
---|
155 | - update to version 1.4.2 |
---|
156 | |
---|
157 | * Fri Jul 13 2001 rvasice@suse.cz |
---|
158 | - update to version 1.4.1 |
---|
159 | |
---|
160 | * Mon Jun 4 2001 rvasice@suse.cz |
---|
161 | - spec file cleanup |
---|
162 | - bzip2 sources |
---|
163 | |
---|
164 | * Thu Mar 15 2001 ro@suse.de |
---|
165 | - changed neededforbuild <mesaglu> to <xf86glu> |
---|
166 | - changed neededforbuild <mesaglu-devel> to <xf86glu-devel> |
---|
167 | |
---|
168 | * Tue Mar 13 2001 ro@suse.de |
---|
169 | - added mesaglut |
---|
170 | |
---|
171 | * Fri Mar 9 2001 ro@suse.de |
---|
172 | - added mesaglu |
---|
173 | |
---|
174 | * Wed Mar 7 2001 ro@suse.de |
---|
175 | - changed neededforbuild <mesadev> to <mesa-devel> |
---|
176 | - added xf86 to neededforbuild |
---|
177 | |
---|
178 | * Fri Feb 9 2001 ro@suse.de |
---|
179 | - include float.h in sg.h |
---|
180 | |
---|
181 | * Mon Aug 7 2000 smid@suse.cz |
---|
182 | - upgrade to 1.2.0 |
---|
183 | |
---|
184 | * Mon May 22 2000 smid@suse.cz |
---|
185 | - mesadev added to neededforbuild |
---|
186 | |
---|
187 | * Thu May 4 2000 smid@suse.cz |
---|
188 | - upgrade to 1.1.11 |
---|
189 | |
---|
190 | * Fri Apr 21 2000 smid@suse.cz |
---|
191 | - buildroot added |
---|
192 | |
---|
193 | * Thu Feb 17 2000 grimmer@suse.de |
---|
194 | - added URL to spec file |
---|
195 | - use full URL to source package |
---|
196 | - use version macro |
---|
197 | |
---|
198 | * Tue Dec 28 1999 sndirsch@suse.de |
---|
199 | - updated to version 1.0.20 |
---|
200 | |
---|
201 | * Mon Sep 13 1999 bs@suse.de |
---|
202 | - ran old prepare_spec on spec file to switch to new prepare_spec. |
---|
203 | |
---|
204 | * Wed Aug 18 1999 sndirsch@suse.de |
---|
205 | - update to version 1.0.16 |
---|
206 | |
---|
207 | * Wed Jul 7 1999 grimmer@suse.de |
---|
208 | - initial package created (Version 1.0.12) |
---|