178 lines
7.0 KiB
RPMSpec
178 lines
7.0 KiB
RPMSpec
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
%define debug_package %{nil}
|
|
%define _default_patch_fuzz 2
|
|
|
|
Name: ocaml-facile
|
|
Version: 1.1
|
|
Release: 20%{?dist}
|
|
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
|
|
|
|
# Fix for OCaml 4.00.0.
|
|
Patch1: ocaml-facile-ocaml-4.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
ExclusiveArch: %{ocaml_arches}
|
|
|
|
BuildRequires: ocaml >= 3.02
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
%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
|
|
%patch1 -p1 -b .ocaml4
|
|
|
|
%build
|
|
# 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
|
|
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
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-20
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sun Oct 28 2012 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-19
|
|
- Rebuild for OCaml 4.00.1.
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 1.1-17
|
|
- Rebuild for OCaml 4.00.0.
|
|
- Add a patch for OCaml 4.00.0 (change in Hashtbl signature).
|
|
- Move configure into build section.
|
|
|
|
* Sat Jan 07 2012 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-15
|
|
- Rebuild for OCaml 3.12.1
|
|
- Drop obsolete conditionals
|
|
- Use ocaml_arches macro instead of hardcoded ExcludeArch
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Jan 05 2011 Richard W.M. Jones <rjones@redhat.com> - 1.1-13
|
|
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
|
|
|
|
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.1-12
|
|
- Rebuild for OCaml 3.11.2.
|
|
|
|
* Thu Dec 17 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-11
|
|
- Use RPM's builtin OCaml dependency generator on F13+
|
|
|
|
* 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
|
|
|
|
* Fri May 22 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-9
|
|
- Rebuild for new OCaml (3.11.1 rc0)
|
|
|
|
* 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)
|
|
|
|
* 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
|
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-7
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
* Tue Nov 25 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-6
|
|
- rebuild for new ocaml (3.11.0 beta1)
|
|
|
|
* Thu Aug 28 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-5
|
|
- Rebuild with patch fuzz.
|
|
- No need to create $RPM_BUILD_ROOT.
|
|
|
|
* Wed Apr 23 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-3
|
|
- rebuild for new ocaml (3.10.2)
|
|
|
|
* Fri Mar 21 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.1-2.1
|
|
- ExcludeArch: ppc64 on Fedora < 9 (no ocaml, #438562)
|
|
|
|
* 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
|