]> git.pld-linux.org Git - packages/guichan.git/blame - guichan.spec
- sources are now available on github
[packages/guichan.git] / guichan.spec
CommitLineData
6d11d2cd 1#
33966b0c 2# Conditional build:
44f909d7 3%bcond_without allegro # allegro support
33966b0c 4#
5Summary: Guichan - small, efficient C++ GUI library designed for games
f82f71c3 6Summary(pl.UTF-8): Guichan - mała, wydajna biblioteka GUI w C++ przeznaczona do gier
33966b0c 7Name: guichan
ee41cab1 8Version: 0.8.2
44f909d7 9Release: 4
d1a4ca78 10License: BSD
33966b0c 11Group: Libraries
a73f8a97 12# NOTE: now sources available at https://github.com/wheybags/guichan
f487ba95 13Source0: http://guichan.googlecode.com/files/%{name}-%{version}.tar.gz
ee41cab1 14# Source0-md5: af535d7f387e774e3197cef8023ea105
48db44ba 15Patch0: link.patch
445a2e60
JB
16URL: http://guichan.sourceforge.net/
17BuildRequires: OpenGL-devel
33966b0c 18BuildRequires: SDL-devel
a466c76b 19BuildRequires: SDL_image-devel
d1a4ca78 20%{?with_allegro:BuildRequires: allegro-devel}
6d11d2cd
JB
21BuildRequires: autoconf >= 2.57
22BuildRequires: automake >= 1.4
d1a4ca78 23BuildRequires: libstdc++-devel
6d11d2cd 24BuildRequires: libtool >= 2:1.5
ee41cab1 25BuildRequires: pkgconfig
33966b0c 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Guichan is a small, efficient C++ GUI library designed for games. It
30comes with a standard set of widgets and can use several different
31objects for displaying graphics and grabbing user input.
32
bc750407
JR
33%description -l pl.UTF-8
34Guichan to mała, wydajna biblioteka GUI w C++ przeznaczona do gier.
35Zawiera standardowy zestaw widgetów, może używać kilku różnych
36obiektów do wyświetlania grafiki i pobierania wejścia od użytkownika.
445a2e60 37
d1a4ca78
JB
38%package devel
39Summary: Header files for Guichan library
f82f71c3 40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan
d1a4ca78
JB
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
43Requires: libstdc++-devel
44
45%description devel
46Header files for Guichan library.
47
bc750407
JR
48%description devel -l pl.UTF-8
49Pliki nagłówkowe biblioteki Guichan.
d1a4ca78
JB
50
51%package static
44f909d7
JB
52Summary: Static version of Guichan library
53Summary(pl.UTF-8): Statyczna wersja biblioteki Guichan
d1a4ca78
JB
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
56
57%description static
44f909d7 58Static version of Guichan library.
d1a4ca78 59
bc750407 60%description static -l pl.UTF-8
44f909d7
JB
61Statyczna wersja biblioteki Guichan.
62
63%package allegro
64Summary: Guichan Allegro interface library
65Summary(pl.UTF-8): Biblioteka interfejsu Guichan do Allegro
66Group: Libraries
67Requires: %{name} = %{version}-%{release}
68
69%description allegro
70Guichan Allegro interface library.
71
72%description allegro -l pl.UTF-8
73Biblioteka interfejsu Guichan do Allegro.
74
75%package allegro-devel
76Summary: Header files for Guichan Allegro library
77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan Allegro
78Group: Development/Libraries
79Requires: %{name}-allegro = %{version}-%{release}
80Requires: %{name}-devel = %{version}-%{release}
81Requires: allegro-devel
82
83%description allegro-devel
84Header files for Guichan Allegro library.
85
86%description allegro-devel -l pl.UTF-8
87Pliki nagłówkowe biblioteki Guichan Allegro.
88
89%package allegro-static
90Summary: Static Guichan Allegro library
91Summary(pl.UTF-8): Statyczna biblioteka Guichan Allegro
92Group: Development/Libraries
93Requires: %{name}-allegro-devel = %{version}-%{release}
94
95%description allegro-static
96Static Guichan Allegro library.
97
98%description allegro-static -l pl.UTF-8
99Statyczna biblioteka Guichan Allegro.
100
101%package opengl
102Summary: Guichan OpenGL interface library
103Summary(pl.UTF-8): Biblioteka interfejsu Guichan do OpenGL
104Group: Libraries
105Requires: %{name} = %{version}-%{release}
106
107%description opengl
108Guichan OpenGL interface library.
109
110%description opengl -l pl.UTF-8
111Biblioteka interfejsu Guichan do OpenGL.
112
113%package opengl-devel
114Summary: Header files for Guichan OpenGL library
115Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan OpenGL
116Group: Development/Libraries
117Requires: %{name}-opengl = %{version}-%{release}
118Requires: %{name}-devel = %{version}-%{release}
119Requires: OpenGL-devel
120# can also use allegro-devel+allegro-addons-devel or -sdl for image loading
121
122%description opengl-devel
123Header files for Guichan OpenGL library.
124
125%description opengl-devel -l pl.UTF-8
126Pliki nagłówkowe biblioteki Guichan OpenGL.
127
128%package opengl-static
129Summary: Static Guichan OpenGL library
130Summary(pl.UTF-8): Statyczna biblioteka Guichan OpenGL
131Group: Development/Libraries
132Requires: %{name}-opengl-devel = %{version}-%{release}
133
134%description opengl-static
135Static Guichan OpenGL library.
136
137%description opengl-static -l pl.UTF-8
138Statyczna biblioteka Guichan OpenGL.
139
140%package sdl
141Summary: Guichan SDL interface library
142Summary(pl.UTF-8): Biblioteka interfejsu Guichan do SDL
143Group: Libraries
144Requires: %{name} = %{version}-%{release}
145
146%description sdl
147Guichan SDL interface library.
148
149%description sdl -l pl.UTF-8
150Biblioteka interfejsu Guichan do SDL.
151
152%package sdl-devel
153Summary: Header files for Guichan SDL library
154Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan SDL
155Group: Development/Libraries
156Requires: %{name}-sdl = %{version}-%{release}
157Requires: %{name}-devel = %{version}-%{release}
158Requires: SDL-devel
159
160%description sdl-devel
161Header files for Guichan SDL library.
162
163%description sdl-devel -l pl.UTF-8
164Pliki nagłówkowe biblioteki Guichan SDL.
165
166%package sdl-static
167Summary: Static Guichan SDL library
168Summary(pl.UTF-8): Statyczna biblioteka Guichan SDL
169Group: Development/Libraries
170Requires: %{name}-sdl-devel = %{version}-%{release}
171
172%description sdl-static
173Static Guichan SDL library.
174
175%description sdl-static -l pl.UTF-8
176Statyczna biblioteka Guichan SDL.
d1a4ca78 177
33966b0c 178%prep
80b75f75 179%setup -q
48db44ba 180%patch0 -p1
92f1fdac 181
33966b0c 182%build
fa1926db 183%{__libtoolize}
07dcd88b 184%{__aclocal}
185%{__autoconf}
186%{__autoheader}
187%{__automake}
d1a4ca78
JB
188%configure \
189 %{!?with_allegro:--disable-allegro}
48db44ba
JR
190
191%{__make}
33966b0c 192
193%install
194rm -rf $RPM_BUILD_ROOT
195
196%{__make} install \
197 DESTDIR=$RPM_BUILD_ROOT
198
199%clean
200rm -rf $RPM_BUILD_ROOT
201
44f909d7
JB
202%post -p /sbin/ldconfig
203%postun -p /sbin/ldconfig
204
205%post allegro -p /sbin/ldconfig
206%postun allegro -p /sbin/ldconfig
207
208%post opengl -p /sbin/ldconfig
209%postun opengl -p /sbin/ldconfig
210
211%post sdl -p /sbin/ldconfig
212%postun sdl -p /sbin/ldconfig
33966b0c 213
214%files
215%defattr(644,root,root,755)
d1a4ca78 216%doc AUTHORS COPYING ChangeLog NEWS README TODO
44f909d7
JB
217%attr(755,root,root) %{_libdir}/libguichan-0.8.1.so.*.*.*
218%attr(755,root,root) %ghost %{_libdir}/libguichan-0.8.1.so.1
d1a4ca78
JB
219
220%files devel
221%defattr(644,root,root,755)
44f909d7
JB
222%attr(755,root,root) %{_libdir}/libguichan.so
223%{_libdir}/libguichan.la
224%{_includedir}/guichan.hpp
225%dir %{_includedir}/guichan
226%{_includedir}/guichan/*.hpp
227%exclude %{_includedir}/guichan/allegro.hpp
228%exclude %{_includedir}/guichan/opengl.hpp
229%exclude %{_includedir}/guichan/sdl.hpp
230%{_includedir}/guichan/widgets
231%{_pkgconfigdir}/guichan-0.8.pc
d1a4ca78
JB
232
233%files static
234%defattr(644,root,root,755)
44f909d7
JB
235%{_libdir}/libguichan.a
236
237%if %{with allegro}
238%files allegro
239%defattr(644,root,root,755)
240%attr(755,root,root) %{_libdir}/libguichan_allegro-0.8.1.so.*.*.*
241%attr(755,root,root) %ghost %{_libdir}/libguichan_allegro-0.8.1.so.1
242
243%files allegro-devel
244%defattr(644,root,root,755)
245%attr(755,root,root) %{_libdir}/libguichan_allegro.so
246%{_libdir}/libguichan_allegro.la
247%{_includedir}/guichan/allegro.hpp
248%{_includedir}/guichan/allegro
249
250%files allegro-static
251%defattr(644,root,root,755)
252%{_libdir}/libguichan_allegro.a
253%endif
254
255%files opengl
256%defattr(644,root,root,755)
257%attr(755,root,root) %{_libdir}/libguichan_opengl-0.8.1.so.*.*.*
258%attr(755,root,root) %ghost %{_libdir}/libguichan_opengl-0.8.1.so.1
259
260%files opengl-devel
261%defattr(644,root,root,755)
262%attr(755,root,root) %{_libdir}/libguichan_opengl.so
263%{_libdir}/libguichan_opengl.la
264%{_includedir}/guichan/opengl.hpp
265%{_includedir}/guichan/opengl
266%{_pkgconfigdir}/guichan_opengl-0.8.pc
267
268%files opengl-static
269%defattr(644,root,root,755)
270%{_libdir}/libguichan_opengl.a
271
272%files sdl
273%defattr(644,root,root,755)
274%attr(755,root,root) %{_libdir}/libguichan_sdl-0.8.1.so.*.*.*
275%attr(755,root,root) %ghost %{_libdir}/libguichan_sdl-0.8.1.so.1
276
277%files sdl-devel
278%defattr(644,root,root,755)
279%attr(755,root,root) %{_libdir}/libguichan_sdl.so
280%{_libdir}/libguichan_sdl.la
281%{_includedir}/guichan/sdl.hpp
282%{_includedir}/guichan/sdl
283%{_pkgconfigdir}/guichan_sdl-0.8.pc
284
285%files sdl-static
286%defattr(644,root,root,755)
287%{_libdir}/libguichan_sdl.a
This page took 0.122024 seconds and 4 git commands to generate.