mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix: zsync2 (#1170)
* chore(rebuild): zsync2 Signed-off-by: madomado <madonuko@outlook.com> * bump: zsync2 * bump commit to head * disable -Wincompatible-pointer-types Signed-off-by: madomado <madonuko@outlook.com> --------- Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
rpm.global("ver", gh("AppImageCommunity/zsync2"));
|
||||
if rpm.changed() {
|
||||
rpm.global("git_commit", gh_commit("AppImageCommunity/zsync2"));
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
%global git_commit 1608115705047d6826bcd7b35a6988deaf3dbfec
|
||||
%global git_commit 87fb5a0f3c14d3cf35aa6547cc60d099c89ca532
|
||||
|
||||
%global commit_short %(c=%{git_commit}; echo ${c:0:7})
|
||||
|
||||
%global libver 2.0.0-alpha-1-20220304.git%{commit_short}
|
||||
%global ver 2.0.0-alpha-1-20230304
|
||||
%global libver %ver.git%{commit_short}
|
||||
|
||||
# replace - with ~
|
||||
%global libver_format %(v=%{libver}; sed 's/-/~/g' <<< $v)
|
||||
@@ -17,7 +18,6 @@ License: Artistic-2.0
|
||||
URL: https://github.com/AppImageCommunity/zsync2
|
||||
#Source0: %%{url}/archive/refs/%%{libver}.tar.gz
|
||||
Source0: %{url}/archive/%{git_commit}.tar.gz
|
||||
Patch0: https://github.com/AppImageCommunity/zsync2/commit/e57e1fce68194fa920542fd334488de5123e4832.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: cmake3
|
||||
@@ -47,6 +47,7 @@ developing applications that use %{name}.
|
||||
%autosetup -n zsync2-%{git_commit} -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="$CFLAGS -Wno-incompatible-pointer-types"
|
||||
%cmake -DCPR_FORCE_USE_SYSTEM_CURL=ON \
|
||||
-DUSE_SYSTEM_CURL=ON \
|
||||
-DUSE_SYSTEM_CPR=ON
|
||||
|
||||
Reference in New Issue
Block a user