From 65393559c3bc0cc5b2eeb4123ab130ac94913e24 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Fri, 31 May 2019 03:42:57 +0200 Subject: [PATCH] Add liri-session --- liri-session/.sourceinfo | 2 + liri-session/liri-session.spec | 69 ++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 liri-session/.sourceinfo create mode 100644 liri-session/liri-session.spec diff --git a/liri-session/.sourceinfo b/liri-session/.sourceinfo new file mode 100644 index 0000000..b51c05c --- /dev/null +++ b/liri-session/.sourceinfo @@ -0,0 +1,2 @@ +giturl=git://github.com/lirios/session.git +gitbranch=develop diff --git a/liri-session/liri-session.spec b/liri-session/liri-session.spec new file mode 100644 index 0000000..a7229e9 --- /dev/null +++ b/liri-session/liri-session.spec @@ -0,0 +1,69 @@ +%global snapdate @DATE@ +%global snaphash @HASH@ + +%define modulename session + +Name: liri-%{modulename} +Summary: Liri session +Version: @VERSION@ +Release: 0.1%{?snaphash:.%{snapdate}git%(echo %{snaphash} | cut -c -13)}%{?dist} +License: GPLv3+ +URL: https://liri.io +Source0: https://github.com/lirios/%{modulename}/%{?snaphash:archive}%{!?snaphash:releases/download}/%{?snaphash}%{!?snaphash:v%{version}}/%{name}-%{?snaphash}%{!?snaphash:%{version}}.tar.gz + +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: cmake(Qt5GSettings) +BuildRequires: cmake(Liri1Xdg) +BuildRequires: git +BuildRequires: liri-rpm-macros + +Requires: dbus +Requires: qt5-qttools +Requires: qt5-qtgsettings +Requires: libliri +Requires: liri-shell +Requires: dconf + +%description +This is the Liri session manager. + + +%prep +%setup -q -n %{?snaphash:%{modulename}-%{snaphash}}%{!?snaphash:%{name}-%{version}} + + +%build +mkdir -p %{_target_platform} +pushd %{_target_platform} +%{cmake_liri} \ + -DINSTALL_SYSTEMDUSERUNITDIR:PATH=%{_userunitdir} \ +.. +popd +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%posttrans +glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : + + +%postun +if [ $1 -eq 0 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi + + +%files +%license LICENSE.GPLv3 +%license LICENSE.LGPLv3 +%doc AUTHORS.md README.md +%{_bindir}/liri-session +%{_sysconfdir}/xdg/menus/* +%{_datadir}/wayland-sessions/* +%{_datadir}/desktop-directories/* +%{_datadir}/glib-2.0/schemas/*