Adrian Schröter 2017-05-31 21:07:16 +00:00 committed by Git OBS Bridge
parent 0b7bfd171b
commit 1254ce4a6f

View File

@ -43,6 +43,9 @@ appimaged is a daemon that handles registering and unregistering AppImages
with the system (e.g., menu entries, icons, MIME types, binary delta updates,
and such).
The package comes also with appimage.validate CLI tool to verify signature
of AppImage files.
%prep
%setup -q -n AppImageKit-%version
@ -75,14 +78,13 @@ $CC -std=gnu99 -o appimaged -I./squashfuse/ ./getsection.c ./notify.c ./elf.c ./
$(pkg-config --cflags --libs cairo) \
-ldl -lpthread -lz -llzma
# basic tools for validation
$CC -o appimage.digest ./getsection.c ./digest.c -Wl,-Bdynamic -lssl -lcrypto -lz -ldl
# basic tool for validation
$CC -o appimage.validate ./getsection.c ./validate.c -Wl,-Bdynamic -lssl -lcrypto \
-Wl,--as-needed $(pkg-config --cflags --libs glib-2.0) -lz -ldl
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 appimaged appimage.digest appimage.validate %{buildroot}%{_bindir}
install -m 0755 appimaged appimage.validate %{buildroot}%{_bindir}
# install systemd per user service
mkdir -p %{buildroot}%{_userunitdir}
@ -100,7 +102,6 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_userunitdir}/appimaged.service
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/appimage.digest
%{_bindir}/appimage.validate
%{_bindir}/appimaged
%{_userunitdir}/appimaged.service