]> git.pld-linux.org Git - packages/ocaml-findlib.git/blob - ocaml-findlib.spec
- up to 0.7.2
[packages/ocaml-findlib.git] / ocaml-findlib.spec
1 Summary:        OCaml module manager
2 Summary(pl):    Zarz±dca modu³ów OCamla
3 Name:           ocaml-findlib
4 Version:        0.7.2
5 Release:        1
6 License:        distributable
7 Group:          Development/Tools
8 Vendor:         Gerd Stolpmann <gerd@gerd-stolpmann.de>
9 URL:            http://www.ocaml-programming.de/programming/page-4.html
10 Source0:        http://www.ocaml-programming.de/packages/findlib-%{version}.tar.gz
11 BuildRequires:  ocaml
12 BuildRequires:  ocaml-camlp4
13 BuildRequires:  ocaml-labltk-devel
14 BuildRequires:  m4
15 %requires_eq    ocaml
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The "findlib" library provides a scheme to manage reusable software
20 components (packages), and includes tools that support this scheme.
21 Packages are collections of OCaml modules for which metainformation
22 can be stored.
23
24 %description -l pl
25 Biblioteka "findlib" udostêpnia metodê zarz±dzania komponentami
26 oprogramowania (pakietami) oraz zawiera narzêdzia które ow± metodê
27 wspieraj±. Pakiety s± kolekcjami modu³ów w OCamlu, dla których jest
28 przechowywana metainformacja.
29
30 %package devel
31 Summary:        OCaml module manager
32 Summary(pl):    Zarz±dca modu³ów OCamla
33 Group:          Development/Libraries
34
35 %description devel
36 The "findlib" library provides a scheme to manage reusable software
37 components (packages), and includes tools that support this scheme.
38 Packages are collections of OCaml modules for which metainformation
39 can be stored.
40
41 This package includes libraries and compiled interfaces of findlib.
42
43 %description devel -l pl
44 Biblioteka "findlib" udostêpnia metodê zarz±dzania komponentami
45 oprogramowania (pakietami) oraz zawiera narzêdzia które ow± metodê
46 wspieraj±. Pakiety s± kolekcjami modu³ów w OCamlu, dla których jest
47 przechowywana metainformacja.
48
49 Ten pakiet zawiera biblioteki i skompilowane interfejsy findliba.
50
51 %prep
52 %setup -q -n findlib-%{version}
53
54 %build
55 ./configure \
56         -bindir %{_bindir} \
57         -mandir %{_mandir} \
58         -config %{_sysconfdir}/ocamlfind.conf
59
60 sed -e 's/-g//' Makefile > Makefile.tmp
61 mv -f Makefile.tmp Makefile
62
63 %{__make} all opt
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install PREFIX=$RPM_BUILD_ROOT
69
70 rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/findlib/*.mli
71
72 # in PLD only META files are stored in site-lib/pkg
73 (sed -e 's|/site-lib||; s|use "findlib"|use "findlib.ml"|' \
74         $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib
75  echo 'directory = "+findlib"'
76  ) > $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib.ml
77 rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib
78 cp -a $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/findlib \
79         $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib
80 rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/findlib/*.*
81
82 ln -s ../stublibs $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/stublibs
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files
88 %defattr(644,root,root,755)
89 %doc README LICENSE doc/html
90 %attr(755,root,root) %{_bindir}/*
91 %config %{_sysconfdir}/ocamlfind.conf
92 %{_libdir}/ocaml/site-lib
93 %{_mandir}/man[15]/*
94
95 %files devel
96 %defattr(644,root,root,755)
97 %dir %{_libdir}/ocaml/findlib
98 %{_libdir}/ocaml/findlib/*.cm[ixa]*
99 %{_libdir}/ocaml/findlib/*.a
100 %{_mandir}/man3/*
This page took 0.151999 seconds and 4 git commands to generate.