]>
Commit | Line | Data |
---|---|---|
1 | # Conditional build: | |
2 | %bcond_without allegro # without allegro support | |
3 | # | |
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 | |
6 | Name: guichan | |
7 | Version: 0.8.2 | |
8 | Release: 1 | |
9 | License: BSD | |
10 | Group: Libraries | |
11 | Source0: http://guichan.googlecode.com/files/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: af535d7f387e774e3197cef8023ea105 | |
13 | URL: http://guichan.sourceforge.net/ | |
14 | BuildRequires: OpenGL-devel | |
15 | BuildRequires: SDL-devel | |
16 | BuildRequires: SDL_image-devel | |
17 | %{?with_allegro:BuildRequires: allegro-devel} | |
18 | BuildRequires: autoconf | |
19 | BuildRequires: automake | |
20 | BuildRequires: libstdc++-devel | |
21 | BuildRequires: libtool | |
22 | BuildRequires: pkgconfig | |
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 | ||
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. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for Guichan library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Guichan | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: libstdc++-devel | |
41 | ||
42 | %description devel | |
43 | Header files for Guichan library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki Guichan. | |
47 | ||
48 | %package static | |
49 | Summary: Static version of Guichan libraries | |
50 | Summary(pl.UTF-8): Statyczne wersje bibliotek Guichan | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static version of Guichan libraries. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczne wersje bibliotek Guichan. | |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | ||
63 | %build | |
64 | %{__libtoolize} | |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
69 | %configure \ | |
70 | %{!?with_allegro:--disable-allegro} | |
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) | |
88 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
89 | %attr(755,root,root) %{_libdir}/libguichan*.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libguichan*.so.1 | |
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* | |
97 | %{_pkgconfigdir}/guichan*.pc | |
98 | ||
99 | %files static | |
100 | %defattr(644,root,root,755) | |
101 | %{_libdir}/libguichan*.a |