mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
bcaf72e5d5
Some files that was included may cause file conflicts with other packages. They have been excluded. Fixes #316
99 lines
2.7 KiB
RPMSpec
99 lines
2.7 KiB
RPMSpec
%global git_commit 0b200115d33257ea0ceab1d03cc25f5b52c6ad77
|
|
|
|
%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: libappimageupdate
|
|
|
|
Version: %{libver_format}
|
|
Release: 2%{?dist}
|
|
Summary: AppImageUpdate lets you update AppImages in a decentral way using information embedded in the AppImage itself.
|
|
|
|
License: MIT
|
|
URL: https://github.com/AppImageCommunity/AppImageUpdate
|
|
#Source0: %%{url}/archive/refs/%%{libver}.tar.gz
|
|
Source0: %{url}/archive/%{git_commit}.tar.gz
|
|
|
|
BuildRequires: make
|
|
BuildRequires: cmake3
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libappimage-devel curl-devel libX11-devel zlib-devel fuse-devel librsvg2-devel cairo-devel git-core
|
|
BuildRequires: nlohmann-json-devel
|
|
BuildRequires: pkgconfig(libgcrypt)
|
|
BuildRequires: pkgconfig(gpgme)
|
|
BuildRequires: pkgconfig(Qt5)
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: inotify-tools-devel
|
|
BuildRequires: argagg-devel
|
|
|
|
%description
|
|
Implements functionality for dealing with AppImage files. It is written in C++ and is using Boost.
|
|
|
|
%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 AppImageUpdate-%{git_commit}
|
|
|
|
git init .
|
|
git remote add origin %{url}
|
|
git fetch origin
|
|
git checkout %{git_commit} --force
|
|
git pull origin %{git_commit} --force
|
|
git submodule update --init --recursive
|
|
|
|
%build
|
|
# add include path for argagg
|
|
%cmake -DBUILD_QT_UI=ON \
|
|
-DBUILD_LIBAPPIMAGEUPDATE_ONLY=ON \
|
|
-DUSE_SYSTEM_LIBAPPIMAGE=ON
|
|
%cmake_build
|
|
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%{?ldconfig_scriptlets}
|
|
|
|
|
|
%files
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.a
|
|
# what is this?
|
|
%exclude %{_bindir}/validate
|
|
%exclude %{_bindir}/curl-config
|
|
%exclude %{_bindir}/zsync2
|
|
%exclude %{_bindir}/zsyncmake2
|
|
|
|
%files devel
|
|
%{_includedir}/{appimage,cpr,zs*.h}
|
|
%exclude %{_includedir}/z{conf,lib}.h
|
|
%exclude %{_includedir}/curl/
|
|
%{_prefix}/lib/cmake/AppImageUpdate/
|
|
/usr/lib/debug/usr/bin/zsync*.debug
|
|
/usr/lib64/cmake/CURL/CURLConfig.cmake
|
|
/usr/lib64/cmake/CURL/CURLConfigVersion.cmake
|
|
/usr/lib64/cmake/CURL/CURLTargets-debug.cmake
|
|
/usr/lib64/cmake/CURL/CURLTargets.cmake
|
|
/usr/lib64/cmake/zsync2/zsync2Config.cmake
|
|
/usr/lib64/cmake/zsync2/zsync2ConfigVersion.cmake
|
|
/usr/lib64/cmake/zsync2/zsync2Targets-debug.cmake
|
|
/usr/lib64/cmake/zsync2/zsync2Targets.cmake
|
|
/usr/lib64/pkgconfig/args.pc
|
|
%exclude /usr/lib64/pkgconfig/libcurl.pc
|
|
%exclude /usr/lib64/pkgconfig/zlib.pc
|
|
|
|
%changelog
|
|
* Tue Oct 25 2022 Cappy Ishihara <cappy@cappuchino.xyz>
|
|
- Initial build
|