]> git.pld-linux.org Git - SPECS.git/blob - ocaml-wdialog.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / ocaml-wdialog.spec
1 Summary:        Toolkit for Dialog-Centric Web Applications
2 Summary(pl.UTF-8):      Wiązania TEMPLATE dla OCamla
3 Name:           ocaml-wdialog
4 Version:        2.1.2
5 %define _man_ver 2.1.1
6 Release:        0.1
7 License:        GPL v2+
8 Group:          Libraries
9 Vendor:         Gerd Stolpmann <gerd@gerd-stolpmann.de>
10 Source0:        http://dl.sourceforge.net/sourceforge/wdialog/wdialog-%{version}.tar.gz
11 # Source0-md5:  1380a8ae75f690043634c66f3f8ff8d1
12 Source1:        http://dl.sourceforge.net/sourceforge/wdialog/wdialog-manual-%{_man_ver}-html.tar.gz
13 # Source1-md5:  2a4f4c4fa1d8b1718a7938afdcc84add
14 URL:            http://wdialog.sourceforge.net/
15 BuildRequires:  ocaml-findlib-devel
16 BuildRequires:  ocaml-pxp-devel
17 BuildRequires:  ocaml-pcre-devel
18 BuildRequires:  ocaml-net-cgi-devel
19 BuildRequires:  ocaml >= 3.06
20 BuildRequires:  ocaml-ulex
21 %requires_eq    ocaml-runtime
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This package contains files needed to run bytecode executables using
26 this library.
27
28 %description -l pl.UTF-8
29 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
30 używających tej biblioteki.
31
32 %package devel
33 Summary:        Toolkit for Dialog-Centric Web Applications - development part
34 Summary(pl.UTF-8):      Wiązania TEMPLATE dla OCamla - cześć programistyczna
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 %requires_eq    ocaml
38
39 %description devel
40 This package contains files needed to develop OCaml programs using
41 this library.
42
43 %description devel -l pl.UTF-8
44 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
45 tej biblioteki.
46
47 %prep
48 %setup -q -n wdialog-%{version}
49
50 %build
51 # no %%configure please
52 ./configure -without-wd-session-daemon
53 %{__make}
54 %{__make} opt
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml
59
60 %{__make} install OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
61
62 for f in wd-xmlcompiler wdialog wdialog-p4 ; do
63         install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f
64         mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/$f/META \
65                 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/
66         echo "directory = \"+$f\"" >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/META
67 done
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files devel
73 %defattr(644,root,root,755)
74 #%doc LICENSE *.mli
75 %{_libdir}/ocaml/w*/*.cm[ixa]*
76 %{_libdir}/ocaml/w*/*.a
77 %{_libdir}/ocaml/site-lib/*
78 #%{_examplesdir}/%{name}-%{version}
This page took 0.279512 seconds and 3 git commands to generate.