]> git.pld-linux.org Git - packages/ClanLib.git/blobdiff - ClanLib.spec
- updated Magick patch to compile with ImageMagick 5.2.9
[packages/ClanLib.git] / ClanLib.spec
index fc1ebf591c9f08e48aef046b74959d3f3c417ded..37788383addc6b1fb9ed46bcc8fc2bf8d069e379 100644 (file)
 Summary:       ClanLib, the platform independent game SDK.
 Summary(pl):   ClanLib, niezale¿ny od platformy SDK do gier
 Name:          ClanLib
-Version:       0.1.14
-Release:       1
-Copyright:     LGPL
+Version:       0.4.3
+Release:       3
+License:       LGPL
 Group:         Libraries
+Group(fr):     Librairies
 Group(pl):     Biblioteki
-Source:                http://dark.x.dtu.dk/clansoft/clanlib/download/%{name}-%{version}.tgz
+Source0:       http://dark.x.dtu.dk/~mbn/clanlib/download/RPMS/%{name}-%{version}.tar.gz
+Patch0:                %{name}-OPT.patch
+Patch1:                %{name}-Magick.patch
 URL:           http://clanlib.org
-BuildPrereq:   libpng-devel
-BuildPrereq:   zlib-devel
-BuildPrereq:   Hermes-devel
-BuildPrereq:   libstdc++-devel
-BuildPrereq:   XFree86-devel
-BuildRoot:     /tmp/%{name}-%{version}-root
+Requires:      Hermes >= 1.3.1
+BuildRequires: libpng-devel >= 1.0.8
+BuildRequires: Hermes-devel >= 1.3.1
+BuildRequires: libstdc++-devel
+BuildRequires: XFree86-devel
+BuildRequires: svgalib-devel
+BuildRequires: OpenGL-devel
+BuildRequires: ImageMagick-devel >= 5.2.9
+BuildRequires: libmikmod-devel
+BuildRequires: perl
+BuildRequires: libggi-devel
+BuildRequires: libgii-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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 zorienrowany 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(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
+Requires:      %{name}-OpenGL = %{version}
+Requires:      %{name}-MikMod = %{version}
+Requires:      %{name}-Magick = %{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 CleanLib.
+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(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(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(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 X11
+Summary:       X11 target for ClanLib
+Summary(pl):   obs³uga X11 dla ClanLib
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description X11
+This is the X11 target for ClanLib.
+
+%description -l pl X11
+Obs³uga X11 dla ClanLib-a.
+
+%package Magick
+Summary:       ImageMagick module for ClanLib
+Summary(pl):   Modu³ ImageMagick dla ClanLib
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+
+%description Magick
+This is the ImageMagic add-on package for ClanLib. It provides support
+to most known graphics file-formats.
+
+%description -l pl Magick
+Pozwala na obs³ugê praktycznie dowolnych formatów plików graficznych
+przez aplikacje ClanLib poprzez biblioteki ImageMagic-a.
+
+%package MikMod
+Summary:       MikMod module for ClanLib
+Summary(pl):   Modu³ Mikmod dla ClanLib
+Group:         Development/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 static
 Summary:       ClanLib development package
 Summary(pl):   pakiet programistyczny dla ClanLib
 Group:         Development/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 -n ClanLib
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr
-make
+./autogen.sh
+CFLAGS="$RPM_OPT_FLAGS"
+CXXFLAGS="$RPM_OPT_FLAGS" # note: rtti is needed --- ClanLib uses exceptions!
+LDFLAGS="-s"
+export CFLAGS CXXFLAGS LDFLAGS
+%configure \
+       --enable-static \
+       --enable-shared \
+       --enable-x11 \
+       --enable-fbdev \
+       --enable-ggi \
+       --enable-opengl \
+       --enable-svgalib \
+       --disable-ptc \
+       --enable-vidmode \
+       --enable-clansound \
+       --enable-network \
+       --enable-dyn
+%{__make}
+%{__make} clanGL
+%{__make} clanMikMod
+%{__make} clanMagick
+%{__make} clanPNG
+%{__make} clanMPEG
+%{__make} clanGUI
+%{__make} docs
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make   LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
-       BIN_PREFIX="$RPM_BUILD_ROOT/usr/bin" \
-       INC_PREFIX="$RPM_BUILD_ROOT/usr/include" \
-       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}"
+
+%{__make} docs_install \
+       MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
+       HTML_PREFIX="`pwd`/html"
 
-strip $RPM_BUILD_ROOT%{_libdir}/lib*.so*
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so*
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/ClanLib/lib*.so*
 
-gzip -9nf README TODO CREDITS
+gzip -9nf README CREDITS FAQ $RPM_BUILD_ROOT%{_mandir}/man?/*
 
 %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   Magick -p /sbin/ldconfig
+%postun Magick -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}/libclanCore.so.*.*
+%attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
+%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
+%attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
+%dir %{_libdir}/ClanLib
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-fbdev.so*
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-input-tty.so*
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-network.so*
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-sound.so*
+
+%files X11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-x11.so*
+
+%files GGI
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-ggi.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 svgalib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-svgalib.so*
+
+%files Magick
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libclanMagick.so.*.*
+
+%files MikMod
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc *gz
-%attr(755,root,root) /usr/bin/datafile_compiler
-/usr/include/ClanLib
+%doc html
+%{_mandir}/man?/*
+%attr(755,root,root) %{_libdir}/*.so
+%attr(755,root,root) %{_bindir}/*
+%{_includedir}/ClanLib
 
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/lib*.a
-
-%changelog
-* Tue Apr 20 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [0.1.14-2]
-- added BuildPrereq (libpng-devel, libz-devel, Hermes-devel).
-- added -q %setup patameter,
-- added static subpackage.
-
-* Mon Apr 19 1999 Konrad Stepieñ <kornad@interdata.com.pl>
-  [0.1.14-1]
-- initial version
+#%files static
+#%defattr(644,root,root,755)
+#%{_libdir}/lib*.a
This page took 0.045545 seconds and 4 git commands to generate.