Accepting request 499800 from OBS:AppImage

preparing for factory submission.

OBS-URL: https://build.opensuse.org/request/show/499800
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/appimaged?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2017-05-31 17:47:52 +00:00 committed by Git OBS Bridge
commit 0b7bfd171b
8 changed files with 204 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4223eda6f44ef80df75518735635c58094901725b6d959fdf80b4cc29c32ed68
size 1286668

5
AppImageKit.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: AppImageKit
version: 9~pre.1495805837.d05eac1
mtime: 1495805837
commit: d05eac10463913df288ed2a044f013f4464f60ca

21
_service Normal file
View File

@ -0,0 +1,21 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/probonopd/AppImageKit.git</param>
<param name="revision">appimagetool/master</param>
<param name="versionprefix">9~pre</param>
<param name="submodules">enable</param>
<param name="scm">git</param>
</service>
<service mode="disabled" name="set_version" />
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="download_url" mode="disabled">
<param name="protocol">https</param>
<param name="host">raw.githubusercontent.com</param>
<param name="path">/mikix/deb2snap/master/src/preload.c</param>
</service>
</services>

32
appimaged.changes Normal file
View File

@ -0,0 +1,32 @@
-------------------------------------------------------------------
Tue May 30 12:23:38 UTC 2017 - adrian@suse.de
- prepare for factory submission
-------------------------------------------------------------------
Mon Feb 27 07:37:46 UTC 2017 - adrian@suse.de
- update to version 8
- package it in a way to make it usable for rpm2appimage for OBS
-------------------------------------------------------------------
Tue Jan 24 18:11:11 UTC 2017 - jengelh@inai.de
- Resolve some typographical issues in description.
Use %setup's options instead of tar.
-------------------------------------------------------------------
Tue Jan 24 11:57:18 UTC 2017 - i@marguerite.su
- packaging as native distro package instead of appimage
- add a systemd per-user service appimaged.service
- add mkappimagedir script to create skeleton AppImage.Dir
for the end users.
-------------------------------------------------------------------
Tue Dec 20 10:09:03 UTC 2016 - i@marguerite.su
- initial version
- add appimagekit-abuild.patch

12
appimaged.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=AppImage daemon
After=basic.target
[Service]
ExecStart=/usr/bin/appimaged
Restart=always
RestartSec=5s
StartLimitInterval=0
[Install]
WantedBy=graphical.target

107
appimaged.spec Normal file
View File

@ -0,0 +1,107 @@
#
# spec file for package
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: appimaged
Version: 9~pre.1495805837.d05eac1
Release: 0
License: MIT
Url: http://www.appimage.org
Summary: Daemon handles (un)registering AppImages with the system
Group: System/Daemons
Source0: AppImageKit-%version.tar.xz
Source1: appimaged.service
BuildRequires: glib2-devel libpng-devel
BuildRequires: inotify-tools-devel
BuildRequires: cairo-devel
BuildRequires: fuse-devel
BuildRequires: xz-devel
BuildRequires: libarchive-devel
BuildRequires: openssl-devel
BuildRequires: squashfs
BuildRequires: libtool
BuildRequires: autoconf
BuildRequires: automake
Requires: zsync
%description
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).
%prep
%setup -q -n AppImageKit-%version
sed -i -e s,^version=.*,version=%version, build.sh
%build
export PATH=$PWD/bin:$PATH
cd squashfuse
patch -p1 < ../squashfuse.patch
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoreconf -fi || true # Errors out, but the following succeeds then?
autoconf
sed -i '/PKG_CHECK_MODULES.*/,/,:./d' configure # https://github.com/vasi/squashfuse/issues/12
./configure --disable-demo --disable-high-level --without-lzo --without-lz4
make
cd ..
CC=gcc
$CC -std=gnu99 -o appimaged -I./squashfuse/ ./getsection.c ./notify.c ./elf.c ./appimaged.c \
-D_FILE_OFFSET_BITS=64 -DHAVE_LIBARCHIVE3=0 -DVERSION_NUMBER=\"%version\" \
./squashfuse/.libs/libsquashfuse.a ./squashfuse/.libs/libfuseprivate.a \
-Wl,-Bdynamic -linotifytools -larchive \
-Wl,--as-needed \
$(pkg-config --cflags --libs glib-2.0) \
$(pkg-config --cflags --libs gio-2.0) \
$(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
$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 systemd per user service
mkdir -p %{buildroot}%{_userunitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_userunitdir}/appimaged.service
%post
%systemd_user_post appimaged.service
%preun
%systemd_user_preun appimaged.service
%postun
%systemd_user_postun appimaged.service
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/appimage.digest
%{_bindir}/appimage.validate
%{_bindir}/appimaged
%{_userunitdir}/appimaged.service