1 |
blue_prawn |
285892 |
%define libname ocaml-mascot-lib |
2 |
|
|
|
3 |
|
|
Name: mascot |
4 |
|
|
Version: 1.0beta |
5 |
blue_prawn |
301093 |
Release: %mkrel 5 |
6 |
blue_prawn |
285892 |
Summary: Style-checker for OCaml sources |
7 |
|
|
License: GPL v3 |
8 |
blue_prawn |
300592 |
Group: Development/OCaml |
9 |
blue_prawn |
285892 |
URL: http://mascot.x9c.fr/ |
10 |
|
|
# The 1.0 version requires ocaml 4.00.0 not yet in cauldron. |
11 |
|
|
#Source0: http://forge.ocamlcore.org/frs/download.php/990/mascot-%{version}.tar.gz |
12 |
|
|
Source0: http://forge.ocamlcore.org/frs/download.php/651/mascot-1.0-beta.tar.gz |
13 |
blue_prawn |
285927 |
Source1: mascot-man-page-%{version}.1 |
14 |
|
|
Source2: example.conf |
15 |
blue_prawn |
285892 |
BuildRequires: ocaml-findlib |
16 |
blue_prawn |
285904 |
BuildRequires: camlp4-devel |
17 |
blue_prawn |
285892 |
|
18 |
|
|
%description |
19 |
|
|
Mascot is a style-checker for OCaml sources. It provides checks in various |
20 |
|
|
categories: code, documentation, interface, metrics, and typography. The |
21 |
|
|
goal of the tool is to allow a (team of) developer(s) to enforce style |
22 |
|
|
properties over a source codebase for greater coherency and style |
23 |
|
|
uniformity. The tool is highly customizable, allowing one to choose the |
24 |
|
|
checks to perform, as well as exceptions to those checks in given files. |
25 |
|
|
Moreover, a plugin system allows the developer to add its own checks, and |
26 |
|
|
output modes. |
27 |
|
|
|
28 |
|
|
Bundled output modes range from bare text to CheckStyle- and |
29 |
|
|
JDepend-compatible XML file in order to allow integration with Jenkins. |
30 |
|
|
|
31 |
|
|
Help: |
32 |
|
|
In order to improve the project, I am primarily looking for testers and bug |
33 |
|
|
reporters http://bugs.x9c.fr. Pointing errors in documentation and |
34 |
|
|
indicating where it should be enhanced is also very helpful. Of course, |
35 |
|
|
aside from bugs, you can also use the tracker to request new features. |
36 |
|
|
|
37 |
|
|
The darcs repository is http://mascot.x9c.fr/_darcs (read-only, useful to |
38 |
|
|
always get the last version). |
39 |
|
|
|
40 |
|
|
%package -n %{libname} |
41 |
|
|
Summary: Development files for %{name} |
42 |
blue_prawn |
300592 |
Group: Development/OCaml |
43 |
blue_prawn |
285892 |
Requires: %{name} = %{version}-%{release} |
44 |
blue_prawn |
285905 |
Requires: ocaml-compiler |
45 |
blue_prawn |
285892 |
|
46 |
|
|
%description -n %{libname} |
47 |
|
|
This package contains libraries and signature files for developing |
48 |
|
|
applications with %{name}. |
49 |
|
|
|
50 |
|
|
%package -n %{libname}-devel |
51 |
|
|
Summary: Development files for %{name} |
52 |
blue_prawn |
300592 |
Group: Development/OCaml |
53 |
blue_prawn |
285892 |
Requires: %{libname} = %{version}-%{release} |
54 |
|
|
|
55 |
|
|
%description -n %{libname}-devel |
56 |
|
|
This package contains native libraries files for developing |
57 |
|
|
applications with %{name}. |
58 |
|
|
|
59 |
|
|
%prep |
60 |
|
|
#setup -q -n mascot-%{version} |
61 |
|
|
%setup -q -n mascot-1.0-beta |
62 |
|
|
|
63 |
|
|
%build |
64 |
|
|
sh configure |
65 |
|
|
make all |
66 |
|
|
make doc |
67 |
blue_prawn |
285927 |
mv doc manual |
68 |
blue_prawn |
285892 |
|
69 |
|
|
%check |
70 |
|
|
make tests |
71 |
|
|
|
72 |
|
|
%install |
73 |
|
|
rm -rf %{buildroot} |
74 |
|
|
export DESTDIR=%{buildroot} |
75 |
|
|
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml |
76 |
|
|
mkdir -p $OCAMLFIND_DESTDIR/mascot |
77 |
|
|
make install PATH_OCAMLFIND="/usr/bin/ocamlfind" |
78 |
|
|
|
79 |
|
|
# make an easier command line invocation |
80 |
|
|
install -d -m 755 %{buildroot}/%{_bindir} |
81 |
|
|
pushd %{buildroot}%{_bindir}/ |
82 |
|
|
ln -s \ |
83 |
|
|
%{_libdir}/ocaml/mascot/mascot.native \ |
84 |
|
|
mascot |
85 |
|
|
popd |
86 |
|
|
|
87 |
blue_prawn |
285927 |
mkdir -p %{buildroot}%{_mandir}/man1 |
88 |
|
|
cp %{SOURCE1} %{buildroot}%{_mandir}/man1/mascot.1 |
89 |
|
|
cp %{SOURCE2} . |
90 |
|
|
|
91 |
blue_prawn |
285892 |
%files |
92 |
|
|
%doc README COPYING CHANGES FEATURES VERSION |
93 |
blue_prawn |
285927 |
%doc manual/ |
94 |
|
|
%doc example.conf |
95 |
blue_prawn |
285892 |
%dir %{_libdir}/ocaml/mascot |
96 |
|
|
%{_libdir}/ocaml/mascot/META |
97 |
|
|
%{_libdir}/ocaml/mascot/mascot.byte |
98 |
|
|
%{_libdir}/ocaml/mascot/mascot.native |
99 |
|
|
%{_bindir}/mascot |
100 |
blue_prawn |
285927 |
%{_mandir}/man1/mascot.1* |
101 |
blue_prawn |
285892 |
|
102 |
|
|
%files -n %{libname} |
103 |
|
|
%doc tests/ |
104 |
|
|
%doc ocamldoc/ |
105 |
|
|
%{_libdir}/ocaml/mascot/*.cmi |
106 |
|
|
%{_libdir}/ocaml/mascot/*.cmo |
107 |
|
|
|
108 |
|
|
%files -n %{libname}-devel |
109 |
|
|
%{_libdir}/ocaml/mascot/*.cmx |
110 |
|
|
%{_libdir}/ocaml/mascot/*.o |