2 %bcond_without allegro # without allegro support
4 Summary: Guichan - small, efficient C++ GUI library designed for games
5 Summary(pl.UTF-8): Guichan - mała, wydajna biblioteka GUI w C++ przeznaczona do gier
11 Source0: http://guichan.googlecode.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5: af535d7f387e774e3197cef8023ea105
14 URL: http://guichan.sourceforge.net/
15 BuildRequires: OpenGL-devel
16 BuildRequires: SDL-devel
17 BuildRequires: SDL_image-devel
18 %{?with_allegro:BuildRequires: allegro-devel}
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool
23 BuildRequires: pkgconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 # use symbold from libguichan.so (fixing would cause link loop)
27 %define skip_post_check_so libguichan_.*.so.*
30 Guichan is a small, efficient C++ GUI library designed for games. It
31 comes with a standard set of widgets and can use several different
32 objects for displaying graphics and grabbing user input.
34 %description -l pl.UTF-8
35 Guichan to mała, wydajna biblioteka GUI w C++ przeznaczona do gier.
36 Zawiera standardowy zestaw widgetów, może używać kilku różnych
37 obiektów do wyświetlania grafiki i pobierania wejścia od użytkownika.
40 Summary: Header files for Guichan library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: libstdc++-devel
47 Header files for Guichan library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki Guichan.
53 Summary: Static version of Guichan libraries
54 Summary(pl.UTF-8): Statyczne wersje bibliotek Guichan
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static version of Guichan libraries.
61 %description static -l pl.UTF-8
62 Statyczne wersje bibliotek Guichan.
75 %{!?with_allegro:--disable-allegro}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc AUTHORS COPYING ChangeLog NEWS README TODO
94 %attr(755,root,root) %{_libdir}/libguichan*.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libguichan*.so.1
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libguichan*.so
100 %{_libdir}/libguichan*.la
101 %{_includedir}/guichan*
102 %{_pkgconfigdir}/guichan*.pc
105 %defattr(644,root,root,755)
106 %{_libdir}/libguichan*.a