Skip to content

Latest commit

 

History

History
113 lines (97 loc) · 3.2 KB

dsme.spec

File metadata and controls

113 lines (97 loc) · 3.2 KB
 
May 8, 2013
May 8, 2013
1
2
Name: dsme
Summary: Device State Management Entity
Oct 6, 2021
Oct 6, 2021
3
Version: 0.84.0
May 8, 2013
May 8, 2013
4
5
Release: 0
License: LGPLv2+
Jul 7, 2020
Jul 7, 2020
6
URL: https://git.sailfishos.org/mer-core/dsme
May 8, 2013
May 8, 2013
7
Source0: %{name}-%{version}.tar.gz
Jul 7, 2020
Jul 7, 2020
8
Source1: dsme.service.in
May 8, 2013
May 8, 2013
9
10
Source2: dsme-rpmlintrc
Requires: systemd
Mar 11, 2014
Mar 11, 2014
11
Requires: ngfd
Apr 10, 2018
Apr 10, 2018
12
Requires: libdsme >= 0.66.0
May 8, 2013
May 8, 2013
13
14
15
Requires(preun): systemd
Requires(post): systemd
Requires(postun): systemd
Feb 7, 2014
Feb 7, 2014
16
BuildRequires: pkgconfig(glib-2.0) >= 2.32.0
Oct 6, 2020
Oct 6, 2020
17
BuildRequires: pkgconfig(dbus-1) >= 1.8
Mar 21, 2014
Mar 21, 2014
18
BuildRequires: pkgconfig(libiphb) >= 1.2.0
Apr 10, 2018
Apr 10, 2018
19
BuildRequires: pkgconfig(dsme) >= 0.66.0
May 5, 2017
May 5, 2017
20
BuildRequires: pkgconfig(libsystemd)
May 8, 2013
May 8, 2013
21
BuildRequires: pkgconfig(mce) >= 1.12.3
Dec 1, 2014
Dec 1, 2014
22
BuildRequires: pkgconfig(libngf0) >= 0.24
Sep 24, 2013
Sep 24, 2013
23
24
25
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: automake
May 16, 2019
May 16, 2019
26
BuildRequires: pkgconfig(libcryptsetup)
May 8, 2013
May 8, 2013
27
28
29
30
%description
Device State Management Entity (with debug symbols). This package contains the Device State Management Entity which provides state management features such as service monitoring, process watchdog and inactivity tracking.
Jun 5, 2020
Jun 5, 2020
31
32
33
34
35
36
%package plugin-devel
Summary: Header files required by DSME plugins
%description plugin-devel
Development header files for DSME plugins.
May 23, 2013
May 23, 2013
37
38
39
40
41
42
43
44
45
%package tests
Summary: DSME test cases
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: dbus
%description tests
Test cases and xml test description for DSME
May 8, 2013
May 8, 2013
46
%prep
Jul 7, 2020
Jul 7, 2020
47
%autosetup -n %{name}-%{version}
May 8, 2013
May 8, 2013
48
49
50
%build
unset LD_AS_NEEDED
May 23, 2013
May 23, 2013
51
./verify_version.sh
Mar 22, 2017
Mar 22, 2017
52
53
test -e Makefile || ./autogen.sh
test -e Makefile || (%configure --disable-static \
May 8, 2013
May 8, 2013
54
55
56
57
58
--disable-poweron-timer \
--disable-upstart \
--enable-runlevel \
--enable-systemd \
--enable-pwrkeymonitor \
Feb 8, 2017
Feb 8, 2017
59
--disable-validatorlistener \
Mar 22, 2017
Mar 22, 2017
60
--enable-abootsettings)
May 8, 2013
May 8, 2013
61
Jul 7, 2020
Jul 7, 2020
62
%make_build
May 8, 2013
May 8, 2013
63
64
65
66
67
%install
rm -rf %{buildroot}
%make_install
Mar 22, 2017
Mar 22, 2017
68
install -d %{buildroot}%{_sysconfdir}/dsme/
Jun 3, 2015
Jun 3, 2015
69
install -D -m 644 reboot-via-dsme.sh %{buildroot}/etc/profile.d/reboot-via-dsme.sh
Jul 7, 2020
Jul 7, 2020
70
71
72
73
install -d %{buildroot}%{_unitdir}
sed -e "s|@LIBDIR@|%{_libdir}|g" %{SOURCE1} > %{buildroot}%{_unitdir}/%{name}.service
install -d %{buildroot}%{_unitdir}/multi-user.target.wants/
ln -s ../%{name}.service %{buildroot}%{_unitdir}/multi-user.target.wants/%{name}.service
May 8, 2013
May 8, 2013
74
75
install -d %{buildroot}/var/lib/dsme
[ ! -f %{buildroot}/var/lib/dsme/alarm_queue_status ] && echo 0 > %{buildroot}/var/lib/dsme/alarm_queue_status
Feb 2, 2021
Feb 2, 2021
76
install -D -m755 preinit/set_system_time %{buildroot}/usr/lib/startup/preinit/set_system_time
May 8, 2013
May 8, 2013
77
78
79
%preun
if [ "$1" -eq 0 ]; then
Feb 6, 2014
Feb 6, 2014
80
systemctl stop %{name}.service || :
May 8, 2013
May 8, 2013
81
82
83
fi
%post
Feb 6, 2014
Feb 6, 2014
84
85
systemctl daemon-reload || :
systemctl reload-or-try-restart %{name}.service || :
May 8, 2013
May 8, 2013
86
87
%postun
Feb 6, 2014
Feb 6, 2014
88
systemctl daemon-reload || :
May 8, 2013
May 8, 2013
89
90
91
%files
%defattr(-,root,root,-)
Sep 15, 2014
Sep 15, 2014
92
%dir %{_libdir}/dsme
May 8, 2013
May 8, 2013
93
94
%{_libdir}/dsme/*
%attr(755,root,root)%{_sbindir}/*
Jan 16, 2019
Jan 16, 2019
95
%dir %{_sysconfdir}/dsme
May 8, 2013
May 8, 2013
96
%config %{_sysconfdir}/dbus-1/system.d/dsme.conf
Jan 16, 2019
Jan 16, 2019
97
%license debian/copyright COPYING
Jul 7, 2020
Jul 7, 2020
98
99
%{_unitdir}/%{name}.service
%{_unitdir}/multi-user.target.wants/%{name}.service
May 8, 2013
May 8, 2013
100
101
/var/lib/dsme
%config(noreplace) /var/lib/dsme/alarm_queue_status
Jun 3, 2015
Jun 3, 2015
102
/etc/profile.d/reboot-via-dsme.sh
Feb 2, 2021
Feb 2, 2021
103
/usr/lib/startup/preinit/set_system_time
May 23, 2013
May 23, 2013
104
Jun 5, 2020
Jun 5, 2020
105
106
107
108
109
110
%files plugin-devel
%defattr(-,root,root,-)
%dir %{_includedir}/dsme-plugin
%{_includedir}/dsme-plugin/*.h
%{_libdir}/pkgconfig/dsme-plugin.pc
May 23, 2013
May 23, 2013
111
112
%files tests
%defattr(-,root,root,-)
Jan 16, 2019
Jan 16, 2019
113
/opt/tests/dsme-tests