Sisyphus repository
Last update: 2018-10-20 23:10:32 +0400 | SRPMs: 18681 | Sign in or Sign up
en ru uk br
ALT Linux repositories
hide window
Sisyphus: 0.34.4-alt1
p8: 0.34.3-alt0.M80P.1

Group :: System/Servers
Source RPM: oddjob

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR (0/0)   Repocop 

Raw spec file

%define _unpackaged_files_terminate_build 1
%def_with check

Name: oddjob
Version: 0.34.4
Release: alt1
Summary: A D-Bus service which runs odd jobs on behalf of client applications

Group: System/Servers
License: %bsdstyle

Source: %name-%version.tar
Source1: oddjobd.init
Patch: %name-%version-alt.patch


BuildRequires: xmlto
BuildRequires: libdbus-devel
BuildRequires: libxml2-devel
BuildRequires: libpam0-devel
BuildRequires: libselinux-devel
BuildRequires: libsasl2-devel
BuildRequires: libkrb5-devel
BuildRequires: libcom_err-devel
BuildRequires: libsystemd-devel
BuildRequires: libldap-devel

%if_with check
BuildRequires: dbus-tools-gui
BuildRequires: /proc

oddjob is a D-Bus service which performs particular tasks for clients
which connect to it and issue requests using the system-wide message

%package mkhomedir
Summary: An oddjob helper which creates and populates home directories
Group: System/Servers
Requires: %name = %EVR

%description mkhomedir
This package contains the oddjob helper which can be used by the
pam_oddjob_mkhomedir module to create a home directory for a user
at login-time.

%package sample
Summary: A sample oddjob service
Group: System/Servers
Requires: %name = %EVR

%description sample
This package contains a trivial sample oddjob service.

%patch -p1

%configure \
    --disable-static \
    --enable-pie \
    --enable-now \
    --with-selinux-acls \
    --with-selinux-labels \
    --without-python \
    --enable-xml-docs \
    --enable-systemd \
    --disable-sysvinit \


# Make sure we don't needlessly make these docs executable.

chmod -x src/reload src/mkhomedirfor src/mkmyhomedir

# Install initscript

install -Dm0755 %SOURCE1 %buildroot%_initdir/oddjobd

# Sample

install -m644 sample/oddjobd-sample.conf        %buildroot/%_sysconfdir/%{name}d.conf.d/
install -m644 sample/oddjob-sample.conf                %buildroot/%_sysconfdir/dbus-1/system.d/
install -m755 sample/                %buildroot/%_libexecdir/%name/

%make check

%doc *.dtd COPYING NEWS QUICKSTART doc/oddjob.html src/reload
%config(noreplace) %_sysconfdir/dbus-*/system.d/oddjob.conf
%config(noreplace) %_sysconfdir/oddjobd.conf
%dir %_sysconfdir/oddjobd.conf.d
%config(noreplace) %_sysconfdir/oddjobd.conf.d/oddjobd-introspection.conf
%dir %_sysconfdir/%name
%dir %_libexecdir/%name

%files mkhomedir
%doc src/mkhomedirfor src/mkmyhomedir
%config(noreplace) %_sysconfdir/dbus-*/system.d/oddjob-mkhomedir.conf
%config(noreplace) %_sysconfdir/oddjobd.conf.d/oddjobd-mkhomedir.conf

%exclude %_libdir/security/

%files sample
%config %_sysconfdir/dbus-*/system.d/oddjob-sample.conf
%config %_sysconfdir/oddjobd.conf.d/oddjobd-sample.conf

%post_service oddjobd

%preun_service oddjobd

* Wed Oct 10 2018 Stanislav Levin <slev at> 0.34.4-alt1
- 0.34.3 -> 0.34.4.

* Mon Jun 27 2016 Mikhail Efremov <sem at> 0.34.3-alt1
- Initial build.

© 2009–2018 Igor Zubkov