Add Conflicts to avoid update/downgrade issues

This commit is contained in:
Sumit Bose 2021-02-20 17:51:03 +01:00
parent 078693fb25
commit 47faff9b58

View File

@ -1,6 +1,6 @@
Name: adcli Name: adcli
Version: 0.9.1 Version: 0.9.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Active Directory enrollment Summary: Active Directory enrollment
License: LGPLv2+ License: LGPLv2+
URL: https://gitlab.freedesktop.org/realmd/adcli URL: https://gitlab.freedesktop.org/realmd/adcli
@ -17,6 +17,7 @@ BuildRequires: xmlto
BuildRequires: make BuildRequires: make
Requires: cyrus-sasl-gssapi Requires: cyrus-sasl-gssapi
Conflicts: adcli-doc < %{version}-%{release}
# adcli no longer has a library of development files # adcli no longer has a library of development files
# the adcli tool itself is to be used by callers # the adcli tool itself is to be used by callers
@ -53,6 +54,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%package doc %package doc
Summary: adcli documentation Summary: adcli documentation
BuildArch: noarch BuildArch: noarch
Conflicts: adcli < %{version}-%{release}
%description doc %description doc
adcli is a tool for joining an Active Directory domain using adcli is a tool for joining an Active Directory domain using
@ -63,6 +65,9 @@ documentation.
%doc %{_datadir}/doc/adcli/* %doc %{_datadir}/doc/adcli/*
%changelog %changelog
* Sat Feb 20 2021 Sumit Bose <sbose@redhat.com> - 0.9.1-2
- Add Conflicts to avoid update/downgrade issues
* Sat Feb 20 2021 Sumit Bose <sbose@redhat.com> - 0.9.1-1 * Sat Feb 20 2021 Sumit Bose <sbose@redhat.com> - 0.9.1-1
- Update to upstream release 0.9.1 - Update to upstream release 0.9.1