From bb6f1a74f61118873542c07d9c9daceee510837a Mon Sep 17 00:00:00 2001 From: lijian1 Date: Wed, 11 Dec 2024 01:31:08 +0800 Subject: [PATCH] remove no use code --- caja.spec | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/caja.spec b/caja.spec index bcfa40d..41a6d03 100755 --- a/caja.spec +++ b/caja.spec @@ -1,33 +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.24 # Settings used for build from snapshots. -%{!?rel_build:%global commit ee0a62c8759040d84055425954de1f860bac8652} -%{!?rel_build:%global commit_date 20140223} -%{!?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 ee0a62c8759040d84055425954de1f860bac8652 +%global commit_date 20140223 +%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: caja Summary: File manager for MATE Version: %{branch}.1 -%if 0%{?rel_build} -Release: 12 -%else -Release: 0.15%{?git_rel} -%endif +Release: 13 License: GPLv2+ and LGPLv2+ URL: http://mate-desktop.org # for downloading the tarball use 'spectool -g -R caja.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 Patch0: caja_add-xfce-to-desktop-file-1.25.patch Patch1: 0001-allow-root-to-use-desktop-manager.patch @@ -102,23 +93,12 @@ for developing caja extensions. %prep -%if 0%{?rel_build} %autosetup -p1 -%else -%autosetup -n %{name}-%{commit} -p1 -%endif # disable startup notification sed -i s/StartupNotify=true/StartupNotify=false/g data/caja-computer.desktop.in.in sed -i s/StartupNotify=true/StartupNotify=false/g data/caja-home.desktop.in.in -%if 0%{?rel_build} -#NOCONFIGURE=1 ./autogen.sh -%else # 0%{?rel_build} -# needed for git snapshots -NOCONFIGURE=1 ./autogen.sh -%endif # 0%{?rel_build} - %build %configure \ --disable-static \ @@ -192,6 +172,9 @@ EOF %changelog +* Wed Dec 11 2024 lijian1- 1.24.1-13 +- remove no use code + * Fri Sep 09 2022 liuxinhao - 1.24.1-12 - Apply the last submitted patch -- Gitee