1 | %define pkg_version 1.0.1 |
---|
2 | %define pkg_release 1%{?_dist_release} |
---|
3 | %define libdaemon_version 0.14 |
---|
4 | |
---|
5 | Summary: System settings D-Bus service for OpenRC |
---|
6 | Summary(ja): D-Busシステム設定サービス |
---|
7 | Name: openrc-settingsd |
---|
8 | Version: %{pkg_version} |
---|
9 | Release: %{pkg_release} |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | License: GPL2+ |
---|
14 | Group: System Environment/Base |
---|
15 | URL: https://gitweb.gentoo.org/proj/openrc-settingsd.git/ |
---|
16 | Source0: https://dev.gentoo.org/~tetromino/distfiles/openrc-settingsd/openrc-settingsd-%{version}.tar.xz |
---|
17 | Source1: libdaemon-%{libdaemon_version}.tar.gz |
---|
18 | Patch0: openrc-settingsd-vine.patch |
---|
19 | |
---|
20 | BuildRequires: glib2-devel |
---|
21 | BuildRequires: dbus-devel |
---|
22 | BuildRequires: polkit-devel |
---|
23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
24 | |
---|
25 | %description |
---|
26 | Implementation of systemd's settings interface (hostnamed, localed, timedated) for OpenRC |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q -a 1 |
---|
30 | %patch0 -p1 -b .vine |
---|
31 | ln -sf libdaemon-%{libdaemon_version} libdaemon |
---|
32 | |
---|
33 | %build |
---|
34 | autoreconf -ivf |
---|
35 | |
---|
36 | pushd libdaemon-%{libdaemon_version} |
---|
37 | %configure |
---|
38 | %{__make} %{?_smp_mflags} |
---|
39 | popd |
---|
40 | ln -sf libdaemon-%{libdaemon_version}/libdaemon/.libs/libdaemon.a ./ |
---|
41 | |
---|
42 | %configure |
---|
43 | %{__make} %{?_smp_mflags} |
---|
44 | |
---|
45 | |
---|
46 | %install |
---|
47 | %{__rm} -rf %{buildroot} |
---|
48 | %{__make} install DESTDIR=%{buildroot} |
---|
49 | |
---|
50 | rm -rf %{buildroot}%{_sysconfdir}/conf.d |
---|
51 | rm -rf %{buildroot}%{_sysconfdir}/init.d |
---|
52 | |
---|
53 | |
---|
54 | %clean |
---|
55 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
56 | |
---|
57 | |
---|
58 | %files |
---|
59 | %defattr(-,root,root) |
---|
60 | %license COPYING libdaemon/LICENSE |
---|
61 | %doc AUTHORS NEWS README |
---|
62 | %{_sysconfdir}/dbus-1/system.d/* |
---|
63 | %{_libexecdir}/* |
---|
64 | %{_datadir}/openrc-settingsd |
---|
65 | %{_datadir}/polkit-1/actions/* |
---|
66 | %{_datadir}/dbus-1/interfaces/* |
---|
67 | %{_datadir}/dbus-1/system-services/* |
---|
68 | %{_mandir}/man8/* |
---|
69 | |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Fri Jan 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.1-1 |
---|
73 | - initial build for Vine Linux. |
---|