Simplify with %bcond

- Add VCS field
This commit is contained in:
Jerry James 2024-05-23 11:27:39 -06:00
parent cbbff9ed00
commit 57f62de477
1 changed files with 8 additions and 7 deletions

View File

@ -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 <loganjerry@gmail.com> - 3.0.0-8
- Simplify with %%bcond
- Add VCS field
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild