]>
Commit | Line | Data |
---|---|---|
0eaf468a | 1 | %define ocaml_ver 1:3.09.2 |
b741b828 | 2 | Summary: SDL binding for OCaml |
3ebd64ba | 3 | Summary(pl.UTF-8): Wiązania SDL dla OCamla |
b741b828 | 4 | Name: ocaml-SDL |
5523d1d9 | 5 | Version: 0.7.2 |
5b6c7f9f | 6 | Release: 8 |
b741b828 JR |
7 | License: GPL |
8 | Group: Libraries | |
9 | Source0: http://dl.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz | |
5523d1d9 | 10 | # Source0-md5: 0707a9cf80bd9cfe18ad660dc077bad6 |
b741b828 JR |
11 | URL: http://ocamlsdl.sourceforge.net/ |
12 | BuildRequires: SDL-devel | |
93ef2896 | 13 | BuildRequires: SDL_image-devel |
b741b828 JR |
14 | BuildRequires: SDL_mixer-devel |
15 | BuildRequires: SDL_ttf-devel | |
6ec8c8da JB |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
480d0786 | 18 | BuildRequires: ocaml >= %{ocaml_ver} |
07b43a1e | 19 | BuildRequires: ocaml-findlib-devel |
4607d6ce | 20 | BuildRequires: ocaml-lablgl-devel |
b741b828 JR |
21 | %requires_eq ocaml-runtime |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Simply speaking, OCamlSDL is an attempt to write a software interface | |
26 | between the ML programming language and the SDL C library. | |
27 | ||
28 | This package contains files needed to run bytecode executables using | |
29 | this library. | |
30 | ||
9328c039 JR |
31 | %description -l pl.UTF-8 |
32 | OCamlSDL to próba napisania interfejsu programowego między językiem | |
33 | programowania ML a biblioteką C SDL. | |
93ef2896 JB |
34 | |
35 | Ten pakiet zawiera pliki potrzebne do uruchamiania wykonywalnego | |
9328c039 | 36 | bytecodu używającego tej biblioteki. |
93ef2896 | 37 | |
b741b828 JR |
38 | %package devel |
39 | Summary: SDL binding for OCaml - development part | |
3ebd64ba | 40 | Summary(pl.UTF-8): Wiązania SDL dla OCamla - cześć programistyczna |
b741b828 JR |
41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | %requires_eq ocaml | |
44 | ||
45 | %description devel | |
46 | Simply speaking, OCamlSDL is an attempt to write a software interface | |
47 | between the ML programming language and the SDL C library. | |
48 | ||
49 | This package contains files needed to develop OCaml programs using | |
50 | this library. | |
51 | ||
9328c039 JR |
52 | %description devel -l pl.UTF-8 |
53 | OCamlSDL to próba napisania interfejsu programowego między językiem | |
54 | programowania ML a biblioteką C SDL. | |
93ef2896 | 55 | |
9328c039 JR |
56 | Ten pakiet zawiera pliki potrzebne do tworzenia programów w OCamlu |
57 | używających tej biblioteki. | |
93ef2896 | 58 | |
b741b828 | 59 | %prep |
4607d6ce | 60 | %setup -q -n ocamlsdl-%{version} |
b741b828 JR |
61 | |
62 | %build | |
6ec8c8da | 63 | cp -f /usr/share/automake/config.* support |
476da9c0 JR |
64 | %{__aclocal} -I support |
65 | %{__autoconf} | |
4607d6ce JR |
66 | %configure |
67 | %{__make} | |
b741b828 JR |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
07b43a1e | 71 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs |
b741b828 | 72 | |
6684267e | 73 | %{__make} install \ |
5e4325b5 | 74 | OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml |
b741b828 JR |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so | |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
4607d6ce JR |
85 | %doc README AUTHORS NEWS doc/html doc/ocaml* |
86 | %dir %{_libdir}/ocaml/sdl | |
87 | %{_libdir}/ocaml/sdl/* | |
07b43a1e | 88 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.owner |