Files
packages/anda/lib/zsync2/zsync2.spec
T
Cappy Ishihara d289d53f26 Attempt to fix AppImage libraries (#643)
* Fix gcm-core and do not strip binaries

* Attempting to fix appimageupdate

* worst patch possible

Signed-off-by: madomado <wboy111@outlook.com>

* patch

Signed-off-by: madomado <wboy111@outlook.com>

* patch fix

Signed-off-by: madomado <wboy111@outlook.com>

* fix files zsync

Signed-off-by: madomado <wboy111@outlook.com>

* remove git hack altogether

* Update zsync2.spec

Signed-off-by: madomado <wboy111@outlook.com>

* fix zsync2 build

* fix libappimageupdate

* remove unnecessary directory stuff, add libqtxdg

---------

Signed-off-by: madomado <wboy111@outlook.com>
Co-authored-by: madomado <wboy111@outlook.com>
2023-07-23 01:05:04 +07:00

82 lines
1.8 KiB
RPMSpec

%global git_commit 1608115705047d6826bcd7b35a6988deaf3dbfec
%global commit_short %(c=%{git_commit}; echo ${c:0:7})
%global libver 2.0.0-alpha-1-20220304.git%{commit_short}
# replace - with ~
%global libver_format %(v=%{libver}; sed 's/-/~/g' <<< $v)
Name: zsync2
Version: %{libver_format}
Release: 1%{?dist}
Summary: A rewrite of the advanced file download/sync tool zsync.
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
BuildRequires: gcc-c++
BuildRequires: curl-devel zlib-devel git-core
BuildRequires: openssl-devel
BuildRequires: libcurl-devel
BuildRequires: libssh-devel
BuildRequires: gtest-devel
BuildRequires: cpr-devel
BuildRequires: libgcrypt-devel
%description
A rewrite of the advanced file download/sync tool zsync.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n zsync2-%{git_commit} -p1
%build
%cmake -DCPR_FORCE_USE_SYSTEM_CURL=ON \
-DUSE_SYSTEM_CURL=ON \
-DUSE_SYSTEM_CPR=ON
%cmake_build
%install
%cmake_install
%{?ldconfig_scriptlets}
%files
%license COPYING
%doc README.md
%{_bindir}/zsync2
%{_bindir}/zsyncmake2
%{_libdir}/*.so*
%files devel
%{_includedir}/*.h
# cmake
%{_libdir}/cmake/zsync2*
# will be packaged separately
%exclude %{_libdir}/pkgconfig/args.pc
%changelog
* Sat Jul 22 2023 Cappy Ishihara <cappy@cappuchino.xyz>
- Initial build