Skip to content

Commit

Permalink
Add new files for systemd --user
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Oct 3, 2019
1 parent 693fabb commit e9e35e7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
8 changes: 6 additions & 2 deletions liri-power-manager/liri-power-manager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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(libsystemd)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(gio-2.0) >= 2.31.0
Expand Down Expand Up @@ -41,7 +42,9 @@ settings module to configure power consumption settings.
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_liri} ..
%{cmake_liri} \
-DINSTALL_SYSTEMDUSERUNITDIR:PATH=%{_userunitdir} \
..
popd
make %{?_smp_mflags} -C %{_target_platform}

Expand Down Expand Up @@ -69,4 +72,5 @@ fi
%{_datadir}/liri-settings/translations/modules/power_*.qm
%{_datadir}/liri-shell/indicators/power/
%{_qt5_qmldir}/Liri/Power/
%{_qt5_plugindir}/liri/sessionmodules/libpower.so
%{_qt5_plugindir}/liri/daemon/libpower.so
%{_userunitdir}/liri-*
12 changes: 12 additions & 0 deletions liri-session/liri-session.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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(libsystemd)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: cmake(Qt5GSettings)
Expand Down Expand Up @@ -48,6 +49,7 @@ mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_liri} \
-DINSTALL_SYSTEMDUSERUNITDIR:PATH=%{_userunitdir} \
-DINSTALL_SYSTEMDUSERGENERATORSDIR:PATH=%{_systemdusergeneratordir} \
..
popd
make %{?_smp_mflags} -C %{_target_platform}
Expand All @@ -72,16 +74,26 @@ fi
%license LICENSE.LGPLv3
%doc AUTHORS.md README.md
%{_bindir}/liri-session
%{_bindir}/liri-session-ctl
%{_sysconfdir}/xdg/menus/*
%{_datadir}/wayland-sessions/*
%{_datadir}/desktop-directories/*
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/dbus-1/services/io.liri.*.service
%{_libdir}/libLiri1Daemon.so.*
%{_libdir}/libLiri1Session.so.*
%{_qt5_plugindir}/liri/daemon/liblocale.so
%{_liri_libexecdir}/liri-daemon
%{_liri_libexecdir}/liri-launcher
%{_userunitdir}/liri-*
%{_systemdusergeneratordir}/liri-*


%files devel
%{_includedir}/LiriDaemon/
%{_libdir}/libLiri1Daemon.so
%{_libdir}/cmake/Liri1Daemon/
%{_libdir}/pkgconfig/Liri1Daemon.pc
%{_includedir}/LiriSession/
%{_libdir}/libLiri1Session.so
%{_libdir}/cmake/Liri1Session/
Expand Down
3 changes: 2 additions & 1 deletion liri-shell/liri-shell.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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(libsystemd)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
Expand Down Expand Up @@ -98,7 +99,7 @@ fi
%doc AUTHORS.md README.md
%{_datadir}/liri-shell/
%{_datadir}/glib-2.0/schemas/*
%{_userunitdir}/*
%{_userunitdir}/liri-*
%{_liri_libexecdir}/liri-shell
%{_liri_libexecdir}/liri-shell-helper
%{_qt5_qmldir}/Liri/Launcher/
Expand Down

0 comments on commit e9e35e7

Please sign in to comment.