From 57f62de477f0f43d7245de59dc12cea8af146ffc Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 23 May 2024 11:27:39 -0600 Subject: [PATCH] Simplify with %bcond - Add VCS field --- ocaml-calendar.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ocaml-calendar.spec b/ocaml-calendar.spec index cd4297d..c539496 100644 --- a/ocaml-calendar.spec +++ b/ocaml-calendar.spec @@ -6,13 +6,9 @@ ExcludeArch: %{ix86} %endif # ocaml-alcotest requires ocaml-astring, ocaml-cmdliner, ocaml-fmt, and ocaml-uutf, -# none of which are otherwise needed for building the OCaml-depenedent packages +# none of which are otherwise needed for building the OCaml-dependent packages # found in RHEL and ELN. We want to avoid the extra dependencies there. -%if 0%{?rhel} -%bcond_with tests -%else -%bcond_without tests -%endif +%bcond tests %[!0%{?rhel}] Name: ocaml-calendar Version: 3.0.0 @@ -21,7 +17,8 @@ Summary: Objective Caml library for managing dates and times License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception URL: https://ocaml-community.github.io/calendar/ -Source0: https://github.com/ocaml-community/calendar/archive/v%{version}/calendar-%{version}.tar.gz +VCS: https://github.com/ocaml-community/calendar +Source0: %{vcs}/archive/v%{version}/calendar-%{version}.tar.gz BuildRequires: ocaml >= 4.03 BuildRequires: ocaml-dune >= 1.0 @@ -75,6 +72,10 @@ developing applications that use %{name}. %changelog +* Thu May 23 2024 Jerry James - 3.0.0-8 +- Simplify with %%bcond +- Add VCS field + * Thu Jan 25 2024 Fedora Release Engineering - 3.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild