From: Jan Rękorajski Date: Tue, 30 Mar 2021 20:05:28 +0000 (+0200) Subject: - up to 0.6.3 X-Git-Tag: auto/th/ocaml-fileutils-0.6.3-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=c75c8aeb6063dbc22d27a321b26cebd8a776489a;p=packages%2Focaml-fileutils.git - up to 0.6.3 --- diff --git a/no-stdlib-shims.patch b/no-stdlib-shims.patch new file mode 100644 index 0000000..4485a6b --- /dev/null +++ b/no-stdlib-shims.patch @@ -0,0 +1,18 @@ +--- ocaml-fileutils-0.6.3/fileutils.opam~ 2020-07-11 23:21:55.000000000 +0200 ++++ ocaml-fileutils-0.6.3/fileutils.opam 2021-03-30 21:57:08.685770245 +0200 +@@ -16,7 +16,6 @@ + "ocaml" {>= "4.03"} + "base-unix" + "base-bytes" +- "stdlib-shims" + "dune" {>= "1.11.0"} + "ounit" {with-test & >= "2.0.0"} + ] +--- ocaml-fileutils-0.6.3/src/lib/fileutils/dune~ 2020-07-11 23:21:55.000000000 +0200 ++++ ocaml-fileutils-0.6.3/src/lib/fileutils/dune 2021-03-30 21:57:45.986277768 +0200 +@@ -30,4 +30,4 @@ + fileUtilWHICH + unixPath + win32Path) +- (libraries unix bytes stdlib-shims)) ++ (libraries unix bytes)) diff --git a/ocaml-fileutils.spec b/ocaml-fileutils.spec index 91e2cce..472c18c 100644 --- a/ocaml-fileutils.spec +++ b/ocaml-fileutils.spec @@ -5,19 +5,22 @@ %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 %undefine with_ocaml_opt %endif + +%define _enable_debug_packages 0 + Summary: OCaml functions to manipulate real file (POSIX like) and filename Summary(pl.UTF-8): Funkcje OCamla do operacji na (posiksowych) plikach oraz nazwach plików Name: ocaml-fileutils -Version: 0.5.2 +Version: 0.6.3 Release: 1 License: LGPL v2.1+ with OCaml linking exception Group: Libraries -Source0: http://forge.ocamlcore.org/frs/download.php/1695/%{name}-%{version}.tar.gz -# Source0-md5: ea653868e5e7a4a9316f7338b971df62 +Source0: https://github.com/gildor478/ocaml-fileutils/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: e6740a32ea1272d54c738d390dab000c +Patch0: no-stdlib-shims.patch URL: http://forge.ocamlcore.org/projects/ocaml-fileutils BuildRequires: ocaml >= 3.04-7 BuildRequires: ocaml-findlib -BuildRequires: ocaml-ounit %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -32,7 +35,7 @@ Summary: Development files for OCaml fileutils package Summary(pl.UTF-8): Pliki programistyczne pakietu fileutils dla OCamla Group: Development/Libraries Requires: %{name} = %{version}-%{release} -%requires_eq ocaml +%requires_eq ocaml %description devel This package contains libraries and signature files for developing @@ -44,41 +47,29 @@ wykorzystujących pakiet OCamla fileutils. %prep %setup -q +%patch0 -p1 %build -# note: not autoconf configure -./configure \ - --prefix=%{_prefix} \ - --docdir=$(pwd)/doc \ - --override bytecomp_c_compiler "%{__cc} %{rpmcflags} -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC" \ - --override native_c_compiler "%{__cc} %{rpmcflags} -D_FILE_OFFSET_BITS=64 -D_REENTRANT" - -%{__make} all +dune build --verbose %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib/fileutils,stublibs} -%{__make} install \ - OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml - -%{__mv} $RPM_BUILD_ROOT%{_libdir}/ocaml/fileutils/META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/fileutils -cat >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/fileutils/META <