- Obsoletes: ocaml-x11graphics*
[packages/ocaml-graphics.git] / ocaml-graphics.spec
CommitLineData
ff88e9e1
JR
1#
2# Conditional build:
3%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
4
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
8%endif
9
10%if %{without ocaml_opt}
11%define _enable_debug_packages 0
12%endif
13
14%define module graphics
15Summary: Portable drawing primitives for OCaml
0fcfed96 16Summary(pl.UTF-8): Przenośne funkcje rysujące dla OCamla
ff88e9e1
JR
17Name: ocaml-%{module}
18Version: 5.1.1
19Release: 1
0fcfed96 20License: LGPL v2 with exceptions
db890840 21Group: Libraries
ff88e9e1
JR
22Source0: https://github.com/ocaml/graphics/releases/download/%{version}/%{module}-%{version}.tbz
23# Source0-md5: bc127b5da919b61f4c928a6657c88886
24URL: https://github.com/ocaml/graphics
25BuildRequires: ocaml >= 4.09.0
26BuildRequires: ocaml-dune-devel >= 2.1
27BuildRequires: xorg-lib-libX11-devel
28%requires_eq ocaml-runtime
67efd4ed 29Obsoletes: ocaml-x11graphics < 1:4.09
ff88e9e1
JR
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33The graphics library provides a set of portable drawing primitives.
34Drawing takes place in a separate window that is created when
35Graphics.open_graph is called.
36
0fcfed96
JB
37%description -l pl.UTF-8
38Biblioteka graphics dostarcza zbiór przenośnych funkcji rysujących.
39Rysowanie jest wykonywane w osobnym oknie, tworzonym przy wywołaniu
40Graphics.open_graph.
41
42%package devel
43Summary: Development files for graphics library
44Summary(pl.UTF-8): Pliki programistyczne biblioteki graphics
db890840 45Group: Development/Libraries
ff88e9e1
JR
46Requires: %{name} = %{version}-%{release}
47Requires: xorg-lib-libX11-devel
67efd4ed 48Obsoletes: ocaml-x11graphics-devel < 1:4.09
ff88e9e1 49
0fcfed96
JB
50%description devel
51This package contains libraries and signature files for developing
52applications that use OCaml graphics library.
53
54%description devel -l pl.UTF-8
55Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
56wykorzystujących bibliotekę OCamla graphics.
ff88e9e1
JR
57
58%prep
59%setup -q -n %{module}-%{version}
60
61%build
62dune build %{?_smp_mflags} --display=verbose
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67dune install --destdir=$RPM_BUILD_ROOT
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%files
73%defattr(644,root,root,755)
74%doc CHANGES.md README.md
75%dir %{_libdir}/ocaml/%{module}
76%{_libdir}/ocaml/%{module}/META
77%{_libdir}/ocaml/%{module}/*.cma
78%{_libdir}/ocaml/%{module}/*.cmi
79%if %{with ocaml_opt}
80%attr(755,root,root) %{_libdir}/ocaml/%{module}/*.cmxs
81%endif
82%{_libdir}/ocaml/stublibs/dllgraphics_stubs.so
83
84%files devel
85%defattr(644,root,root,755)
86%{_libdir}/ocaml/%{module}/dune-package
87%{_libdir}/ocaml/%{module}/opam
ff88e9e1 88%{_libdir}/ocaml/%{module}/*.a
8a35dd05 89%if %{with ocaml_opt}
ff88e9e1
JR
90%{_libdir}/ocaml/%{module}/*.cmx
91%{_libdir}/ocaml/%{module}/*.cmxa
92%endif
93%{_libdir}/ocaml/%{module}/*.cmt
94%{_libdir}/ocaml/%{module}/*.cmti
95%{_libdir}/ocaml/%{module}/*.mli
This page took 0.053072 seconds and 4 git commands to generate.