pam_csync/pam_csync.spec

95 lines
2.5 KiB
RPMSpec

#
# spec file for package pam_csync (Version 0.41.93)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pam_csync
BuildRequires: cmake libcsync-devel libiniparser-devel pam-devel
License: GPL v2 or later
Group: System/Libraries
Version: 0.41.93
Release: 1
Summary: A PAM module for roaming home directories
Url: http://www.csync.org/
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a PAM module to provide roaming home directories for a user
session. The authentication module verifies the identity of a user and
triggers a synchronization with the server on the first login and the
last logout.
Authors:
--------
Andreas Schneider <mail@cynapses.org>
%prep
%setup -q
%build
if test ! -d "build"; then
mkdir build
fi
pushd build
CFLAGS="%{optflags} -g" \
CXXFLAGS="%{optflags} -g" \
cmake \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
%if %{_lib} == lib64
-DLIB_SUFFIX=64 \
%endif
%{_builddir}/%{name}-%{version}
%__make %{?jobs:-j%jobs} VERBOSE=1
popd build
%install
pushd build
make DESTDIR=%{buildroot} install
popd build
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
/%{_lib}/security/pam_csync.so
%dir %{_sysconfdir}/security
%config(noreplace) %{_sysconfdir}/security/pam_csync.conf
%{_mandir}/man?/pam_csync.*
%changelog
* Wed Sep 10 2008 anschneider@suse.de
- update to version 0.42.0 beta1
+ Fixed return codes of the forked child process
+ Code cleanups
* Mon Aug 18 2008 anschneider@suse.de
- update to version 0.42.0 alpha 2
+ improved manpage
+ fixed some build warnings
+ fixed return values
* Mon Jul 14 2008 anschneider@suse.de
- Set the right license in the spec file
* Mon Jun 23 2008 rlihm@suse.de
- Initial package (version 0.42.0 alpha1)