mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-15 16:10:38 +00:00
add libappimage
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "libappimage.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
%global libver 1.0.4-5
|
||||
|
||||
# replace - with ~
|
||||
%global libver_format %(v=%{libver}; sed -e 's/-/~/' <<< $v)
|
||||
|
||||
Name: libappimage
|
||||
|
||||
|
||||
Version: %{libver_format}
|
||||
Release: 1%{?dist}
|
||||
Summary: Implements functionality for dealing with AppImage files
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/AppImageCommunity/libappimage
|
||||
Source0: %{url}/archive/refs/tags/v%{libver}.tar.gz
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: xz-devel
|
||||
BuildRequires: libarchive-devel
|
||||
BuildRequires: fuse-devel
|
||||
BuildRequires: squashfuse-devel
|
||||
BuildRequires: git-core
|
||||
BuildRequires: librsvg2-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 %{name}-%{libver}
|
||||
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DBUILD_TESTING:bool=False \
|
||||
-DUSE_SYSTEM_SQUASHFUSE=ON \
|
||||
-DUSE_SYSTEM_XZ=ON \
|
||||
-DUSE_SYSTEM_LIBARCHIVE=ON \
|
||||
-DUSE_SYSTEM_BOOST=ON
|
||||
%cmake_build
|
||||
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
#find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
|
||||
%{?ldconfig_scriptlets}
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc docs
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/*.a
|
||||
|
||||
%files devel
|
||||
%doc docs
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libdir}/cmake/%{name}/*.cmake
|
||||
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 Cappy Ishihara <cappy@cappuchino.xyz>
|
||||
-
|
||||
Reference in New Issue
Block a user