-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get revision number from source archive
- Loading branch information
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,26 +60,24 @@ autoprov: no | |
%{!?nthreads: %global nthreads 1} | ||
%endif | ||
|
||
%if 0%{?xpra_revision_no} | ||
%define revision_no 10.r%{xpra_revision_no} | ||
%else | ||
%define revision_no 10 | ||
%endif | ||
|
||
|
||
Name: %{package_prefix} | ||
Version: 6.0 | ||
Release: %{revision_no}%{?dist} | ||
Summary: Xpra gives you "persistent remote applications" for X. | ||
Group: Networking | ||
License: GPLv2+ and BSD and LGPLv3+ and MIT | ||
URL: https://xpra.org/ | ||
Packager: Antoine Martin <[email protected]> | ||
Vendor: https://xpra.org/ | ||
Source: https://xpra.org/src/xpra-%{version}.tar.xz | ||
#grab the full revision number from the source archive's src_info.py file: | ||
%define revision_no %(tar -OJxf dist/xpra-%{version}.tar.xz xpra-%{version}/xpra/src_info.py | grep -e "^REVISION=" | awk -F= '{print ".r"$2}' 2> /dev/null) | ||
Release: 10%{revision_no}%{?dist} | ||
#rpm falls over itself if we try to make the top-level package noarch: | ||
#BuildArch: noarch | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-root | ||
BuildRequires: tar | ||
BuildRequires: grep | ||
BuildRequires: gawk | ||
BuildRequires: gcc | ||
BuildRequires: gcc-c++ | ||
BuildRequires: %{python3}-Cython | ||
|