diff --git a/mate-user-guide.spec b/mate-user-guide.spec index cfd8edcfe316cf7916ecb940a86d84476b4903b9..a3d068d73e23dc98c332edc04562a0e64dd53949 100644 --- a/mate-user-guide.spec +++ b/mate-user-guide.spec @@ -1,30 +1,25 @@ -# 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 61aec06d978154fea42f1f42d845fdb710c924f7} -%{!?rel_build:%global commit_date 20150618} -%{!?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 61aec06d978154fea42f1f42d845fdb710c924f7 +%global commit_date 20150618 +%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-user-guide Summary: User Guide for MATE desktop Version: %{branch}.1 -Release: 1 +Release: 2 License: GPLv2+ URL: http://mate-desktop.org BuildArch: noarch # for downloading the tarball use 'spectool -g -R mate-user-guide.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: make BuildRequires: mate-common @@ -36,19 +31,7 @@ Requires: yelp Documentations for MATE desktop. %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} -# for snapshots -# needed for git snapshots -NOCONFIGURE=1 ./autogen.sh -%endif # 0%{?rel_build} %build %configure @@ -72,6 +55,9 @@ $RPM_BUILD_ROOT%{_datadir}/applications/mate-user-guide.desktop %changelog +* Tue Dec 03 2024 zhangtao - 1.26.1-2 +- remove no use code + * Mon Aug 19 2024 yueyaoqiang - 1.26.1-1 - update to 1.26.1