3 %bcond_without ocaml_opt # native optimized binaries (bytecode is always built)
5 # not yet available on x32 (ocaml 4.02.1), update when upstream will support it
6 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
7 %undefine with_ocaml_opt
10 Summary: Code style checker for Jane Street Packages
11 Summary(pl.UTF-8): Sprawdzanie stylu kodu dla pakietów Jane Street
12 Name: ocaml-ppx_js_style
17 #Source0Download: https://github.com/janestreet/ppx_js_style/tags
18 Source0: https://github.com/janestreet/ppx_js_style/archive/v%{version}/ppx_js_style-%{version}.tar.gz
19 # Source0-md5: 2d79afa4f954aeafb81b64ecfc11c3fb
20 URL: https://github.com/janestreet/ppx_js_style
21 BuildRequires: ocaml >= 1:4.04.2
22 BuildRequires: ocaml-base-devel >= 0.14
23 BuildRequires: ocaml-base-devel < 0.15
24 BuildRequires: ocaml-dune >= 2.0.0
25 BuildRequires: ocaml-octavius-devel
26 BuildRequires: ocaml-ppxlib-devel >= 0.11.0
27 %requires_eq ocaml-runtime
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define debug_package %{nil}
33 ppx_js_style is an identity ppx rewriter that enforces Jane Street
36 This package contains files needed to run bytecode executables using
39 %description -l pl.UTF-8
40 ppx_js_style to identycznościowy moduł przepisujący ppx, wymuszający
41 styl kodowania Jane Street.
43 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
44 używających biblioteki ppx_js_style.
47 Summary: Code style checker for Jane Street Packages - development part
48 Summary(pl.UTF-8): Sprawdzanie stylu kodu dla pakietów Jane Street - część programistyczna
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
52 Requires: ocaml-base-devel >= 0.14
53 Requires: ocaml-octavius-devel
54 Requires: ocaml-ppxlib-devel >= 0.11.0
57 This package contains files needed to develop OCaml programs using
60 %description devel -l pl.UTF-8
61 Pakiet ten zawiera pliki niezbędne do tworzenia programów w OCamlu
62 używających biblioteki ppx_js_style.
65 %setup -q -n ppx_js_style-%{version}
71 rm -rf $RPM_BUILD_ROOT
73 dune install --destdir=$RPM_BUILD_ROOT
76 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/ppx_js_style/*.ml
78 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/ppx_js_style
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc CHANGES.md LICENSE.md README.md
86 %dir %{_libdir}/ocaml/ppx_js_style
87 %attr(755,root,root) %{_libdir}/ocaml/ppx_js_style/ppx.exe
88 %{_libdir}/ocaml/ppx_js_style/META
89 %{_libdir}/ocaml/ppx_js_style/*.cma
91 %attr(755,root,root) %{_libdir}/ocaml/ppx_js_style/*.cmxs
95 %defattr(644,root,root,755)
96 %{_libdir}/ocaml/ppx_js_style/*.cmi
97 %{_libdir}/ocaml/ppx_js_style/*.cmt
98 %{_libdir}/ocaml/ppx_js_style/*.cmti
99 %{_libdir}/ocaml/ppx_js_style/*.mli
100 %if %{with ocaml_opt}
101 %{_libdir}/ocaml/ppx_js_style/ppx_js_style.a
102 %{_libdir}/ocaml/ppx_js_style/*.cmx
103 %{_libdir}/ocaml/ppx_js_style/*.cmxa
105 %{_libdir}/ocaml/ppx_js_style/dune-package
106 %{_libdir}/ocaml/ppx_js_style/opam