]>
Commit | Line | Data |
---|---|---|
9e120d3c | 1 | Summary: TEMPLATE binding for OCaml |
ce39d734 | 2 | Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla |
9e120d3c | 3 | Name: ocaml-template |
d954f2a4 | 4 | Version: |
9e120d3c | 5 | Release: 1 |
d954f2a4 | 6 | License: |
9e120d3c | 7 | Group: Libraries |
d954f2a4 | 8 | Vendor: |
9e120d3c MM |
9 | Source0: template-%{version}.tar.gz |
10 | BuildRequires: -devel | |
11 | BuildRequires: ocaml >= 3.04-7 | |
12 | %requires_eq ocaml-runtime | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
d954f2a4 | 16 | This package contains files needed to run bytecode executables using |
9e120d3c MM |
17 | this library. |
18 | ||
9be49f18 JR |
19 | %description -l pl.UTF-8 |
20 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów | |
21 | używających tej biblioteki. | |
9e120d3c MM |
22 | |
23 | %package devel | |
24 | Summary: TEMPLATE binding for OCaml - development part | |
ce39d734 | 25 | Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla - cześć programistyczna |
9e120d3c MM |
26 | Group: Development/Libraries |
27 | Requires: %{name} = %{version}-%{release} | |
28 | %requires_eq ocaml | |
29 | ||
30 | %description devel | |
d954f2a4 | 31 | This package contains files needed to develop OCaml programs using |
9e120d3c MM |
32 | this library. |
33 | ||
9be49f18 JR |
34 | %description devel -l pl.UTF-8 |
35 | Pakiet ten zawiera pliki niezbędne do tworzenia programów używających | |
9e120d3c MM |
36 | tej biblioteki. |
37 | ||
38 | %prep | |
39 | %setup -q -n template-%{version} | |
40 | ||
41 | %build | |
42 | %{__make} CC="%{__cc} %{rpmcflags} -fPIC" all opt | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{template,stublibs} | |
48 | install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/template | |
49 | install dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs | |
50 | ||
51 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
52 | cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
53 | ||
54 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/template | |
55 | cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/template/META <<EOF | |
56 | requires = "" | |
57 | version = "%{version}" | |
58 | directory = "+template" | |
59 | archive(byte) = "template.cma" | |
60 | archive(native) = "template.cmxa" | |
61 | linkopts = "" | |
62 | EOF | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
69 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so | |
70 | ||
71 | %files devel | |
72 | %defattr(644,root,root,755) | |
d954f2a4 | 73 | %doc LICENSE *.mli |
9e120d3c MM |
74 | %dir %{_libdir}/ocaml/template |
75 | %{_libdir}/ocaml/template/*.cm[ixa]* | |
76 | %{_libdir}/ocaml/template/*.a | |
77 | %{_examplesdir}/%{name}-%{version} | |
78 | %{_libdir}/ocaml/site-lib/template |