fixes dist macros

epel9
Germano Massullo 2 years ago
parent 4e4e5a2543
commit 9ab8964de1

@ -57,10 +57,10 @@ BuildRequires: libyubikey-devel
%if 0%{?el8} %if 0%{?el8}
BuildRequires: minizip1.2-devel BuildRequires: minizip1.2-devel
%endif %endif
%if 0%{?fedora} >= 38 %if (%{defined fedora} && 0%{?fedora} >= 38)
BuildRequires: minizip-compat-devel BuildRequires: minizip-compat-devel
%endif %endif
%if (0%{?el9}) || (0%{?fedora} < 38) %if (0%{?el9}) || (%{defined fedora} && 0%{?fedora} < 38)
BuildRequires: minizip-devel BuildRequires: minizip-devel
%endif %endif
BuildRequires: pcsc-lite-devel BuildRequires: pcsc-lite-devel
@ -118,7 +118,7 @@ information can be considered as quite safe.
%autosetup -p1 %autosetup -p1
# Older version of appstream-util can't parse some url types # Older version of appstream-util can't parse some url types
%if (0%{?fedora} < 36) || (0%{?el} <= 9) %if (%{defined fedora} && 0%{?fedora} < 36) || (%{defined rhel} && 0%{?rhel} <= 9)
sed -i '/type="vcs-browser"/d' ./share/linux/org.keepassxc.KeePassXC.appdata.xml sed -i '/type="vcs-browser"/d' ./share/linux/org.keepassxc.KeePassXC.appdata.xml
sed -i '/type="contribute"/d' ./share/linux/org.keepassxc.KeePassXC.appdata.xml sed -i '/type="contribute"/d' ./share/linux/org.keepassxc.KeePassXC.appdata.xml
%endif %endif

Loading…
Cancel
Save