]>
Commit | Line | Data |
---|---|---|
68a5fd9b JB |
1 | # |
2 | # Conditional build: | |
68a5fd9b | 3 | %bcond_without gnome # without GNOME support |
3daa5040 | 4 | %bcond_without opengl # without OpenGL support |
1bf87cac | 5 | %bcond_without rox # without ROX support |
56300d42 | 6 | %bcond_without sdl # without SDL support |
68a5fd9b JB |
7 | # |
8 | Summary: General Applet Interface library | |
ab5f47b2 | 9 | Summary(pl.UTF-8): Ogólna biblioteka interfejsu apletu |
470d5701 | 10 | Name: gai |
178f025c | 11 | Version: 0.5.8 |
12 | Release: 1 | |
68a5fd9b JB |
13 | License: LGPL |
14 | Group: X11/Libraries | |
9fb9211a | 15 | Source0: http://dl.sourceforge.net/sourceforge/gai/%{name}-%{version}.tar.bz2 |
178f025c | 16 | # Source0-md5: 29d90cb37fe5341009b27ffd09f871cb |
68a5fd9b | 17 | Patch0: %{name}-opt.patch |
36c54b0d | 18 | Patch1: %{name}-libdir.patch |
5fa47b4f | 19 | URL: http://gai.sourceforge.net/ |
56300d42 | 20 | %{?with_sdl:BuildRequires: SDL-devel >= 1.2} |
5fa47b4f | 21 | BuildRequires: autoconf >= 2.53 |
3daa5040 | 22 | %{?with_opengl:BuildRequires: gtkglext-devel >= 1.0} |
68a5fd9b | 23 | %{?with_gnome:BuildRequires: gnome-panel-devel >= 2.4.0} |
325a3827 | 24 | BuildRequires: gtk+2-devel >= 1:2.0 |
68a5fd9b | 25 | BuildRequires: pkgconfig |
6fed5938 | 26 | %{?with_rox:BuildRequires: rox >= 2.1} |
df6c0d66 | 27 | %{?with_rox:BuildRequires: which} |
56300d42 | 28 | BuildRequires: zlib-devel |
c41d05ea AF |
29 | %{?with_gnome:Provides: gai(gnome) = %{version}-%{release}} |
30 | %{?with_rox:Provides: gai(rox) = %{version}-%{release}} | |
470d5701 JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
68a5fd9b JB |
33 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
34 | ||
470d5701 JB |
35 | %description |
36 | This library is intended to simplify the development and use of | |
37 | dockapps. With this library the programmer can focus on what the | |
38 | applet shall do, not on the interface. | |
39 | ||
7b9e30be JR |
40 | %description -l pl.UTF-8 |
41 | Zamiarem tej biblioteki jest uproszczenie tworzenia i używania | |
42 | apletów. Przy pomocy tej biblioteki programista może się skupić na tym | |
43 | co aplet powinien robić a nie na jego interfejsie. | |
470d5701 JB |
44 | |
45 | %package devel | |
46 | Summary: Development files for the GAI | |
ab5f47b2 | 47 | Summary(pl.UTF-8): Pliki rozwojowe dla GAI |
470d5701 | 48 | Group: X11/Development/Libraries |
c41d05ea AF |
49 | Requires: %{name} = %{version}-%{release} |
50 | %if %{with gnome} | |
51 | Requires: gnome-panel-devel >= 2.4.0 | |
52 | Requires: gai(gnome) = %{version}-%{release} | |
53 | Provides: gai-devel(gnome) = %{version}-%{release} | |
54 | %endif | |
3daa5040 | 55 | %{?with_opengl:Requires: gtkglext-devel >= 1.0} |
c41d05ea AF |
56 | %if %{with rox} |
57 | Requires: gai(rox) = %{version}-%{release} | |
58 | Provides: gai-devel(rox) = %{version}-%{release} | |
59 | %endif | |
68a5fd9b | 60 | Requires: gtk+2-devel >= 2.0 |
470d5701 JB |
61 | |
62 | %description devel | |
68a5fd9b | 63 | Header files required for development using GAI. |
470d5701 | 64 | |
7b9e30be JR |
65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe wymagane do tworzenia programów z użyciem GAI. | |
470d5701 JB |
67 | |
68 | %prep | |
56300d42 | 69 | %setup -q |
68a5fd9b | 70 | %patch0 -p1 |
36c54b0d | 71 | %patch1 -p1 |
470d5701 JB |
72 | |
73 | %build | |
5fa47b4f | 74 | %{__autoconf} |
68a5fd9b | 75 | %configure \ |
3daa5040 | 76 | %{!?with_opengl:--disable-gl} \ |
6fed5938 | 77 | %{!?with_gnome:--disable-gnome} \ |
78 | %{!?with_rox:--disable-rox} \ | |
56300d42 | 79 | %{!?with_sdl:--disable-sdl} |
68a5fd9b JB |
80 | |
81 | %{__make} \ | |
009bf3b4 | 82 | OPT="%{rpmcflags} -fPIC" |
470d5701 JB |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
36c54b0d | 88 | DESTDIR=$RPM_BUILD_ROOT \ |
89 | PREFIX=%{_prefix} \ | |
90 | LIBDIR=%{_libdir} | |
68a5fd9b JB |
91 | |
92 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
93 | cp -rf examples/[!C]* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
94 | ||
470d5701 JB |
95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
68a5fd9b JB |
98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
470d5701 JB |
100 | |
101 | %files | |
102 | %defattr(644,root,root,755) | |
6fed5938 | 103 | %doc AUTHORS ChangeLog README README.gai THANKS TODO WINDOWMANAGERS |
68a5fd9b | 104 | %attr(755,root,root) %{_libdir}/libgai.so.*.*.* |
470d5701 JB |
105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
6fed5938 | 108 | %doc docs/* |
68a5fd9b JB |
109 | %attr(755,root,root) %{_libdir}/libgai.so |
110 | %{_includedir}/gai | |
111 | %{_pkgconfigdir}/gai.pc | |
112 | %{_examplesdir}/%{name}-%{version} |