]> git.pld-linux.org Git - packages/ocaml-findlib.git/blob - ocaml-findlib.spec
- release up for rebuild with ocaml
[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:        6
6 License:        distributable
7 Group:          Development/Tools
8 Vendor:         Gerd Stolpmann <gerd@gerd-stolpmann.de>
9 URL:            http://www.ocaml-programming.de/packages/
10 # Source0-md5:  b4643888d1a6626981113e23a92b9154
11 Source0:        http://www.ocaml-programming.de/packages/findlib-%{version}.tar.gz
12 BuildRequires:  ocaml >= 3.08
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 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 The "findlib" library provides a scheme to manage reusable software
39 components (packages), and includes tools that support this scheme.
40 Packages are collections of OCaml modules for which metainformation
41 can be stored.
42
43 This package includes libraries and compiled interfaces of findlib.
44
45 %description devel -l pl
46 Biblioteka "findlib" udostêpnia metodê zarz±dzania komponentami
47 oprogramowania (pakietami) oraz zawiera narzêdzia które ow± metodê
48 wspieraj±. Pakiety s± kolekcjami modu³ów w OCamlu, dla których jest
49 przechowywana metainformacja.
50
51 Ten pakiet zawiera biblioteki i skompilowane interfejsy findliba.
52
53 %prep
54 %setup -q -n findlib-%{version}
55
56 %build
57 ./configure \
58         -bindir %{_bindir} \
59         -mandir %{_mandir} \
60         -config %{_sysconfdir}/ocamlfind.conf
61
62 sed -e 's/-g//' Makefile > Makefile.tmp
63 mv -f Makefile.tmp Makefile
64
65 %{__make} all opt
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install PREFIX=$RPM_BUILD_ROOT
71
72 rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/findlib/*.mli
73
74 # in PLD only META files are stored in site-lib/pkg
75 sed -i -e 's|/site-lib||' $RPM_BUILD_ROOT%{_libdir}/ocaml/topfind
76 ln -sf %{_libdir}/ocaml/topfind $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlfind
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 rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib/META
82 echo 'directory = "+findlib"' >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/META
83 echo 'ldconf = "ignore"' >> $RPM_BUILD_ROOT%{_sysconfdir}/ocamlfind.conf
84
85 ln -s ../stublibs $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/libexec
86 ln -s ../stublibs $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/stublibs
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files
92 %defattr(644,root,root,755)
93 %doc README LICENSE doc/html
94 %attr(755,root,root) %{_bindir}/*
95 %config %{_sysconfdir}/ocamlfind.conf
96 %{_libdir}/ocaml/site-lib
97 %{_mandir}/man[15]/*
98
99 %files devel
100 %defattr(644,root,root,755)
101 %dir %{_libdir}/ocaml/findlib
102 %{_libdir}/ocaml/findlib/*.cm[ixa]*
103 %{_libdir}/ocaml/findlib/*.a
104 %{_libdir}/ocaml/ocamlfind
105 %{_libdir}/ocaml/topfind
106 %{_mandir}/man3/*
This page took 0.038846 seconds and 4 git commands to generate.