1 |
blue_prawn |
285892 |
%define libname ocaml-mascot-lib |
2 |
|
|
|
3 |
|
|
Name: mascot |
4 |
blue_prawn |
301531 |
Version: 1.0 |
5 |
malo |
394690 |
Release: %mkrel 3 |
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 |
blue_prawn |
301531 |
Source0: http://download.ocamlcore.org/mascot/%{version}/sources/mascot-%{version}.tar.gz |
11 |
blue_prawn |
285927 |
Source1: mascot-man-page-%{version}.1 |
12 |
|
|
Source2: example.conf |
13 |
blue_prawn |
301531 |
Patch0: mascot-1.0.fix-build-doc.patch |
14 |
blue_prawn |
285892 |
BuildRequires: ocaml-findlib |
15 |
blue_prawn |
301612 |
BuildRequires: ocaml-compiler-libs |
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 |
|
|
|
32 |
|
|
%package -n %{libname} |
33 |
|
|
Summary: Development files for %{name} |
34 |
blue_prawn |
300592 |
Group: Development/OCaml |
35 |
blue_prawn |
285892 |
Requires: %{name} = %{version}-%{release} |
36 |
blue_prawn |
285905 |
Requires: ocaml-compiler |
37 |
blue_prawn |
285892 |
|
38 |
|
|
%description -n %{libname} |
39 |
|
|
This package contains libraries and signature files for developing |
40 |
|
|
applications with %{name}. |
41 |
|
|
|
42 |
|
|
%package -n %{libname}-devel |
43 |
|
|
Summary: Development files for %{name} |
44 |
blue_prawn |
300592 |
Group: Development/OCaml |
45 |
blue_prawn |
285892 |
Requires: %{libname} = %{version}-%{release} |
46 |
|
|
|
47 |
|
|
%description -n %{libname}-devel |
48 |
|
|
This package contains native libraries files for developing |
49 |
|
|
applications with %{name}. |
50 |
|
|
|
51 |
|
|
%prep |
52 |
blue_prawn |
301531 |
%setup -q -n mascot-%{version} |
53 |
|
|
%patch0 -p1 |
54 |
blue_prawn |
285892 |
|
55 |
|
|
%build |
56 |
|
|
sh configure |
57 |
|
|
make all |
58 |
|
|
make doc |
59 |
blue_prawn |
285927 |
mv doc manual |
60 |
blue_prawn |
285892 |
|
61 |
malo |
394690 |
# Fix META file |
62 |
|
|
sed -i 's/mascot/mascotLibrary/g' META |
63 |
|
|
|
64 |
blue_prawn |
285892 |
%check |
65 |
|
|
make tests |
66 |
|
|
|
67 |
|
|
%install |
68 |
|
|
rm -rf %{buildroot} |
69 |
|
|
export DESTDIR=%{buildroot} |
70 |
|
|
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml |
71 |
|
|
mkdir -p $OCAMLFIND_DESTDIR/mascot |
72 |
|
|
make install PATH_OCAMLFIND="/usr/bin/ocamlfind" |
73 |
|
|
|
74 |
|
|
# make an easier command line invocation |
75 |
|
|
install -d -m 755 %{buildroot}/%{_bindir} |
76 |
|
|
pushd %{buildroot}%{_bindir}/ |
77 |
|
|
ln -s \ |
78 |
|
|
%{_libdir}/ocaml/mascot/mascot.native \ |
79 |
|
|
mascot |
80 |
|
|
popd |
81 |
|
|
|
82 |
blue_prawn |
285927 |
mkdir -p %{buildroot}%{_mandir}/man1 |
83 |
|
|
cp %{SOURCE1} %{buildroot}%{_mandir}/man1/mascot.1 |
84 |
|
|
cp %{SOURCE2} . |
85 |
|
|
|
86 |
blue_prawn |
285892 |
%files |
87 |
|
|
%doc README COPYING CHANGES FEATURES VERSION |
88 |
blue_prawn |
285927 |
%doc manual/ |
89 |
|
|
%doc example.conf |
90 |
blue_prawn |
285892 |
%dir %{_libdir}/ocaml/mascot |
91 |
|
|
%{_libdir}/ocaml/mascot/mascot.byte |
92 |
|
|
%{_libdir}/ocaml/mascot/mascot.native |
93 |
|
|
%{_bindir}/mascot |
94 |
blue_prawn |
285927 |
%{_mandir}/man1/mascot.1* |
95 |
blue_prawn |
285892 |
|
96 |
|
|
%files -n %{libname} |
97 |
|
|
%doc tests/ |
98 |
|
|
%doc ocamldoc/ |
99 |
malo |
394690 |
%{_libdir}/ocaml/mascot/META |
100 |
blue_prawn |
285892 |
%{_libdir}/ocaml/mascot/*.cmi |
101 |
|
|
%{_libdir}/ocaml/mascot/*.cmo |
102 |
|
|
|
103 |
|
|
%files -n %{libname}-devel |
104 |
|
|
%{_libdir}/ocaml/mascot/*.cmx |
105 |
|
|
%{_libdir}/ocaml/mascot/*.o |