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