!16 fix build error in openeuler

From: @longcheng01 
Reviewed-by: @tangjie02 
Signed-off-by: @tangjie02
This commit is contained in:
openeuler-ci-bot 2022-07-28 07:55:15 +00:00 committed by Gitee
commit 51693c1fa6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -15,7 +15,7 @@
Name: mate-screensaver
Version: %{branch}.0
%if 0%{?rel_build}
Release: 4
Release: 5
%else
Release: 0.13%{?git_rel}
%endif
@ -114,7 +114,7 @@ desktop-file-install \
%{buildroot}%{_datadir}/applications/screensavers/*.desktop
# fix versioned doc dir
%if 0%{?fedora} > 19 || 0%{?rhel} > 7
%if 0%{?fedora} > 19 || 0%{?rhel} > 7 || 0%{?openEuler}
mkdir -p %{buildroot}%{_datadir}/doc/mate-screensaver
mv %{buildroot}%{_datadir}/doc/mate-screensaver-%{version}/mate-screensaver.html %{buildroot}%{_datadir}/doc/mate-screensaver/mate-screensaver.html
%endif
@ -140,7 +140,7 @@ mv %{buildroot}%{_datadir}/doc/mate-screensaver-%{version}/mate-screensaver.html
%{_datadir}/glib-2.0/schemas/org.mate.screensaver.gschema.xml
%{_datadir}/mate-background-properties/cosmos.xml
%{_datadir}/dbus-1/services/org.mate.ScreenSaver.service
%if 0%{?fedora} > 19 || 0%{?rhel} > 7
%if 0%{?fedora} > 19 || 0%{?rhel} > 7 || 0%{?openEuler}
%{_docdir}/mate-screensaver/mate-screensaver.html
%endif
%{_mandir}/man1/*
@ -150,6 +150,9 @@ mv %{buildroot}%{_datadir}/doc/mate-screensaver-%{version}/mate-screensaver.html
%changelog
* Wed Jul 27 2022 longcheng <longcheng@kylinos.com.cn> - 1.24.0-5
- fix build error in openeuler
* Thu Jul 14 2022 longcheng <longcheng@kylinos.com.cn> - 1.24.0-4
- Modify the require redhats-menus to openEuler-menus
- delete %{?dist}