]>
Commit | Line | Data |
---|---|---|
33966b0c | 1 | # Conditional build: |
ba062b03 | 2 | %bcond_without allegro # without allegro support |
33966b0c | 3 | # |
4 | Summary: Guichan - small, efficient C++ GUI library designed for games | |
f82f71c3 | 5 | Summary(pl.UTF-8): Guichan - mała, wydajna biblioteka GUI w C++ przeznaczona do gier |
33966b0c | 6 | Name: guichan |
ee41cab1 | 7 | Version: 0.8.2 |
8 | Release: 1 | |
d1a4ca78 | 9 | License: BSD |
33966b0c | 10 | Group: Libraries |
f487ba95 | 11 | Source0: http://guichan.googlecode.com/files/%{name}-%{version}.tar.gz |
ee41cab1 | 12 | # Source0-md5: af535d7f387e774e3197cef8023ea105 |
445a2e60 JB |
13 | URL: http://guichan.sourceforge.net/ |
14 | BuildRequires: OpenGL-devel | |
33966b0c | 15 | BuildRequires: SDL-devel |
a466c76b | 16 | BuildRequires: SDL_image-devel |
d1a4ca78 | 17 | %{?with_allegro:BuildRequires: allegro-devel} |
07dcd88b | 18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
d1a4ca78 | 20 | BuildRequires: libstdc++-devel |
fa1926db | 21 | BuildRequires: libtool |
ee41cab1 | 22 | BuildRequires: pkgconfig |
33966b0c | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Guichan is a small, efficient C++ GUI library designed for games. It | |
27 | comes with a standard set of widgets and can use several different | |
28 | objects for displaying graphics and grabbing user input. | |
29 | ||
bc750407 JR |
30 | %description -l pl.UTF-8 |
31 | Guichan to mała, wydajna biblioteka GUI w C++ przeznaczona do gier. | |
32 | Zawiera standardowy zestaw widgetów, może używać kilku różnych | |
33 | obiektów do wyświetlania grafiki i pobierania wejścia od użytkownika. | |
445a2e60 | 34 | |
d1a4ca78 JB |
35 | %package devel |
36 | Summary: Header files for Guichan library | |
f82f71c3 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan |
d1a4ca78 JB |
38 | Group: Development/Libraries |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: libstdc++-devel | |
41 | ||
42 | %description devel | |
43 | Header files for Guichan library. | |
44 | ||
bc750407 JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe biblioteki Guichan. | |
d1a4ca78 JB |
47 | |
48 | %package static | |
49 | Summary: Static version of Guichan libraries | |
f82f71c3 | 50 | Summary(pl.UTF-8): Statyczne wersje bibliotek Guichan |
d1a4ca78 JB |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static version of Guichan libraries. | |
56 | ||
bc750407 | 57 | %description static -l pl.UTF-8 |
d1a4ca78 JB |
58 | Statyczne wersje bibliotek Guichan. |
59 | ||
33966b0c | 60 | %prep |
80b75f75 | 61 | %setup -q |
92f1fdac | 62 | |
33966b0c | 63 | %build |
fa1926db | 64 | %{__libtoolize} |
07dcd88b | 65 | %{__aclocal} |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
d1a4ca78 JB |
69 | %configure \ |
70 | %{!?with_allegro:--disable-allegro} | |
33966b0c | 71 | %{__make} \ |
72 | CFLAGS="%{rpmcflags}" | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
d1a4ca78 JB |
88 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
89 | %attr(755,root,root) %{_libdir}/libguichan*.so.*.*.* | |
4ef22bd5 | 90 | %attr(755,root,root) %ghost %{_libdir}/libguichan*.so.1 |
d1a4ca78 JB |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_libdir}/libguichan*.so | |
95 | %{_libdir}/libguichan*.la | |
96 | %{_includedir}/guichan* | |
ee41cab1 | 97 | %{_pkgconfigdir}/guichan*.pc |
d1a4ca78 JB |
98 | |
99 | %files static | |
100 | %defattr(644,root,root,755) | |
101 | %{_libdir}/libguichan*.a |