Files
packages/anda/lib/libappimage/libappimage.spec
T
madomado 9bbe91be03 fix(lint): * (#577)
* fix(lint): prismlauncher* fluent-icon-theme

* fix(lint): fix lints for 6 packages (#578)

* fix(lint): fix rpmlint lints for youki package

* fix(lint): fix rpmlint lints for xdg-desktop-portal-pantheon

* fix(lint): fix rpmlint lints for wingpanel package

* fix(lint): fix rpmlint lints for wingpanel-indicator-sound package

* fix(lint): fix rpmlint lints for wingpanel-indicator-session package

* fix(lint): fix rpmlint lints for wingpanel-indicator-power package

* fix(lint): *

* fix random typos

* feat: revert anda/desktops

* fix: armcord-bin authy blahaj

* fix: ...

anki authy discord~ aya~sound groovy kotlin libappimage qt5-pim

* fix: ...

qdjango moby-buildx nim-nightly nim system76-scheduler unity-scope-home
kondo pop-launcher fuc graalvm vala-lint-nightly

* fix: armcord-bin authy blahaj groovy

* fix: ...

libappimage moby0buildx nim-nightly nim system76-scheduler subatomic

* fix blahaj

* fix: kondo

* fix: libappimage moby-buildx system76-scheduler nim-nightly

* fix: subatomic

* fix: subatomic

* fix: nim

* Update anki.spec

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

* fix: libappimage nim-nightly

* fix: moby-buildx subatomic

* fix: moby-buildx subatomic

---------

Signed-off-by: madomado <wboy111@outlook.com>
Co-authored-by: HTGAzureX1212 <39023054+HTG-YT@users.noreply.github.com>
2023-06-19 10:34:00 -03:00

91 lines
1.9 KiB
RPMSpec

%global libver 1.0.4
# replace - with ~
%global libver_format %(v=%{libver}; sed -e 's/-/~/' <<< $v)
Name: libappimage
Version: %{libver_format}
Release: 2%{?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
BuildRequires: boost-devel
BuildRequires: wget
BuildRequires: xxd
BuildRequires: desktop-file-utils
%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}
echo "#include <cstdint>" > a.h
cat src/libappimage/utils/hashlib.h >> a.h
mv a.h src/libappimage/utils/hashlib.h
%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 %buildroot -name '*.bat' -exec rm -f {} ';' &
find %buildroot -name '.gitignore' -exec rm -f {} ';' &
wait
%{?ldconfig_scriptlets}
%files
%license LICENSE
%doc docs
%{_libdir}/*.so.*
%files devel
%doc docs
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/%{name}/*.cmake
%{_libdir}/*.a
%changelog
* Tue Oct 25 2022 Cappy Ishihara <cappy@cappuchino.xyz> - 1.0.4~5-1
- Initial package.