diff --git a/anda/lib/libappimage/anda.hcl b/anda/lib/libappimage/anda.hcl new file mode 100644 index 0000000000..f1349b730c --- /dev/null +++ b/anda/lib/libappimage/anda.hcl @@ -0,0 +1,5 @@ +project "pkg" { + rpm { + spec = "libappimage.spec" + } +} \ No newline at end of file diff --git a/anda/lib/libappimage/libappimage.spec b/anda/lib/libappimage/libappimage.spec new file mode 100644 index 0000000000..323d4db2dc --- /dev/null +++ b/anda/lib/libappimage/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 +-