%define libname ocaml-mascot-lib Name: mascot Version: 1.0beta Release: %mkrel 6 Summary: Style-checker for OCaml sources License: GPL v3 Group: Development/OCaml URL: http://mascot.x9c.fr/ # The 1.0 version requires ocaml 4.00.0 not yet in cauldron. #Source0: http://forge.ocamlcore.org/frs/download.php/990/mascot-%{version}.tar.gz Source0: http://forge.ocamlcore.org/frs/download.php/651/mascot-1.0-beta.tar.gz Source1: mascot-man-page-%{version}.1 Source2: example.conf BuildRequires: ocaml-findlib BuildRequires: camlp4-devel %description Mascot is a style-checker for OCaml sources. It provides checks in various categories: code, documentation, interface, metrics, and typography. The goal of the tool is to allow a (team of) developer(s) to enforce style properties over a source codebase for greater coherency and style uniformity. The tool is highly customizable, allowing one to choose the checks to perform, as well as exceptions to those checks in given files. Moreover, a plugin system allows the developer to add its own checks, and output modes. Bundled output modes range from bare text to CheckStyle- and JDepend-compatible XML file in order to allow integration with Jenkins. Help: In order to improve the project, I am primarily looking for testers and bug reporters http://bugs.x9c.fr. Pointing errors in documentation and indicating where it should be enhanced is also very helpful. Of course, aside from bugs, you can also use the tracker to request new features. The darcs repository is http://mascot.x9c.fr/_darcs (read-only, useful to always get the last version). %package -n %{libname} Summary: Development files for %{name} Group: Development/OCaml Requires: %{name} = %{version}-%{release} Requires: ocaml-compiler %description -n %{libname} This package contains libraries and signature files for developing applications with %{name}. %package -n %{libname}-devel Summary: Development files for %{name} Group: Development/OCaml Requires: %{libname} = %{version}-%{release} %description -n %{libname}-devel This package contains native libraries files for developing applications with %{name}. %prep #setup -q -n mascot-%{version} %setup -q -n mascot-1.0-beta %build sh configure make all make doc mv doc manual %check make tests %install rm -rf %{buildroot} export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR/mascot make install PATH_OCAMLFIND="/usr/bin/ocamlfind" # make an easier command line invocation install -d -m 755 %{buildroot}/%{_bindir} pushd %{buildroot}%{_bindir}/ ln -s \ %{_libdir}/ocaml/mascot/mascot.native \ mascot popd mkdir -p %{buildroot}%{_mandir}/man1 cp %{SOURCE1} %{buildroot}%{_mandir}/man1/mascot.1 cp %{SOURCE2} . %files %doc README COPYING CHANGES FEATURES VERSION %doc manual/ %doc example.conf %dir %{_libdir}/ocaml/mascot %{_libdir}/ocaml/mascot/META %{_libdir}/ocaml/mascot/mascot.byte %{_libdir}/ocaml/mascot/mascot.native %{_bindir}/mascot %{_mandir}/man1/mascot.1* %files -n %{libname} %doc tests/ %doc ocamldoc/ %{_libdir}/ocaml/mascot/*.cmi %{_libdir}/ocaml/mascot/*.cmo %files -n %{libname}-devel %{_libdir}/ocaml/mascot/*.cmx %{_libdir}/ocaml/mascot/*.o