2008-03-21 22:25:31 +00:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%define debug_package %{nil}
|
2008-08-28 16:45:10 +00:00
|
|
|
%define _default_patch_fuzz 2
|
2008-03-21 22:25:31 +00:00
|
|
|
|
2008-03-21 22:53:04 +00:00
|
|
|
%if 0%{?fedora} < 9
|
|
|
|
# no ocaml (#438562)
|
|
|
|
ExcludeArch: ppc64
|
|
|
|
%endif
|
|
|
|
|
2008-03-21 22:25:31 +00:00
|
|
|
Name: ocaml-facile
|
|
|
|
Version: 1.1
|
2009-12-17 01:23:31 +00:00
|
|
|
Release: 11%{?dist}
|
2008-03-21 22:25:31 +00:00
|
|
|
Summary: OCaml library for constraint programming
|
|
|
|
Summary(fr): Librairie OCaml de programmation par contraintes
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://www.recherche.enac.fr/log/facile/
|
|
|
|
Source0: http://www.recherche.enac.fr/log/facile/distrib/facile-1.1.tar.gz
|
|
|
|
# makefile fixes by Steffen Joeris <white@debian.org>:
|
|
|
|
# * only build and install native binaries if ocamlopt is available
|
|
|
|
# * install .mli files
|
|
|
|
Patch0: facile-1.1-makefile-fixes.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2009-04-16 09:06:06 +00:00
|
|
|
ExcludeArch: sparc64 s390 s390x
|
2008-03-21 22:25:31 +00:00
|
|
|
|
|
|
|
BuildRequires: ocaml >= 3.02
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
|
2009-12-17 01:23:31 +00:00
|
|
|
%if 0%{?fedora} < 13
|
2008-03-21 22:25:31 +00:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
|
|
|
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
2009-12-17 01:23:31 +00:00
|
|
|
%endif
|
2008-03-21 22:25:31 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
FaCiLe is a constraint programming library on integer and integer set finite
|
|
|
|
domains written in OCaml. It offers all usual facilities to create and
|
|
|
|
manipulate finite domain variables, arithmetic expressions and constraints
|
|
|
|
(possibly non-linear), built-in global constraints (difference, cardinality,
|
|
|
|
sorting etc.) and search and optimization goals. FaCiLe allows as well to build
|
|
|
|
easily user-defined constraints and goals (including recursive ones), making
|
|
|
|
pervasive use of OCaml higher-order functionals to provide a simple and flexible
|
|
|
|
interface for the user. As FaCiLe is an OCaml library and not "yet another
|
|
|
|
language", the user benefits from type inference and strong typing discipline,
|
|
|
|
high level of abstraction, modules and objects system, as well as native code
|
|
|
|
compilation efficiency, garbage collection and replay debugger, all features of
|
|
|
|
OCaml (among many others) that allow to prototype and experiment quickly:
|
|
|
|
modeling, data processing and interface are implemented with the same powerful
|
|
|
|
and efficient language.
|
|
|
|
|
|
|
|
%description -l fr
|
|
|
|
FaCiLe est une librairie de Programmation par Contraintes sur les domaines
|
|
|
|
finis (entiers et ensembles d'entiers) entièrement écrite avec OCaml. FaCiLe
|
|
|
|
intègre toutes les fonctionnalités standards de création et manipulation de
|
|
|
|
variables (logiques) à domaine fini, d'expressions et de contraintes
|
|
|
|
arithmétiques (éventuellement non-linéaires), de contraintes globales
|
|
|
|
(différence, cardinalité, tri etc.) et de buts de recherche et d'optimisation.
|
|
|
|
FaCiLe permet aussi de construire facilement de nouvelles contraintes et de
|
|
|
|
nouveaux buts (éventuellement récursifs) définis par l'utilisateur, à l'aide
|
|
|
|
d'interfaces simples et puissantes qui utilisent intensivement des fonctions
|
|
|
|
d'ordre supérieur. Comme FaCiLe est une librairie OCaml et pas "encore un
|
|
|
|
nouveau langage", l'utilisateur bénéficie de l'inférence de type et du typage
|
|
|
|
statique strict, d'un haut niveau d'abstraction, des systèmes de modules et
|
|
|
|
d'objets, ainsi que de l'efficacité du compilateur qui produit du code natif
|
|
|
|
optimisé (pour toutes les plates-formes courantes), de la gestion automatique de
|
|
|
|
la mémoire et du débogueur avec retour arrière, autant de caractéristiques
|
|
|
|
d'OCaml qui permettent de prototyper et expérimenter très rapidement: la
|
|
|
|
modélisation, le traitement des données et les interfaces sont implémentés à
|
|
|
|
l'aide du même langage puissant et efficace.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n facile-%{version}
|
|
|
|
%patch0 -p1 -b .makefile-fixes
|
|
|
|
# This is not autoconf, but a simple custom configure script.
|
|
|
|
# The --faciledir directory is only used for "make install".
|
|
|
|
./configure --faciledir $RPM_BUILD_ROOT%{_libdir}/ocaml/facile
|
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
make install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE README
|
|
|
|
%{_libdir}/ocaml/facile/
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/facile/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/facile/*.cmxa
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/facile/*.mli
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/facile/*.a
|
|
|
|
%{_libdir}/ocaml/facile/*.cmxa
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/facile/*.mli
|
|
|
|
|
|
|
|
%changelog
|
2009-12-17 01:23:31 +00:00
|
|
|
* Thu Dec 17 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-11
|
|
|
|
- Use RPM's builtin OCaml dependency generator on F13+
|
|
|
|
|
2009-07-25 19:56:27 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-22 23:43:58 +00:00
|
|
|
* Fri May 22 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-9
|
|
|
|
- Rebuild for new OCaml (3.11.1 rc0)
|
|
|
|
|
2009-04-16 09:06:06 +00:00
|
|
|
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
|
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
|
(added sparc64 per request from the sparc maintainer)
|
|
|
|
|
2009-02-26 07:03:40 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-04 19:19:53 +00:00
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-7
|
|
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
|
2008-11-25 19:11:19 +00:00
|
|
|
* Tue Nov 25 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-6
|
|
|
|
- rebuild for new ocaml (3.11.0 beta1)
|
|
|
|
|
2008-08-28 17:11:19 +00:00
|
|
|
* Thu Aug 28 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-5
|
2008-08-28 16:45:10 +00:00
|
|
|
- Rebuild with patch fuzz.
|
2008-08-28 17:11:19 +00:00
|
|
|
- No need to create $RPM_BUILD_ROOT.
|
2008-08-28 16:45:10 +00:00
|
|
|
|
2008-04-23 13:47:24 +00:00
|
|
|
* Wed Apr 23 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-3
|
|
|
|
- rebuild for new ocaml (3.10.2)
|
|
|
|
|
2008-03-21 22:53:04 +00:00
|
|
|
* Fri Mar 21 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-2.1
|
|
|
|
- ExcludeArch: ppc64 on Fedora < 9 (no ocaml, #438562)
|
|
|
|
|
2008-03-21 22:25:31 +00:00
|
|
|
* Wed Mar 19 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-2
|
|
|
|
- use correct syntax for French description
|
|
|
|
|
|
|
|
* Wed Mar 19 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-1
|
|
|
|
- initial Fedora package
|