From 299b5fa2d6c32848ccac74abb317786d12339b38 Mon Sep 17 00:00:00 2001 From: zhuhongbo Date: Thu, 12 Dec 2024 10:36:32 +0800 Subject: [PATCH] this version remove %{?dist} and rel_build --- mate-control-center.spec | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/mate-control-center.spec b/mate-control-center.spec index 01b5229..6e0f735 100644 --- a/mate-control-center.spec +++ b/mate-control-center.spec @@ -1,35 +1,15 @@ -# 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.22 -# Settings used for build from snapshots. -%{!?rel_build:%global commit 922d0e0219b1bedcece8624e4b5fd7e15e7a9bd5} -%{!?rel_build:%global commit_date 20131113} -%{!?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} - Name: mate-control-center Version: %{branch}.2 -%if 0%{?rel_build} -Release: 2%{?dist} -%else -Release: 0.13%{?git_rel}%{?dist} -%endif +Release: 3 Summary: MATE Desktop control-center License: LGPLv2+ and GPLv2+ URL: http://mate-desktop.org # for downloading the tarball use 'spectool -g -R mate-control-center.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}} - -# https://github.com/mate-desktop/mate-control-center/commit/3e4ccaf +Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz Patch1: mate-control-center_0001-icons-Force-uniform-size-on-icons-505.patch BuildRequires: accountsservice-devel @@ -79,18 +59,7 @@ Development files for mate-control-center %prep -%if 0%{?rel_build} %autosetup -p1 -%else -%autosetup -n %{name}-%{commit} -p1 -%endif - -%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 \ @@ -156,6 +125,9 @@ rm %{buildroot}%{_datadir}/applications/mimeinfo.cache %changelog +* Wed Dec 11 2024 zhuhongbo - 1.22.2-3 +- this version remove %{?dist} and rel_build + * Wed Oct 02 2019 Wolfgang Ulbrich - 1.22.2-2 - use https://github.com/mate-desktop/mate-control-center/commit/3e4ccaf - force uniform size of icons in shell