1
0

Accepting request 967050 from devel:languages:ocaml

- Use https URL for github.com

OBS-URL: https://build.opensuse.org/request/show/967050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-fileutils?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2022-04-06 19:51:13 +00:00 committed by Git OBS Bridge
commit 8f0a7e7096
4 changed files with 27 additions and 22 deletions

View File

@ -4,7 +4,7 @@
<param name="revision">9ad8d2ee342c551391f2a9873de01982d24b36d5</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">git://github.com/gildor478/ocaml-fileutils.git</param>
<param name="url">https://github.com/gildor478/ocaml-fileutils.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5b8a842afe39d9340000fcaf2735e49a8b098377d965c14b53826c0ac21c0f4
size 42128
oid sha256:23b323534bbe57f092ac5f09e2f0f444c8daf600bce01e15f601620b7d29241e
size 42204

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
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

View File

@ -1,7 +1,7 @@
#
# spec file for package ocaml-fileutils
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,15 +16,15 @@
#
%define build_flavor @BUILD_FLAVOR@%{nil}
%if "%{build_flavor}" == "testsuite"
%define build_flavor @BUILD_FLAVOR@%nil
%if "%build_flavor" == "testsuite"
%define nsuffix -testsuite
%else
%define nsuffix %{nil}
%define nsuffix %nil
%endif
%define pkg ocaml-fileutils
Name: %{pkg}%{nsuffix}
Name: %pkg%nsuffix
Version: 0.6.3
Release: 0
%{?ocaml_preserve_bytecode}
@ -32,16 +32,16 @@ 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
Source0: %pkg-%version.tar.xz
BuildRequires: ocaml
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20210121
BuildRequires: ocaml-rpm-macros >= 20220222
BuildRequires: ocamlfind(bytes)
BuildRequires: ocamlfind(stdlib-shims)
BuildRequires: ocamlfind(str)
BuildRequires: ocamlfind(unix)
%if "%{build_flavor}" == "testsuite"
%if "%build_flavor" == "testsuite"
BuildRequires: ocamlfind(fileutils)
BuildRequires: ocamlfind(oUnit)
BuildRequires: ocamlfind(stdlib-shims)
@ -58,39 +58,39 @@ manipulates real files, the second one is made for manipulating
abstract filenames.
%package devel
Summary: Development files for %{name}
Summary: Development files for %name
Group: Development/Languages/OCaml
Requires: %{name} = %{version}
Requires: %name = %version
%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
The %name-devel package contains libraries and signature files for
developing applications that use %name.
%prep
%autosetup -p1 -n %{pkg}-%{version}
%autosetup -p1 -n %pkg-%version
%build
dune_release_pkgs='fileutils'
%ocaml_dune_setup
%if "%{build_flavor}" == ""
%if "%build_flavor" == ""
%ocaml_dune_build
%endif
%install
%if "%{build_flavor}" == ""
%if "%build_flavor" == ""
%ocaml_dune_install
%ocaml_create_file_list
%endif
%if "%{build_flavor}" == "testsuite"
%if "%build_flavor" == "testsuite"
%check
%ocaml_dune_test
%endif
%if "%{build_flavor}" == ""
%files -f %{name}.files
%if "%build_flavor" == ""
%files -f %name.files
%files devel -f %{name}.files.devel
%files devel -f %name.files.devel
%endif