2014-12-08 09:37:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-fileutils
|
|
|
|
#
|
2017-07-17 13:02:14 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ocaml-fileutils
|
2019-09-28 09:54:45 +02:00
|
|
|
Version: 0.6.1
|
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
|
2017-07-19 17:43:25 +02:00
|
|
|
Url: https://github.com/gildor478/ocaml-fileutils
|
2019-09-28 09:54:45 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-dune
|
2019-09-30 18:17:21 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20190930
|
2019-09-28 09:54:45 +02:00
|
|
|
BuildRequires: ocamlfind(bigarray)
|
|
|
|
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
|
|
|
|
|
|
|
%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}
|
2017-07-25 15:22:15 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2016-06-16 12:31:01 +02:00
|
|
|
Requires: %{name} = %{version}
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2019-09-28 09:54:45 +02:00
|
|
|
%autosetup -p1
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%build
|
2019-09-28 09:54:45 +02:00
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%install
|
2019-09-28 09:54:45 +02:00
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%check
|
2019-09-28 09:59:55 +02:00
|
|
|
%ocaml_dune_test || : make check failed
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2019-09-28 09:54:45 +02:00
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
2014-12-08 09:37:17 +01:00
|
|
|
|
2019-09-28 09:54:45 +02:00
|
|
|
%files devel -f %{name}.files.devel
|
2014-12-08 09:37:17 +01:00
|
|
|
|
|
|
|
%changelog
|