2014-12-08 09:37:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-fileutils
|
|
|
|
#
|
2022-04-04 17:26:00 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-12-08 09:37:17 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-11-01 23:41:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-12-08 09:37:17 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-04-04 17:24:54 +02:00
|
|
|
%define build_flavor @BUILD_FLAVOR@%nil
|
|
|
|
%if "%build_flavor" == "testsuite"
|
2021-01-30 12:39:48 +01:00
|
|
|
%define nsuffix -testsuite
|
|
|
|
%else
|
2022-04-04 17:24:54 +02:00
|
|
|
%define nsuffix %nil
|
2021-01-30 12:39:48 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%define pkg ocaml-fileutils
|
2022-04-04 17:24:54 +02:00
|
|
|
Name: %pkg%nsuffix
|
2020-08-21 19:21:37 +02:00
|
|
|
Version: 0.6.3
|
2014-12-08 09:37:17 +01:00
|
|
|
Release: 0
|
2017-07-25 10:40:47 +02:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2014-12-08 09:37:17 +01:00
|
|
|
Summary: OCaml library for common file and filename operations
|
2015-06-24 08:57:18 +02:00
|
|
|
License: SUSE-LGPL-2.0-with-linking-exception
|
2017-07-25 15:22:15 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2020-08-21 19:21:37 +02:00
|
|
|
URL: https://opam.ocaml.org/packages/fileutils
|
2022-04-04 17:24:54 +02:00
|
|
|
Source0: %pkg-%version.tar.xz
|
2019-09-28 09:54:45 +02:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-dune
|
2022-04-04 17:26:00 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20220222
|
2019-11-01 23:41:58 +01:00
|
|
|
BuildRequires: ocamlfind(bytes)
|
2019-09-28 09:54:45 +02:00
|
|
|
BuildRequires: ocamlfind(stdlib-shims)
|
2016-06-13 21:38:34 +02:00
|
|
|
BuildRequires: ocamlfind(str)
|
|
|
|
BuildRequires: ocamlfind(unix)
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2022-04-04 17:24:54 +02:00
|
|
|
%if "%build_flavor" == "testsuite"
|
2021-01-30 12:39:48 +01:00
|
|
|
BuildRequires: ocamlfind(fileutils)
|
|
|
|
BuildRequires: ocamlfind(oUnit)
|
|
|
|
BuildRequires: ocamlfind(stdlib-shims)
|
|
|
|
%endif
|
|
|
|
|
2014-12-08 09:37:17 +01:00
|
|
|
%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
|
2022-04-04 17:24:54 +02:00
|
|
|
Summary: Development files for %name
|
2017-07-25 15:22:15 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2022-04-04 17:24:54 +02:00
|
|
|
Requires: %name = %version
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%description devel
|
2022-04-04 17:24:54 +02:00
|
|
|
The %name-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %name.
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%prep
|
2022-04-04 17:24:54 +02:00
|
|
|
%autosetup -p1 -n %pkg-%version
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%build
|
2019-11-01 23:41:58 +01:00
|
|
|
dune_release_pkgs='fileutils'
|
2019-09-28 09:54:45 +02:00
|
|
|
%ocaml_dune_setup
|
2022-04-04 17:24:54 +02:00
|
|
|
%if "%build_flavor" == ""
|
2019-09-28 09:54:45 +02:00
|
|
|
%ocaml_dune_build
|
2021-01-30 12:39:48 +01:00
|
|
|
%endif
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%install
|
2022-04-04 17:24:54 +02:00
|
|
|
%if "%build_flavor" == ""
|
2019-09-28 09:54:45 +02:00
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
2021-01-30 12:39:48 +01:00
|
|
|
%endif
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2022-04-04 17:24:54 +02:00
|
|
|
%if "%build_flavor" == "testsuite"
|
2014-12-08 09:37:17 +01:00
|
|
|
%check
|
2019-11-01 23:41:58 +01:00
|
|
|
%ocaml_dune_test
|
2021-01-30 12:39:48 +01:00
|
|
|
%endif
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2022-04-04 17:24:54 +02:00
|
|
|
%if "%build_flavor" == ""
|
|
|
|
%files -f %name.files
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2022-04-04 17:24:54 +02:00
|
|
|
%files devel -f %name.files.devel
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2021-01-30 12:39:48 +01:00
|
|
|
%endif
|
|
|
|
|
2014-12-08 09:37:17 +01:00
|
|
|
%changelog
|