1 |
%define oname dose3 |
2 |
%define name ocaml-%{oname} |
3 |
%define version 3.0.2 |
4 |
%define release %mkrel 1 |
5 |
|
6 |
Summary: Framework for managing distribution packages and their dependencies |
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release} |
10 |
Source0: http://gforge.info.ucl.ac.be/frs/download.php/189/%{oname}-%{version}.tar.gz |
11 |
License: LGPLv2 with linking exception |
12 |
Group: Development/Other |
13 |
Url: http://www.mancoosi.org/software/ |
14 |
|
15 |
BuildRequires: ocaml-compiler |
16 |
BuildRequires: ocaml-findlib |
17 |
BuildRequires: ocaml-extlib-devel |
18 |
BuildRequires: ocaml-pcre-devel |
19 |
BuildRequires: camlp4 |
20 |
# BuildRequires: ocaml-sqlite-devel ocaml-json-static |
21 |
BuildRequires: ocaml-camlbz2-devel |
22 |
BuildRequires: ocaml-camlzip-devel |
23 |
BuildRequires: ocaml-expat-devel |
24 |
BuildRequires: ocaml-benchmark-devel |
25 |
BuildRequires: ocaml-ocamlgraph-devel |
26 |
BuildRequires: ocaml-curl-devel |
27 |
BuildRequires: ocaml-xml-light-devel |
28 |
BuildRequires: ocaml-ounit-devel |
29 |
BuildRequires: librpm-devel |
30 |
BuildRequires: ocaml-cudf-devel |
31 |
BuildRequires: curl-devel |
32 |
Requires: ocaml-extlib |
33 |
Requires: ocaml-pcre |
34 |
Requires: ocaml-camlbz2-devel |
35 |
Requires: ocaml-camlzip-devel |
36 |
Requires: ocaml-expat |
37 |
Requires: ocaml-curl |
38 |
Requires: ocaml-ounit |
39 |
Requires: ocaml-ocamlgraph |
40 |
Requires: ocaml-cudf |
41 |
Requires: librpm-devel |
42 |
|
43 |
|
44 |
%description |
45 |
Dose3 is a framework made of several OCaml libraries for |
46 |
managing distribution packages and their dependencies. |
47 |
|
48 |
Though not tied to any particular distribution, dose3 constitutes a pool of |
49 |
libraries which enable analyzing packages coming from various |
50 |
distributions. |
51 |
|
52 |
Besides basic functionalities for querying and setting package properties, |
53 |
dose3 also implements algorithms for solving more complex problems |
54 |
(monitoring package evolutions, correct and complete dependency resolution, |
55 |
repository-wide uninstallability checks). |
56 |
|
57 |
%package devel |
58 |
Summary: Development files for %{name} |
59 |
Group: Development/Other |
60 |
Requires: %{name} = %{version}-%{release} |
61 |
|
62 |
%description devel |
63 |
The %{name}-devel package contains libraries and signature files for |
64 |
developing applications that use %{name}. |
65 |
Requires: ocaml-extlib-devel |
66 |
Requires: ocaml-pcre-devel |
67 |
Requires: ocaml-expat-devel |
68 |
Requires: ocaml-curl-devel |
69 |
Requires: ocaml-ounit-devel |
70 |
Requires: ocaml-ocamlgraph-devel |
71 |
Requires: ocaml-cudf-devel |
72 |
|
73 |
|
74 |
%prep |
75 |
%setup -q -n %{oname}-%{version} |
76 |
|
77 |
|
78 |
%build |
79 |
./configure --libdir=%{_libdir} \ |
80 |
--with-xml \ |
81 |
--with-curl \ |
82 |
--with-ocamlgraph \ |
83 |
--with-zip \ |
84 |
--with-oUnit \ |
85 |
--with-bz2 \ |
86 |
--with-rpm4 |
87 |
# --with-sqlite \ |
88 |
make |
89 |
|
90 |
%check |
91 |
# Tests fail for some reason |
92 |
# make test |
93 |
|
94 |
%install |
95 |
make install LIBDIR=%{buildroot}/%{_libdir}/ocaml BINDIR=%{buildroot}/%{_bindir} |
96 |
rm -f %{buildroot}/%{_libdir}/ocaml/dose3/*.{cm,}o |
97 |
rm -f %{buildroot}/%{_libdir}/ocaml/dose3/*.ml{.depends,} |
98 |
cd doc/manpages |
99 |
for man in *.?; do |
100 |
install -m644 $man -D %{buildroot}%{_mandir}/man1/$man |
101 |
done |
102 |
cd ../.. |
103 |
cp META %{buildroot}%{_libdir}/ocaml/dose3 |
104 |
|
105 |
|
106 |
%files |
107 |
%dir %{_libdir}/ocaml/dose3 |
108 |
%doc COPYING |
109 |
%{_bindir}/apt-cudf |
110 |
%{_bindir}/ceve |
111 |
%{_bindir}/challenged |
112 |
%{_bindir}/debcheck |
113 |
%{_bindir}/dominators-graph |
114 |
%{_bindir}/rpmcheck |
115 |
%{_bindir}/outdated |
116 |
%{_bindir}/eclipsecheck |
117 |
%{_bindir}/deb-buildcheck |
118 |
%{_bindir}/distcheck |
119 |
%{_bindir}/smallworld |
120 |
%{_bindir}/strong-deps |
121 |
%{_mandir}/man1/apt-cudf.1* |
122 |
%{_mandir}/man1/apt-cudf-get.8* |
123 |
%{_mandir}/man1/apt-cudf.conf.5* |
124 |
%{_mandir}/man1/ceve.1* |
125 |
%{_mandir}/man1/buildcheck.1* |
126 |
%{_mandir}/man1/distcheck.1* |
127 |
%{_mandir}/man1/outdated.1* |
128 |
%{_mandir}/man1/challenged.1* |
129 |
%{_mandir}/man1/strongdeps.1* |
130 |
%{_mandir}/man1/smallworld.1* |
131 |
%{_libdir}/ocaml/dose3/META |
132 |
%{_libdir}/ocaml/dose3/*.cma |
133 |
%{_libdir}/ocaml/dose3/*.cmi |
134 |
%{_libdir}/ocaml/dose3/*.cmxs |
135 |
%{_libdir}/ocaml/stublibs/*.so* |
136 |
|
137 |
%files devel |
138 |
%doc README.architecture TODO |
139 |
%{_libdir}/ocaml/dose3/*.a |
140 |
%{_libdir}/ocaml/dose3/*.cmxa |
141 |
%{_libdir}/ocaml/dose3/*.mli |