- make ocamlfind happy
[packages/ocaml-SDL.git] / ocaml-SDL.spec
1 Summary:        SDL binding for OCaml
2 Summary(pl):    Wi±zania SDL dla OCamla
3 Name:           ocaml-SDL
4 Version:        0.7.2
5 Release:        0.1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz
9 # Source0-md5:  0707a9cf80bd9cfe18ad660dc077bad6
10 URL:            http://ocamlsdl.sourceforge.net/
11 BuildRequires:  SDL-devel
12 BuildRequires:  SDL_image-devel
13 BuildRequires:  SDL_mixer-devel
14 BuildRequires:  SDL_ttf-devel
15 BuildRequires:  ocaml >= 3.07
16 BuildRequires:  ocaml-lablgl-devel
17 %requires_eq    ocaml-runtime
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Simply speaking, OCamlSDL is an attempt to write a software interface
22 between the ML programming language and the SDL C library.
23
24 This package contains files needed to run bytecode executables using
25 this library.
26
27 %description -l pl
28 OCamlSDL to próba napisania interfejsu programowego miêdzy jêzykiem
29 programowania ML a bibliotek± C SDL.
30
31 Ten pakiet zawiera pliki potrzebne do uruchamiania wykonywalnego
32 bytecodu u¿ywaj±cego tej biblioteki.
33
34 %package devel
35 Summary:        SDL binding for OCaml - development part
36 Summary(pl):    Wi±zania SDL dla OCamla - cze¶æ programistyczna
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 %requires_eq    ocaml
40
41 %description devel
42 Simply speaking, OCamlSDL is an attempt to write a software interface
43 between the ML programming language and the SDL C library.
44
45 This package contains files needed to develop OCaml programs using
46 this library.
47
48 %description devel -l pl
49 OCamlSDL to próba napisania interfejsu programowego miêdzy jêzykiem
50 programowania ML a bibliotek± C SDL.
51
52 Ten pakiet zawiera pliki potrzebne do tworzenia programów w OCamlu
53 u¿ywaj±cych tej biblioteki.
54
55 %prep
56 %setup -q -n ocamlsdl-%{version}
57
58 %build
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml
65
66 %{__make} install \
67         OCAMLLIBDIR=%{_libdir}/ocaml \
68         OCAMLSDLDIR=%{_libdir}/ocaml/sdl \
69         DESTDIR=$RPM_BUILD_ROOT \
70         OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
78
79 %files devel
80 %defattr(644,root,root,755)
81 %doc README AUTHORS NEWS doc/html doc/ocaml*
82 %dir %{_libdir}/ocaml/sdl
83 %{_libdir}/ocaml/sdl/*
84 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*
This page took 0.064586 seconds and 3 git commands to generate.