/[packages]/cauldron/mascot/current/SPECS/mascot.spec
ViewVC logotype

Contents of /cauldron/mascot/current/SPECS/mascot.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 645708 - (show annotations) (download)
Sun Jul 6 13:03:44 2014 UTC (6 years, 3 months ago) by ovitters
File size: 3082 byte(s)
SILENT remove cleaning buildroot in install
1 %define libname ocaml-mascot-lib
2
3 Name: mascot
4 Version: 1.0
5 Release: %mkrel 5
6 Summary: Style-checker for OCaml sources
7 License: GPL v3
8 Group: Development/OCaml
9 URL: http://mascot.x9c.fr/
10 Source0: http://download.ocamlcore.org/mascot/%{version}/sources/mascot-%{version}.tar.gz
11 Source1: mascot-man-page-%{version}.1
12 Source2: example.conf
13 Patch0: mascot-1.0.fix-build-doc.patch
14 Patch1: mascot-1.0-mageia-fix-ocaml-4.02-build.patch
15 BuildRequires: ocaml-findlib
16 BuildRequires: ocaml-compiler-libs
17 BuildRequires: camlp4-devel
18 Requires: camlp4
19
20 %description
21 Mascot is a style-checker for OCaml sources. It provides checks in various
22 categories: code, documentation, interface, metrics, and typography. The
23 goal of the tool is to allow a (team of) developer(s) to enforce style
24 properties over a source codebase for greater coherency and style
25 uniformity. The tool is highly customizable, allowing one to choose the
26 checks to perform, as well as exceptions to those checks in given files.
27 Moreover, a plugin system allows the developer to add its own checks, and
28 output modes.
29
30 Bundled output modes range from bare text to CheckStyle- and
31 JDepend-compatible XML file in order to allow integration with Jenkins.
32
33
34 %package -n %{libname}
35 Summary: Development files for %{name}
36 Group: Development/OCaml
37 Requires: %{name} = %{version}-%{release}
38 Requires: ocaml-compiler
39 Requires: camlp4-devel
40 Requires: ocaml-compiler-libs
41
42 %description -n %{libname}
43 This package contains libraries and signature files for developing
44 applications with %{name}.
45
46 %package -n %{libname}-devel
47 Summary: Development files for %{name}
48 Group: Development/OCaml
49 Requires: %{libname} = %{version}-%{release}
50
51 %description -n %{libname}-devel
52 This package contains native libraries files for developing
53 applications with %{name}.
54
55 %prep
56 %setup -q -n mascot-%{version}
57 %patch0 -p1
58 %patch1 -p1
59
60 %build
61 sh configure
62 make all
63 make doc
64 mv doc manual
65
66 # Fix META file
67 sed -i 's/mascot/mascotLibrary/g' META
68
69 %check
70 make tests
71
72 %install
73 export DESTDIR=%{buildroot}
74 export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
75 mkdir -p $OCAMLFIND_DESTDIR/mascot
76 make install PATH_OCAMLFIND="/usr/bin/ocamlfind"
77
78 # make an easier command line invocation
79 install -d -m 755 %{buildroot}/%{_bindir}
80 pushd %{buildroot}%{_bindir}/
81 ln -s \
82 %{_libdir}/ocaml/mascot/mascot.native \
83 mascot
84 popd
85
86 mkdir -p %{buildroot}%{_mandir}/man1
87 cp %{SOURCE1} %{buildroot}%{_mandir}/man1/mascot.1
88 cp %{SOURCE2} .
89
90 %files
91 %doc README COPYING CHANGES FEATURES VERSION
92 %doc manual/
93 %doc example.conf
94 %dir %{_libdir}/ocaml/mascot
95 %{_libdir}/ocaml/mascot/mascot.byte
96 %{_libdir}/ocaml/mascot/mascot.native
97 %{_bindir}/mascot
98 %{_mandir}/man1/mascot.1*
99
100 %files -n %{libname}
101 %doc tests/
102 %doc ocamldoc/
103 %{_libdir}/ocaml/mascot/META
104 %{_libdir}/ocaml/mascot/*.cmi
105 %{_libdir}/ocaml/mascot/*.cmo
106
107 %files -n %{libname}-devel
108 %{_libdir}/ocaml/mascot/*.cmx
109 %{_libdir}/ocaml/mascot/*.o

  ViewVC Help
Powered by ViewVC 1.1.28