-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoddjob-gpupdate.spec
66 lines (50 loc) · 1.4 KB
/
oddjob-gpupdate.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
%define _unpackaged_files_terminate_build 1
Name: oddjob-gpupdate
Version: 0.2.3
Release: alt1
Summary: An oddjob helper which applies group policy objects
Group: System/Servers
License: %bsdstyle
Url: https://github.com/altlinux/oddjob-gpupdate.git
Source: %name-%version.tar
Requires: oddjob
BuildRequires(pre): rpm-build-licenses
BuildRequires: xmlto
BuildRequires: libdbus-devel
BuildRequires: libxml2-devel
BuildRequires: libpam0-devel
BuildRequires: libselinux-devel
%description
This package contains the oddjob helper which can be used by the
pam_oddjob_gpupdate module to applies group policy objects at login-time.
%prep
%setup
%build
%autoreconf
%configure \
--disable-static \
--enable-pie \
--enable-now \
--with-selinux-acls \
--with-selinux-labels
%make_build
%install
%makeinstall_std
mkdir -p %buildroot/%_lib/security
mv %buildroot%_libdir/security/pam_oddjob_gpupdate.so \
%buildroot/%_lib/security/
rm %buildroot%_libdir/security/pam_oddjob_gpupdate.la
%post
%post_service oddjobd
%preun
%preun_service oddjobd
%files
%doc COPYING src/gpupdatefor src/gpupdateforme
%_libexecdir/oddjob/gpupdate
/%_lib/security/pam_oddjob_gpupdate.so
%_mandir/*/pam_oddjob_gpupdate.*
%_mandir/*/oddjob-gpupdate.*
%_mandir/*/oddjobd-gpupdate.*
%config(noreplace) %_sysconfdir/dbus-*/system.d/oddjob-gpupdate.conf
%config(noreplace) %_sysconfdir/oddjobd.conf.d/oddjobd-gpupdate.conf
%changelog