source: projects/specs/trunk/lib/libp/libpwquality/libpwquality-vl.spec @ 9073

Revision 9073, 4.3 KB checked in by Takemikaduchi, 9 years ago (diff)

GNOME 3.14.1

Line 
1Summary: A library for password generation and password quality checking
2Name: libpwquality
3Version: 1.2.4
4Release: 1%{?_dist_release}
5# The package is BSD licensed with option to relicense as GPLv2+
6# - this option is redundant as the BSD license allows that anyway.
7License: BSD or GPLv2+
8Group: System Environment/Base
9Source0: http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-%{version}.tar.bz2
10
11%global _moduledir /%{_lib}/security
12%global _secconfdir %{_sysconfdir}/security
13
14Requires: cracklib-dicts >= 2.8
15Requires: pam
16BuildRequires: cracklib
17BuildRequires: gettext
18BuildRequires: pam-devel
19BuildRequires: python-devel
20
21URL: http://libpwquality.fedorahosted.org/
22
23# we don't want to provide private python extension libs
24%define __provides_exclude_from ^%{python_sitearch}/.*\.so$.
25
26Vendor: Project Vine
27Distribution: Vine Linux
28
29%description
30This is a library for password quality checks and generation
31of random passwords that pass the checks.
32This library uses the cracklib and cracklib dictionaries
33to perform some of the checks.
34
35%package devel
36Group: Development/Libraries
37Summary: Files needed for developing PAM-aware applications and modules for PAM
38Requires: libpwquality = %{version}-%{release}
39Requires: pkgconfig
40
41%description devel
42Files needed for development of applications using the libpwquality
43library.
44See the pwquality.h header file for the API.
45
46%package -n python-pwquality
47Group: Development/Libraries
48Summary: Python bindings for the libpwquality library
49Requires: libpwquality = %{version}-%{release}
50
51%description -n python-pwquality
52This is pwquality Python module that provides Python bindings
53for the libpwquality library. These bindings can be used
54for easy password quality checking and generation of random
55pronounceable passwords from Python applications.
56
57%prep
58%setup -q
59
60%build
61%configure \
62        --with-securedir=/%{_lib}/security \
63        --with-pythonsitedir=%{python_sitearch} \
64        --disable-static
65
66make %{?_smp_mflags}
67
68%install
69make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
70
71pushd $RPM_BUILD_ROOT%{_libdir}
72mv libpwquality.so.* $RPM_BUILD_ROOT/%{_lib}/
73ln -sf ../../%{_lib}/libpwquality.so.*.* libpwquality.so
74popd
75rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
76rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
77
78%find_lang libpwquality
79
80%check
81# Nothing yet
82
83%post -p /sbin/ldconfig
84
85%postun -p /sbin/ldconfig
86
87%files -f libpwquality.lang
88%defattr(-,root,root,-)
89%doc COPYING README NEWS AUTHORS
90%{_bindir}/pwmake
91%{_bindir}/pwscore
92%{_moduledir}/pam_pwquality.so
93/%{_lib}/libpwquality.so.*
94%config(noreplace) %{_secconfdir}/pwquality.conf
95%{_mandir}/man1/*
96%{_mandir}/man5/*
97%{_mandir}/man8/*
98
99%files devel
100%defattr(-,root,root,-)
101%{_includedir}/pwquality.h
102%{_libdir}/libpwquality.so
103%{_libdir}/pkgconfig/*.pc
104
105%files -n python-pwquality
106%defattr(-,root,root,-)
107%{python_sitearch}/pwquality.so
108
109%changelog
110* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-1
111- new upstream release
112
113* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-2
114- rebuild with VineSeed environment
115
116* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-1
117- new upstream release
118
119* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
120- initial build for Vine Linux
121
122
123* Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1
124- add maxsequence check for too long monotonic character sequence.
125- clarified alternative licensing to GPLv2+.
126- add local_users_only option to skip the pwquality checks for
127  non-locals. (thanks to Stef Walter)
128
129* Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1
130- use rpm built-in filtering of provides (rhbz#830153)
131- remove strain debug fprintf() (rhbz#831567)
132
133* Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
134- fix leak when throwing PWQError exception
135- added pkgconfig file
136- call the simplicity checks before the cracklib check
137- add enforce_for_root option to the PAM module
138- updated translations from Transifex
139
140* Thu Dec  8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1
141- added a few additional password quality checks
142- bugfix in configuration file parsing
143
144* Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
145- added python bindings and documentation
146
147* Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
148- fixes for problems found in review (missing BR on pam-devel,
149  License field, Source URL, Require pam, other cleanups)
150
151* Mon Oct  3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1
152- first spec file for libpwquality
Note: See TracBrowser for help on using the repository browser.