]> git.pld-linux.org Git - packages/ClanLib.git/blobdiff - ClanLib.spec
- release 2
[packages/ClanLib.git] / ClanLib.spec
index 4a2847a92a27ed3a563abcb60c730b604b422ecc..8f2953fcf72cd86356acdb1df5c873ab5d9e2311 100644 (file)
 Summary:       ClanLib, the platform independent game SDK.
 Summary(pl):   ClanLib, niezale¿ny od platformy SDK do gier
 Name:          ClanLib
-Version:       0.2.3
-Release:       1
-Copyright:     LGPL
+Version:       0.5.0
+Release:       2
+License:       LGPL
 Group:         Libraries
+Group(de):     Libraries
+Group(es):     Bibliotecas
+Group(fr):     Librairies
 Group(pl):     Biblioteki
-Source:                http://dark.x.dtu.dk/clansoft/clanlib/download/%{name}-%{version}.tar.gz
-URL:           http://clanlib.org
-Requires:      Hermes >= 1.2.6
-BuildRequires: libpng-devel
+Source0:       http://dark.x.dtu.dk/~mbn/clanlib/download/download-sphair/%{name}-%{version}-1.tar.gz
+Patch0:                %{name}-OPT.patch
+URL:           http://www.clanlib.org/
+Requires:      Hermes >= 1.3.1
+#OpenGL is disabled in ClanLib 0.5.0 so we disable this requirement
+#Requires:     OpenGL
+BuildRequires: libpng-devel >= 1.0.8
 BuildRequires: zlib-devel
-BuildRequires: Hermes-devel >= 1.2.6
+BuildRequires: Hermes-devel >= 1.3.1
 BuildRequires: libstdc++-devel
 BuildRequires: XFree86-devel
+#BuildRequires:        OpenGL-devel
+BuildRequires: libmikmod-devel
+BuildRequires: freetype-devel >= 2.0
+BuildRequires: libvorbis-devel
+BuildRequires: perl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define        _noautoreqdep   libGL.so.1 libGLU.so.1
+
 %description
-The ClanLib SDK is designed to provide an platform independent game SDK using
-a lot cleaner (and object oriented) interface than the traditional way it is
-done in DirectX, SDL and such. The goals is to avoid game developers
-constantly reinventing the wheel by providing smarter ways to eg. load
-surfaces.
+The ClanLib SDK is designed to provide an platform independent game
+SDK using a lot cleaner (and object oriented) interface than the
+traditional way it is done in DirectX, SDL and such. The goals is to
+avoid game developers constantly reinventing the wheel by providing
+smarter ways to eg. load surfaces.
 
 %description -l pl
-ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla gier.
-Stosuje prosty (i zorientowany obiektowo) interfejs, przejrzystszy ni¿
-DirectX, SDL i inne.
+ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
+gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
+przejrzystszy ni¿ DirectX, SDL i inne.
 
 %package devel
 Summary:       ClanLib development package
 Summary(pl):   pakiet programistyczny dla ClanLib
 Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
+#Requires:     %{name}-OpenGL = %{version}
+Requires:      %{name}-MikMod = %{version}
+Requires:      %{name}-TTF = %{version}
+Requires:      %{name}-Vorbis = %{version}
 
 %description devel
-This is the development add-on package that includes the header files needed
-to compile new ClanLib applications.
+This is the development add-on package that includes the header files
+needed to compile new ClanLib applications.
 
 %description -l pl devel
-Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe potrzebne
-do kompilacji programów korzystaj±cych z ClanLib.
+Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
+potrzebne do kompilacji programów korzystaj±cych z ClanLib.
+
+%package svgalib
+Summary:       svgalib target for ClanLib
+Summary(pl):   obs³uga svgalib dla ClanLib
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description svgalib
+This is the svgalib target for ClanLib.
+
+%description -l pl svgalib
+Obs³uga svgalib dla ClanLib-a.
+
+%package OpenGL
+Summary:       OpenGL target for ClanLib
+Summary(pl):   obs³uga OpenGL dla ClanLib
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description OpenGL
+This is the OpenGL target for ClanLib.
+
+%description -l pl OpenGL
+Obs³uga OpenGL dla ClanLib-a.
+
+%package GGI
+Summary:       GGI target for ClanLib
+Summary(pl):   obs³uga GGI dla ClanLib
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description GGI
+This is the GGI target for ClanLib.
+
+%description -l pl GGI
+Obs³uga OpenGL dla ClanLib-a.
+
+%package MikMod
+Summary:       MikMod module for ClanLib
+Summary(pl):   Modu³ Mikmod dla ClanLib
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description MikMod
+MikMod module for ClanLib.
+
+%description -l pl MikMod
+Modu³ Mikmod dla ClanLib-a.
+
+%package Vorbis
+Summary:       Vorbis module for ClanLib
+Summary(pl):   Modu³ Vorbis dla ClanLib
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description Vorbis
+Vorbis module for ClanLib.
+
+%description -l pl Vorbis
+Modu³ Vorbis dla ClanLib-a.
+
+%package TTF
+Summary:       TTF module for ClanLib
+Summary(pl):   Modu³ TTF dla ClanLib
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description TTF
+TTF module for ClanLib.
+
+%description -l pl TTF
+Modu³ TTF dla ClanLib-a.
 
 %package static
 Summary:       ClanLib development package
 Summary(pl):   pakiet programistyczny dla ClanLib
 Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
 
 %description static
-This is the development add-on package that includes the header files needed
-to compile new ClanLib applications.
+This is the development add-on package that includes the header files
+needed to compile new ClanLib applications.
 
 %description -l pl static
-Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe potrzebne
-do kompilacji programów korzystaj±cych z CleanLib.
+Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
+potrzebne do kompilacji programów korzystaj±cych z ClanLib.
 
 %prep
 %setup -q
+#%patch0 -p1
 
 %build
-./autogen.sh
-LDFLAGS="-s"; export LDFLAGS
+# note: rtti is needed --- ClanLib uses exceptions!
+aclocal
+autoconf
 %configure \
        --enable-static \
-       --enable-shared
-make
+       --enable-shared \
+       %{?debug:--enable-debug}%{!?debug:--disable-debug} \
+       --disable-debug \
+       --enable-x11 \
+       --enable-fbdev \
+       --enable-vidmode \
+       --enable-clansound \
+       --enable-network \
+%ifarch %{ix86}
+       --enable-asm386 \
+%endif
+       --enable-dyn \
+       --enable-gui \
+       --enable-vorbis \
+       --enable-mikmod \
+       --enable-png \
+       --enable-jpeg \
+       --enable-smalljpeg \
+       --enable-ttf
+
+# not functional right now     
+#      --enable-opengl \
+#      --enable-mpeg
+       
+
+%{__make}
+%{__make} docs
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make   install \
+%{__make} install \
        LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
+       TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
        BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
        INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so*
+%{__make} docs_install \
+       MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
+       HTML_PREFIX="`pwd`/html"
 
-gzip -9nf README TODO CREDITS
+gzip -9nf README CREDITS
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%post   OpenGL -p /sbin/ldconfig
+%postun OpenGL -p /sbin/ldconfig
+
+%post   MikMod -p /sbin/ldconfig
+%postun MikMod -p /sbin/ldconfig
+
+%post   TTF -p /sbin/ldconfig
+%postun TTF -p /sbin/ldconfig
+
+%post   Vorbis -p /sbin/ldconfig
+%postun Vorbis -p /sbin/ldconfig
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so*
+%attr(755,root,root) %{_libdir}/libclanApp.so.*.*
+%attr(755,root,root) %{_libdir}/libclanCore.so.*.*
+%attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
+%attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
+%attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
+%attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
+#%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
+%attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
+%attr(755,root,root) %{_libdir}/libclanSound.so.*.*
+
+#%files OpenGL
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{_libdir}/libclanGL.so.*.*
+#%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-glx.so*
+
+%files MikMod
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
+
+%files Vorbis
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
+
+%files TTF
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc *gz
-%attr(755,root,root) %{_bindir}/datafile_compiler
+%doc html
+%attr(755,root,root) %{_libdir}/*.so
+%attr(755,root,root) %{_bindir}/*
 %{_includedir}/ClanLib
 
-#%files static
-#%defattr(644,root,root,755)
+%files static
+%defattr(644,root,root,755)
 #%{_libdir}/lib*.a
This page took 0.086887 seconds and 4 git commands to generate.