this version remove %{?dist} and rel_build

This commit is contained in:
zhuhongbo 2024-12-12 10:36:32 +08:00
parent 955d8578d8
commit 299b5fa2d6

View File

@ -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 <zhuhongbo@uniontech.com> - 1.22.2-3
- this version remove %{?dist} and rel_build
* Wed Oct 02 2019 Wolfgang Ulbrich <fedora@raveit.de> - 1.22.2-2
- use https://github.com/mate-desktop/mate-control-center/commit/3e4ccaf
- force uniform size of icons in shell