commit 5338aeee0595f68496cf2b5269041e4ecd7d224ee22d53249b76e453a88a3d3b Author: Adrian Schröter Date: Fri May 3 17:19:36 2024 +0200 Sync from SUSE:SLFO:Main ocaml-fileutils revision c1c55fef7775e37a4a9e0c29ad0abd0d diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..964176c --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + testsuite + diff --git a/_service b/_service new file mode 100644 index 0000000..2801400 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + ocaml-fileutils + 324a05938d88c4b645287adbf5ceb74f4ce0daec + git + disable + https://github.com/gildor478/ocaml-fileutils.git + @PARENT_TAG@ + [v]?([^\+]+)(.*) + \1 + + + *.tar + xz + + + diff --git a/ocaml-fileutils-0.6.4.tar.xz b/ocaml-fileutils-0.6.4.tar.xz new file mode 100644 index 0000000..36dc76b --- /dev/null +++ b/ocaml-fileutils-0.6.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f42cb1975ac0627b0fd01d0437947f648ed53e87bef367e429e35937d51a1f42 +size 42008 diff --git a/ocaml-fileutils.changes b/ocaml-fileutils.changes new file mode 100644 index 0000000..e38cc1d --- /dev/null +++ b/ocaml-fileutils.changes @@ -0,0 +1,90 @@ +------------------------------------------------------------------- +Sun Jan 1 01:01:01 UTC 2023 - ohering@suse.de + +- Update to version 0.6.4 + See included CHANGES.md for details + +------------------------------------------------------------------- +Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de + +- Use https URL for github.com + +------------------------------------------------------------------- +Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de + +- remove dependency to ounit via _multibuild + +------------------------------------------------------------------- +Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de + +- Update to version 0.6.3 + See included CHANGES.md for details + +------------------------------------------------------------------- +Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de + +- Require current dune macros + +------------------------------------------------------------------- +Mon Sep 30 12:34:56 UTC 2019 - ohering@suse.de + +- use dune macros from ocaml-rpm-macros + +------------------------------------------------------------------- +Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de + +- Update to version 0.6.1 + +------------------------------------------------------------------- +Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de + +- Use Group: Development/Languages/OCaml + +------------------------------------------------------------------- +Mon Jul 17 20:24:18 UTC 2017 - ohering@suse.de + +- Update to version 0.5.2 + Fix non POSIX behavior of cp with links when "recurse:false". + Test file existence with Unix.LargeFile.lstat in FileUtilRM. + +------------------------------------------------------------------- +Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de + +- Wrap specfile conditionals to fix quilt setup + +------------------------------------------------------------------- +Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de + +- Remove autodeps for pre openSUSE 12.1 releases + +------------------------------------------------------------------- +Mon May 30 06:39:17 UTC 2016 - ohering@suse.de + +- Fix build with ocaml-4.03 (fate#320836) + +------------------------------------------------------------------- +Tue Nov 10 10:18:47 UTC 2015 - ohering@suse.de + +- Add hardcoded Provides for pre 12.1 repos + +------------------------------------------------------------------- +Wed Sep 16 08:34:42 UTC 2015 - ohering@suse.de + +- Update to version 0.5.0 + +------------------------------------------------------------------- +Wed Jun 24 06:56:58 UTC 2015 - olaf@aepfle.de + +- Update License to SUSE-LGPL-2.0-with-linking-exception + +------------------------------------------------------------------- +Mon Dec 8 20:41:50 UTC 2014 - mlatimer@suse.com + +- Update spec file to use ocaml-rpm-macros, remove + ExclusiveArch, and ensure bytecode is built + +------------------------------------------------------------------- +Fri Dec 5 18:02:46 UTC 2014 - mlatimer@suse.com + +- Initial commit using upstream version 0.4.5 + diff --git a/ocaml-fileutils.spec b/ocaml-fileutils.spec new file mode 100644 index 0000000..b19f488 --- /dev/null +++ b/ocaml-fileutils.spec @@ -0,0 +1,97 @@ +# +# spec file for package ocaml-fileutils +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define build_flavor @BUILD_FLAVOR@%nil +%if "%build_flavor" == "testsuite" +%define nsuffix -testsuite +%else +%define nsuffix %nil +%endif + +%define pkg ocaml-fileutils +Name: %pkg%nsuffix +Version: 0.6.4 +Release: 0 +%{?ocaml_preserve_bytecode} +Summary: OCaml library for common file and filename operations +License: SUSE-LGPL-2.0-with-linking-exception +Group: Development/Languages/OCaml +URL: https://opam.ocaml.org/packages/fileutils +Source0: %pkg-%version.tar.xz +BuildRequires: ocaml +BuildRequires: ocaml-dune +BuildRequires: ocaml-rpm-macros >= 20230101 +BuildRequires: ocamlfind(seq) +BuildRequires: ocamlfind(stdlib-shims) +BuildRequires: ocamlfind(str) +BuildRequires: ocamlfind(unix) + +%if "%build_flavor" == "testsuite" +BuildRequires: ocamlfind(fileutils) +BuildRequires: ocamlfind(ounit2) +BuildRequires: ocamlfind(stdlib-shims) +%endif + +%description +This library is intended to provide a basic interface to the most +common file and filename operations. It provides several different +filename functions: reduce, make_absolute, make_relative... It also +enables you to manipulate real files: cp, mv, rm, touch... + +It is separated into two modules: SysUtil and SysPath. The first one +manipulates real files, the second one is made for manipulating +abstract filenames. + +%package devel +Summary: Development files for %name +Group: Development/Languages/OCaml +Requires: %name = %version + +%description devel +The %name-devel package contains libraries and signature files for +developing applications that use %name. + +%prep +%autosetup -p1 -n %pkg-%version + +%build +dune_release_pkgs='fileutils' +%ocaml_dune_setup +%if "%build_flavor" == "" +%ocaml_dune_build +%endif + +%install +%if "%build_flavor" == "" +%ocaml_dune_install +%ocaml_create_file_list +%endif + +%if "%build_flavor" == "testsuite" +%check +%ocaml_dune_test +%endif + +%if "%build_flavor" == "" +%files -f %name.files + +%files devel -f %name.files.devel + +%endif + +%changelog