%define oname dose3 %define ocaml_libdir %(if [ -x /usr/bin/ocamlc ]; then ocamlc -where;fi) Summary: Framework for managing distribution packages and their dependencies Name: ocaml-%{oname} Version: 2.9.2 %define svnrev 2457 %define subrel 1 Release: %mkrel 2.%{svnrev}.2 URL: http://gforge.inria.fr/projects/sodiac/ License: GPLv3+ Group: Development/Other Source0: %{oname}-%{version}.tar.xz # TODO: room for improval.. :| Patch0: dose3-2.9.2-backend.ml.patch Requires: ocaml-pcre Requires: ocaml-calendar Requires: ocaml-camlzip Requires: ocaml-camlbz2 BuildRequires: camlp4 BuildRequires: ocaml-findlib BuildRequires: ocaml-pcre-devel BuildRequires: ocaml-extlib-devel BuildRequires: ocaml-calendar-devel BuildRequires: ocaml-camlzip-devel BuildRequires: ocaml-camlbz2-devel BuildRequires: ocaml-ocamlgraph-devel BuildRequires: ocaml-curl BuildRequires: ocaml-ounit BuildRequires: ocaml-expat-devel BuildRequires: ocaml-camlzip-devel BuildRequires: ocaml-camlbz2-devel BuildRequires: ocaml-sqlite-devel #BuildRequires: ocaml-postgresql-devel BuildRequires: ocaml-benchmark BuildRequires: ocaml-graphviz BuildRequires: ocaml-json-static ocaml-json-wheel-devel BuildRequires: ocaml-ocamlnet-devel BuildRequires: ocaml-xml-light-devel BuildRequires: cudf-ocaml-devel BuildRequires: librpm-devel BuildRequires: libpopt-devel BuildRequires: bc %description Dose 3 is a framework made of several OCaml libraries for managing distribution packages and their dependencies. Though not tied to any particular distribution, Dose 3 forms a background of libraries which enable injecting packages coming for various distribution. Companion libraries (e.g. ceve) and tools (e.g. pkglab) rely on Dose 3 to manage packages coming from various distributions, e.g. Debian and Red Hat. Besides basic functionalities for querying and setting package properties, Dose 3 also implements algorithms for solving more complex problems (monitoring package evolutions, correct and complete dependency resolution, repository-wide uninstallability checks). %package devel Summary: Development files for %{name} Group: Development/Other Requires: ocaml-dose3 %description devel Contains all libraries neededs to compile application using the dose3 framework %prep %setup -q -n %{oname}-%{version} %patch0 -p0 rm -f configure autoreconf -f -Im4 %build %configure --with-rpm \ --with-xml \ --with-curl \ --with-ocamlgraph \ --with-zip \ --with-oUnit \ --with-bz2 \ --with-rpm \ --with-sqlite \ --with-benchmark #--with-postgresql \ %make %install %makeinstall_std cd doc/manpages for man in *.?; do install -m644 $man -D %{buildroot}%{_mandir}/man1/$man done %files %defattr(-,root,root,-) %{_bindir}/ceve %{_bindir}/deb-buildcheck %{_bindir}/distcheck %{_mandir}/man1/ceve.1* %{_mandir}/man1/buildcheck.1* %{_mandir}/man1/distcheck.1* %dir %{ocaml_libdir}/%{oname} %{ocaml_libdir}/%{oname}/META %{ocaml_libdir}/%{oname}/*.cmi %{ocaml_libdir}/%{oname}/*.cma %files devel %doc README.architecture TODO %{ocaml_libdir}/%{oname}/*.a %{ocaml_libdir}/%{oname}/*.cmxa %{ocaml_libdir}/%{oname}/*.mli %{ocaml_libdir}/%{oname}/*.o %changelog * Thu Sep 06 2012 malo <malo> 2.9.2-2.2457.2.1.mga1 + Revision: 289027 - rebuild for patched ocaml-xml-light * Tue Apr 12 2011 ennael <ennael> 2.9.2-2.2457.2.mga1 + Revision: 83709 - remove deps on dose2 * Tue Apr 12 2011 ennael <ennael> 2.9.2-2.2457.1.mga1 + Revision: 83661 - fix release tag - remove rpm5 patch - clean mdv macros - imported package ocaml-dose3 * Mon Apr 11 2011 Antoine Ginies <aginies@mandriva.com> 2.9.2-2.2457.1 + Revision: 652649 - add dot support * Mon Apr 11 2011 Antoine Ginies <aginies@mandriva.com> 2.9.2-1.2457.1 + Revision: 652599 - dont use rpm5 patches for old distribution * Mon Apr 11 2011 Antoine Ginies <aginies@mandriva.com> 2.9.2-0.2457.2 + Revision: 652592 - bump the release - add priority missing propriety - fix build with ocaml-sqlite-devel * Mon Apr 11 2011 Per Ãyvind Karlsen <peroyvind@mandriva.org> 2.9.2-0.2457.1 + Revision: 652535 - add 'camlp4' to buildrequires - track down all build dependencies and finally fix the build *phew* - update to latest code from svn - redo rpm5 patch - update description * Thu Jan 27 2011 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.4.2-1 + Revision: 633235 - fix path - work around parallel build breaking - license is GPLv3+, not GPLv2+ - add rpm5 support (P0) - updated and improved packaging by Dupuy Mathieu <mdupuy@mandriva.com> + Oden Eriksson <oeriksson@mandriva.com> - rebuild * Fri Jul 31 2009 Funda Wang <fwang@mandriva.org> 2.0-0.20070622.4mdv2010.0 + Revision: 405033 - rebuild * Wed Mar 04 2009 Guillaume Rousse <guillomovitch@mandriva.org> 2.0-0.20070622.3mdv2009.1 + Revision: 348614 - rebuild for latest ocaml - fix ocaml lib directory * Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 2.0-0.20070622.2mdv2008.1 + Revision: 140728 - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request + Per Ãyvind Karlsen <peroyvind@mandriva.org> - fix typo * Sat Jun 23 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 2.0-0.20070622.2mdv2008.0 + Revision: 43457 - build and package tart * Fri Jun 22 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 2.0-0.20070622.1mdv2008.0 + Revision: 43262 - compile with %%{optflags} - fix buildrequires - fix buildrequires - compile with -fPIC - dot - fix install - Import edos-dose