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

Revision 6890, 4.0 KB checked in by Takemikaduchi, 12 years ago (diff)

GNOME-3.6.0 & Cinnamon-1.6.1

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