1 |
blue_prawn |
285892 |
%define libname ocaml-mascot-lib |
2 |
|
|
|
3 |
|
|
Name: mascot |
4 |
blue_prawn |
301531 |
Version: 1.0 |
5 |
malo |
457978 |
Release: %mkrel 4 |
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 |
malo |
457978 |
Requires: camlp4 |
18 |
blue_prawn |
285892 |
|
19 |
|
|
%description |
20 |
|
|
Mascot is a style-checker for OCaml sources. It provides checks in various |
21 |
|
|
categories: code, documentation, interface, metrics, and typography. The |
22 |
|
|
goal of the tool is to allow a (team of) developer(s) to enforce style |
23 |
|
|
properties over a source codebase for greater coherency and style |
24 |
|
|
uniformity. The tool is highly customizable, allowing one to choose the |
25 |
|
|
checks to perform, as well as exceptions to those checks in given files. |
26 |
|
|
Moreover, a plugin system allows the developer to add its own checks, and |
27 |
|
|
output modes. |
28 |
|
|
|
29 |
|
|
Bundled output modes range from bare text to CheckStyle- and |
30 |
|
|
JDepend-compatible XML file in order to allow integration with Jenkins. |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
%package -n %{libname} |
34 |
|
|
Summary: Development files for %{name} |
35 |
blue_prawn |
300592 |
Group: Development/OCaml |
36 |
blue_prawn |
285892 |
Requires: %{name} = %{version}-%{release} |
37 |
blue_prawn |
285905 |
Requires: ocaml-compiler |
38 |
malo |
457978 |
Requires: camlp4-devel |
39 |
|
|
Requires: ocaml-compiler-libs |
40 |
blue_prawn |
285892 |
|
41 |
|
|
%description -n %{libname} |
42 |
|
|
This package contains libraries and signature files for developing |
43 |
|
|
applications with %{name}. |
44 |
|
|
|
45 |
|
|
%package -n %{libname}-devel |
46 |
|
|
Summary: Development files for %{name} |
47 |
blue_prawn |
300592 |
Group: Development/OCaml |
48 |
blue_prawn |
285892 |
Requires: %{libname} = %{version}-%{release} |
49 |
|
|
|
50 |
|
|
%description -n %{libname}-devel |
51 |
|
|
This package contains native libraries files for developing |
52 |
|
|
applications with %{name}. |
53 |
|
|
|
54 |
|
|
%prep |
55 |
blue_prawn |
301531 |
%setup -q -n mascot-%{version} |
56 |
|
|
%patch0 -p1 |
57 |
blue_prawn |
285892 |
|
58 |
|
|
%build |
59 |
|
|
sh configure |
60 |
|
|
make all |
61 |
|
|
make doc |
62 |
blue_prawn |
285927 |
mv doc manual |
63 |
blue_prawn |
285892 |
|
64 |
malo |
394690 |
# Fix META file |
65 |
|
|
sed -i 's/mascot/mascotLibrary/g' META |
66 |
|
|
|
67 |
blue_prawn |
285892 |
%check |
68 |
|
|
make tests |
69 |
|
|
|
70 |
|
|
%install |
71 |
|
|
rm -rf %{buildroot} |
72 |
|
|
export DESTDIR=%{buildroot} |
73 |
|
|
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml |
74 |
|
|
mkdir -p $OCAMLFIND_DESTDIR/mascot |
75 |
|
|
make install PATH_OCAMLFIND="/usr/bin/ocamlfind" |
76 |
|
|
|
77 |
|
|
# make an easier command line invocation |
78 |
|
|
install -d -m 755 %{buildroot}/%{_bindir} |
79 |
|
|
pushd %{buildroot}%{_bindir}/ |
80 |
|
|
ln -s \ |
81 |
|
|
%{_libdir}/ocaml/mascot/mascot.native \ |
82 |
|
|
mascot |
83 |
|
|
popd |
84 |
|
|
|
85 |
blue_prawn |
285927 |
mkdir -p %{buildroot}%{_mandir}/man1 |
86 |
|
|
cp %{SOURCE1} %{buildroot}%{_mandir}/man1/mascot.1 |
87 |
|
|
cp %{SOURCE2} . |
88 |
|
|
|
89 |
blue_prawn |
285892 |
%files |
90 |
|
|
%doc README COPYING CHANGES FEATURES VERSION |
91 |
blue_prawn |
285927 |
%doc manual/ |
92 |
|
|
%doc example.conf |
93 |
blue_prawn |
285892 |
%dir %{_libdir}/ocaml/mascot |
94 |
|
|
%{_libdir}/ocaml/mascot/mascot.byte |
95 |
|
|
%{_libdir}/ocaml/mascot/mascot.native |
96 |
|
|
%{_bindir}/mascot |
97 |
blue_prawn |
285927 |
%{_mandir}/man1/mascot.1* |
98 |
blue_prawn |
285892 |
|
99 |
|
|
%files -n %{libname} |
100 |
|
|
%doc tests/ |
101 |
|
|
%doc ocamldoc/ |
102 |
malo |
394690 |
%{_libdir}/ocaml/mascot/META |
103 |
blue_prawn |
285892 |
%{_libdir}/ocaml/mascot/*.cmi |
104 |
|
|
%{_libdir}/ocaml/mascot/*.cmo |
105 |
|
|
|
106 |
|
|
%files -n %{libname}-devel |
107 |
|
|
%{_libdir}/ocaml/mascot/*.cmx |
108 |
|
|
%{_libdir}/ocaml/mascot/*.o |