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