]> git.pld-linux.org Git - packages/gai.git/blobdiff - gai.spec
- updated to 0.5.3
[packages/gai.git] / gai.spec
index a98e8d31bee4957d227d1a56fe9679bc8d0d3f36..3bfa44626ceb18265c516d8fe481d10d6e20c5ca 100644 (file)
--- a/gai.spec
+++ b/gai.spec
@@ -1,18 +1,33 @@
-Summary:       General Applet Interface Library
-Summary(pl):   Ogólna Biblioteka Interfejsu Apletu
+#
+# Conditional build:
+%bcond_without gl      # without OpenGL support
+%bcond_without gnome   # without GNOME support
+%bcond_without         rox     # without ROX support
+%bcond_without sdl     # without SDL support
+#
+Summary:       General Applet Interface library
+Summary(pl):   Ogólna biblioteka interfejsu apletu
 Name:          gai
-Version:       0.5.0
-%define _pre    pre6
-Release:       0.%{_pre}.1
-License:       GPL v2
-Group:         X11/Development/Libraries
-Source0:       http://cesnet.dl.sourceforge.net/sourceforge/gai/%{name}-%{version}%{_pre}.tar.bz2
-URL:           http://gai.sourceforge.net
-BuildRequires: gtk+2-devel
-Requires:      gtk+2
-Requires(post,postun): /sbin/ldconfig
+Version:       0.5.3
+Release:       1
+License:       LGPL
+Group:         X11/Libraries
+Source0:       http://dl.sourceforge.net/gai/%{name}-%{version}.tar.bz2
+# Source0-md5: 732016d4cf133a50d2226153db395b85
+Patch0:                %{name}-opt.patch
+URL:           http://gai.sourceforge.net/
+%{?with_sdl:BuildRequires:     SDL-devel >= 1.2}
+BuildRequires: autoconf >= 2.53
+%{?with_gl:BuildRequires:      gtkglext-devel >= 1.0}
+%{?with_gnome:BuildRequires:   gnome-panel-devel >= 2.4.0}
+BuildRequires: gtk+2-devel >= 2.0
+BuildRequires: pkgconfig
+%{?with_rox:BuildRequires:     rox >= 2.1}
+BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _noautoreqdep   libGL.so.1 libGLU.so.1
+
 %description
 This library is intended to simplify the development and use of
 dockapps. With this library the programmer can focus on what the
@@ -28,37 +43,55 @@ Summary:    Development files for the GAI
 Summary(pl):   Pliki rozwojowe dla GAI
 Group:         X11/Development/Libraries
 Requires:      %{name} = %{version}
+%{?with_gl:Requires:   gtkglext-devel >= 1.0}
+%{?with_gnome:Requires:        gnome-panel-devel >= 2.4.0}
+Requires:      gtk+2-devel >= 2.0
 
 %description devel
-Header files required for GAI
+Header files required for development using GAI.
 
 %description devel -l pl
-Pliki nag³ówkowe wymagane przez GAI
+Pliki nag³ówkowe wymagane do tworzenia programów z u¿yciem GAI.
 
 %prep
-%setup -q -n %{name}-%{version}%{_pre}
+%setup -q 
+%patch0 -p1
 
 %build
-%configure
-%{__make}
+%{__autoconf}
+%configure \
+       %{!?with_gl:--disable-gl} \
+       %{!?with_gnome:--disable-gnome} \
+       %{!?with_rox:--disable-rox} \
+       %{!?with_sdl:--disable-sdl}
+
+%{__make} \
+       OPT="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        PREFIX=$RPM_BUILD_ROOT%{_prefix}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -rf examples/[!C]* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README THANKS TODO examples
-%{_libdir}/libgai*
+%doc AUTHORS ChangeLog README README.gai THANKS TODO WINDOWMANAGERS 
+%attr(755,root,root) %{_libdir}/libgai.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/gai/gai.h
-%{_libdir}/pkgconfig/gai.pc
+%doc docs/*
+%attr(755,root,root) %{_libdir}/libgai.so
+%{_includedir}/gai
+%{_pkgconfigdir}/gai.pc
+%{_examplesdir}/%{name}-%{version}
This page took 0.117885 seconds and 4 git commands to generate.