forked from gplll/nss_securepass
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nss-securepass.spec
109 lines (85 loc) · 2.94 KB
/
nss-securepass.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Summary: NSS library for SecurePass
Name: nss-securepass
Version: 0.5
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
%if 0%{?suse_version}
Group: System Environment/Libraries
%endif
%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
* Thu Feb 9 2017 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.5-0
- Aligned with upstream release
- New posix groups support
* Fri Sep 4 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 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' <gpaterno@gpaterno.com> 0.3-2
- Fixes in buildrequires
* Tue Aug 11 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.3-1
- Updated 0.3 to have PAM
* Wed Feb 11 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.2.2-1
- Sync'ed SPEC with upstream
* Tue Feb 10 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.2-5
- Changed to tags in RPM, following now tags upstream
- More fixes coming from bug #1162234
* Wed Feb 4 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.2-4
- Converted licenses to Unix format
- Modified spec to comply with Fedora rules
* Wed Feb 4 2015 Marina Latini <deneb_alpha@opensuse.org> 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' <gpaterno@gpaterno.com> 0.2-3
- More changes to the SPEC for bug #1162234
* Wed Jan 28 2015 Giuseppe Paterno' <gpaterno@garl.ch> 0.2-2
- Fixed SPEC files for bug #1162234
* Fri Nov 14 2014 Giuseppe Paterno' <gpaterno@garl.ch> 0.2-1
- Fixed lookup from UID
- Changed buildroot variable to macro
* Fri Nov 7 2014 Giuseppe Paterno' <gpaterno@garl.ch> 0.1-1
- First RPM of the SecurePass NSS module