Summary: NSS library for SecurePass Name: nss-securepass Version: 0.4 Release: 2%{?dist} Source0: https://github.com/garlsecurity/nss_securepass/archive/v%{version}/nss_securepass-v%{version}.tar.gz URL: https://github.com/garlsecurity/nss_securepass License: GPLv2+ BuildRequires: libcurl-devel BuildRequires: pam-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description NSS (Name Service Switch) module for SecurePass SecurePass provides identity management and web single sign-on. %prep %setup -qn nss_securepass-%{version} sed -i 's|-o root -g root||g' Makefile.in %build %if 0%{?rhel} <= 6 %configure --libdir=/%{_lib} %else %configure %endif make %{?_smp_mflags} %install rm -Rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" mkdir -p %{buildroot}/%{_sysconfdir} install -m 644 securepass.conf.template %{buildroot}/etc/securepass.conf %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %if 0%{?rhel} <= 6 /%{_lib}/*.so* /%{_lib}/security/*.so* %else %{_libdir}/*.so* %{_libdir}/security/*.so* %endif %config(noreplace) /etc/securepass.conf %doc README.md %doc securepass.conf.template %if 0%{?rhel} <= 6 %doc LICENSE LICENSE_APACHE2 LICENSE_GNUGPL LICENSE_MIT %else %license LICENSE LICENSE_APACHE2 LICENSE_GNUGPL LICENSE_MIT %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Fri Sep 4 2015 Giuseppe Paterno' 0.4-0 - Aligned with upstream release - Fixed different lib schema between RHEL/CentOS 6 and below and 7 * Sun Aug 16 2015 Giuseppe Paterno' 0.3-2 - Fixes in buildrequires * Tue Aug 11 2015 Giuseppe Paterno' 0.3-1 - Updated 0.3 to have PAM * Wed Feb 11 2015 Giuseppe Paterno' 0.2.2-1 - Sync'ed SPEC with upstream * Tue Feb 10 2015 Giuseppe Paterno' 0.2-5 - Changed to tags in RPM, following now tags upstream - More fixes coming from bug #1162234 * Wed Feb 4 2015 Giuseppe Paterno' 0.2-4 - Converted licenses to Unix format - Modified spec to comply with Fedora rules * Wed Feb 4 2015 Marina Latini 0.2-4 - Fixed LICENSES files permissions - Fixed license identifier accordig to https://spdx.org/licenses/ - Fixed spec name - Added _service file for auto download (Suse OBS) * Thu Jan 29 2015 Giuseppe Paterno' 0.2-3 - More changes to the SPEC for bug #1162234 * Wed Jan 28 2015 Giuseppe Paterno' 0.2-2 - Fixed SPEC files for bug #1162234 * Fri Nov 14 2014 Giuseppe Paterno' 0.2-1 - Fixed lookup from UID - Changed buildroot variable to macro * Fri Nov 7 2014 Giuseppe Paterno' 0.1-1 - First RPM of the SecurePass NSS module