From 168596bca28fae875d22646250e637f477242787 Mon Sep 17 00:00:00 2001 From: yangxiaoxuan Date: Tue, 2 Feb 2021 01:12:37 +0800 Subject: [PATCH] spec: add configuration file and vemdor for anolis Signed-off-by: yangxiaoxuan Change-Id: I7ab913f7f76a0f10d896c0902d2093dca662fb7d --- libreoffice.spec | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 44e5e0d..a756b5c 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # This package depends on automagic byte compilation # https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 %global _python_bytecompile_extra 1 @@ -11,11 +12,11 @@ # Should contain any suffix of release tarball name, e.g., -buildfix1. %global libo_buildfix %{nil} # rhbz#715152 state vendor -%if 0%{?rhel} -%global vendoroption --with-vendor="Red Hat, Inc." +%if 0%{?anolis} +%global vendoroption --with-vendor="OpenAnolis Community" %endif %if 0%{?fedora} -%global vendoroption --with-vendor="The Fedora Project" +%global vendoroption --with-vendor="OpenAnolis Community" %endif %global libo_python python3 %global libo_python_executable %{__python3} @@ -54,7 +55,7 @@ Summary: Free Software Productivity Suite Name: libreoffice Epoch: 1 Version: %{libo_version}.2 -Release: 10%{?libo_prerelease}%{?dist} +Release: 10%{?libo_prerelease}%{anolis_release}%{?dist} License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and MPLv2.0 and CC0 URL: http://www.libreoffice.org/ @@ -997,16 +998,16 @@ git config gc.auto 0 # disable auto packing git add -A git commit -q -a -m %{name}-%{version} -#Customize Palette to add Red Hat colours +#Customize Palette to add Anolis colours (head -n -1 extras/source/palettes/standard.soc && \ - echo -e ' - - - - ' && \ - tail -n 1 extras/source/palettes/standard.soc) > redhat.soc -mv -f redhat.soc extras/source/palettes/standard.soc -git commit -q -a -m 'add Red Hat colors to palette' + echo -e ' + + + + ' && \ + tail -n 1 extras/source/palettes/standard.soc) > anolis.soc +mv -f anolis.soc extras/source/palettes/standard.soc +git commit -q -a -m 'add Anolis colors to palette' # apply patches git am %{patches} @@ -2275,6 +2276,9 @@ done %{_includedir}/LibreOfficeKit %changelog +* Mon Apr 18 2022 yangxiaoxuan 1:6.4.7.2-10.0.1 +- Add configuration file and vemdor for Anolis OS + * Mon Feb 07 2022 Caolán McNamara - 1:6.4.7.2-10 - Related: rhbz#2029810 bump n-v-r -- Gitee