]>
Commit | Line | Data |
---|---|---|
9a8297c1 ER |
1 | # |
2 | # Conditional build: | |
1b424bbb | 3 | %bcond_without ocaml_opt # build opt (native code) |
9a8297c1 | 4 | |
5e584f63 | 5 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 |
4d420fba JR |
6 | %undefine with_ocaml_opt |
7 | %endif | |
c75c8aeb JR |
8 | |
9 | %define _enable_debug_packages 0 | |
10 | ||
bb728fc4 JB |
11 | Summary: OCaml functions to manipulate real file (POSIX like) and filename |
12 | Summary(pl.UTF-8): Funkcje OCamla do operacji na (posiksowych) plikach oraz nazwach plików | |
13 | Name: ocaml-fileutils | |
c75c8aeb | 14 | Version: 0.6.3 |
5e584f63 | 15 | Release: 1 |
bb728fc4 JB |
16 | License: LGPL v2.1+ with OCaml linking exception |
17 | Group: Libraries | |
c75c8aeb JR |
18 | Source0: https://github.com/gildor478/ocaml-fileutils/archive/v%{version}/%{name}-%{version}.tar.gz |
19 | # Source0-md5: e6740a32ea1272d54c738d390dab000c | |
20 | Patch0: no-stdlib-shims.patch | |
bb728fc4 JB |
21 | URL: http://forge.ocamlcore.org/projects/ocaml-fileutils |
22 | BuildRequires: ocaml >= 3.04-7 | |
23 | BuildRequires: ocaml-findlib | |
68299a8d | 24 | %requires_eq ocaml-runtime |
bb728fc4 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Functions to manipulate real file (POSIX like) and filename. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Funkcje do operacji na (posiksowych) plikach oraz nazwach plików. | |
32 | ||
68299a8d JB |
33 | %package devel |
34 | Summary: Development files for OCaml fileutils package | |
35 | Summary(pl.UTF-8): Pliki programistyczne pakietu fileutils dla OCamla | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
c75c8aeb | 38 | %requires_eq ocaml |
68299a8d JB |
39 | |
40 | %description devel | |
41 | This package contains libraries and signature files for developing | |
42 | applications that use OCaml fileutils package. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji | |
46 | wykorzystujących pakiet OCamla fileutils. | |
47 | ||
bb728fc4 JB |
48 | %prep |
49 | %setup -q | |
c75c8aeb | 50 | %patch0 -p1 |
bb728fc4 JB |
51 | |
52 | %build | |
c75c8aeb | 53 | dune build --verbose |
bb728fc4 JB |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib/fileutils,stublibs} | |
58 | ||
c75c8aeb | 59 | dune install --destdir=$RPM_BUILD_ROOT |
5e584f63 | 60 | |
bb728fc4 JB |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
c75c8aeb | 66 | %doc CHANGES.md README.md |
bb728fc4 | 67 | %dir %{_libdir}/ocaml/fileutils |
c75c8aeb JR |
68 | %{_libdir}/ocaml/fileutils/META |
69 | %dir %{_libdir}/ocaml/fileutils/str | |
68299a8d JB |
70 | %if %{with ocaml_opt} |
71 | %attr(755,root,root) %{_libdir}/ocaml/fileutils/fileutils*.cmxs | |
c75c8aeb | 72 | %attr(755,root,root) %{_libdir}/ocaml/fileutils/str/*.cmxs |
68299a8d | 73 | %endif |
1b424bbb | 74 | %{_libdir}/ocaml/fileutils/fileutils*.cma |
68299a8d JB |
75 | %{_libdir}/ocaml/site-lib/fileutils |
76 | ||
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %{_libdir}/ocaml/fileutils/*.cmi | |
c75c8aeb JR |
80 | %{_libdir}/ocaml/fileutils/*.cmt |
81 | %{_libdir}/ocaml/fileutils/*.cmti | |
82 | %{_libdir}/ocaml/fileutils/*.mli | |
4d420fba | 83 | %if %{with ocaml_opt} |
9a8297c1 | 84 | %{_libdir}/ocaml/fileutils/*.cmx |
1b424bbb JB |
85 | %{_libdir}/ocaml/fileutils/fileutils*.a |
86 | %{_libdir}/ocaml/fileutils/fileutils*.cmxa | |
c75c8aeb JR |
87 | %{_libdir}/ocaml/fileutils/str/*.cmx |
88 | %{_libdir}/ocaml/fileutils/str/*.a | |
89 | %{_libdir}/ocaml/fileutils/str/*.cmxa | |
9a8297c1 | 90 | %endif |
c75c8aeb JR |
91 | %{_libdir}/ocaml/fileutils/dune-package |
92 | %{_libdir}/ocaml/fileutils/opam | |
93 | %{_libdir}/ocaml/fileutils/.private | |
94 | %{_libdir}/ocaml/fileutils/str/*.cmi | |
95 | %{_libdir}/ocaml/fileutils/str/*.cmt | |
96 | %{_libdir}/ocaml/fileutils/str/*.cma |