]> git.pld-linux.org Git - packages/gai.git/blame - gai.spec
- unified bcond name: gl -> opengl
[packages/gai.git] / gai.spec
CommitLineData
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#
8Summary: General Applet Interface library
ab5f47b2 9Summary(pl.UTF-8): Ogólna biblioteka interfejsu apletu
470d5701 10Name: gai
178f025c 11Version: 0.5.8
12Release: 1
68a5fd9b
JB
13License: LGPL
14Group: X11/Libraries
9fb9211a 15Source0: http://dl.sourceforge.net/sourceforge/gai/%{name}-%{version}.tar.bz2
178f025c 16# Source0-md5: 29d90cb37fe5341009b27ffd09f871cb
68a5fd9b 17Patch0: %{name}-opt.patch
36c54b0d 18Patch1: %{name}-libdir.patch
5fa47b4f 19URL: http://gai.sourceforge.net/
56300d42 20%{?with_sdl:BuildRequires: SDL-devel >= 1.2}
5fa47b4f 21BuildRequires: autoconf >= 2.53
3daa5040 22%{?with_opengl:BuildRequires: gtkglext-devel >= 1.0}
68a5fd9b 23%{?with_gnome:BuildRequires: gnome-panel-devel >= 2.4.0}
325a3827 24BuildRequires: gtk+2-devel >= 1:2.0
68a5fd9b 25BuildRequires: pkgconfig
6fed5938 26%{?with_rox:BuildRequires: rox >= 2.1}
df6c0d66 27%{?with_rox:BuildRequires: which}
56300d42 28BuildRequires: zlib-devel
c41d05ea
AF
29%{?with_gnome:Provides: gai(gnome) = %{version}-%{release}}
30%{?with_rox:Provides: gai(rox) = %{version}-%{release}}
470d5701
JB
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
68a5fd9b
JB
33%define _noautoreqdep libGL.so.1 libGLU.so.1
34
470d5701
JB
35%description
36This library is intended to simplify the development and use of
37dockapps. With this library the programmer can focus on what the
38applet shall do, not on the interface.
39
7b9e30be
JR
40%description -l pl.UTF-8
41Zamiarem tej biblioteki jest uproszczenie tworzenia i używania
42apletów. Przy pomocy tej biblioteki programista może się skupić na tym
43co aplet powinien robić a nie na jego interfejsie.
470d5701
JB
44
45%package devel
46Summary: Development files for the GAI
ab5f47b2 47Summary(pl.UTF-8): Pliki rozwojowe dla GAI
470d5701 48Group: X11/Development/Libraries
c41d05ea
AF
49Requires: %{name} = %{version}-%{release}
50%if %{with gnome}
51Requires: gnome-panel-devel >= 2.4.0
52Requires: gai(gnome) = %{version}-%{release}
53Provides: gai-devel(gnome) = %{version}-%{release}
54%endif
3daa5040 55%{?with_opengl:Requires: gtkglext-devel >= 1.0}
c41d05ea
AF
56%if %{with rox}
57Requires: gai(rox) = %{version}-%{release}
58Provides: gai-devel(rox) = %{version}-%{release}
59%endif
68a5fd9b 60Requires: gtk+2-devel >= 2.0
470d5701
JB
61
62%description devel
68a5fd9b 63Header files required for development using GAI.
470d5701 64
7b9e30be
JR
65%description devel -l pl.UTF-8
66Pliki 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
85rm -rf $RPM_BUILD_ROOT
86
87%{__make} install \
36c54b0d 88 DESTDIR=$RPM_BUILD_ROOT \
89 PREFIX=%{_prefix} \
90 LIBDIR=%{_libdir}
68a5fd9b
JB
91
92install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93cp -rf examples/[!C]* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
94
470d5701
JB
95%clean
96rm -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}
This page took 0.081837 seconds and 4 git commands to generate.