From 16bcc19c011bfe64a4c67fc22d956ac7ea97e7bb Mon Sep 17 00:00:00 2001 From: yueyaoqiang Date: Mon, 21 Oct 2024 17:29:04 +0800 Subject: [PATCH] remove no use code --- mate-session-manager.spec | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/mate-session-manager.spec b/mate-session-manager.spec index 3eb9ce1..f35b080 100644 --- a/mate-session-manager.spec +++ b/mate-session-manager.spec @@ -1,29 +1,24 @@ -# Conditional for release and snapshot builds. Uncomment for release-builds. -%global rel_build 1 - # This is needed, because src-url contains branched part of versioning-scheme. %global branch 1.26 # Settings used for build from snapshots. -%{!?rel_build:%global commit af58c2ecd98fe68360635f0e566b81e4b8c7be4d} -%{!?rel_build:%global commit_date 20151006} -%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})} -%{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}} -%{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}} -%{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz} +%global commit af58c2ecd98fe68360635f0e566b81e4b8c7be4d +%global commit_date 20151006 +%global shortcommit %(c=%{commit};echo ${c:0:7}) +%global git_ver git%{commit_date}-%{shortcommit} +%global git_rel .git%{commit_date}.%{shortcommit} +%global git_tar %{name}-%{version}-%{git_ver}.tar.xz Name: mate-session-manager Summary: MATE Desktop session manager License: GPLv2+ Version: %{branch}.1 -Release: 1 +Release: 2 URL: http://mate-desktop.org # for downloading the tarball use 'spectool -g -R mate-session-manager.spec' # Source for release-builds. -%{?rel_build:Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz} -# Source for snapshot-builds. -%{!?rel_build:Source0: http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}} +Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz BuildRequires: dbus-glib-devel BuildRequires: desktop-file-utils @@ -55,19 +50,7 @@ manager such as MDM. It will load all necessary applications for a full-featured user session. %prep -%if 0%{?rel_build} %autosetup -p1 -%else -%autosetup -n %{name}-%{commit} -p1 -%endif - -%if 0%{?rel_build} -# for releases -#NOCONFIGURE=1 ./autogen.sh -%else -# needed for git snapshots -NOCONFIGURE=1 ./autogen.sh -%endif %build %configure \ @@ -112,6 +95,9 @@ desktop-file-install \ %changelog +* Mon Oct 21 2024 yueyaoqiang - 1.26.1-2 +- remove no use code + * Mon Aug 19 2024 yueyaoqiang - 1.26.1-1 - update to 1.26.1 -- Gitee