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

Revision 9791, 4.5 KB checked in by Takemikaduchi, 8 years ago (diff)

GNOME 3.18.1, BlueZ 5.35, ICU 56.1, Mesa 11.0.4, PulseAudio 7.1, xserver 1.17.4, etc.

Line 
1Summary: A library for password generation and password quality checking
2Name: libpwquality
3Version: 1.3.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
16BuildRequires: cracklib
17BuildRequires: gettext
18BuildRequires: pam-devel
19BuildRequires: python-devel
20
21URL: https://fedorahosted.org/libpwquality/
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
77rm -f $RPM_BUILD_ROOT%{python_sitearch}/pwquality-1.3.0-py2.7.egg-info
78
79%find_lang libpwquality
80
81%check
82# Nothing yet
83
84%post -p /sbin/ldconfig
85
86%postun -p /sbin/ldconfig
87
88%files -f libpwquality.lang
89%defattr(-,root,root,-)
90%doc COPYING README NEWS AUTHORS
91%{_bindir}/pwmake
92%{_bindir}/pwscore
93%{_moduledir}/pam_pwquality.so
94/%{_lib}/libpwquality.so.*
95%config(noreplace) %{_secconfdir}/pwquality.conf
96%{_mandir}/man1/*
97%{_mandir}/man3/*
98%{_mandir}/man5/*
99%{_mandir}/man8/*
100
101%files devel
102%defattr(-,root,root,-)
103%{_includedir}/pwquality.h
104%{_libdir}/libpwquality.so
105%{_libdir}/pkgconfig/*.pc
106
107%files -n python-pwquality
108%defattr(-,root,root,-)
109%{python_sitearch}/pwquality.so
110
111%changelog
112* Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.0-1
113- new upstream release
114
115* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-1
116- new upstream release
117
118* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-2
119- rebuild with VineSeed environment
120
121* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-1
122- new upstream release
123
124* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
125- initial build for Vine Linux
126
127
128* Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1
129- add maxsequence check for too long monotonic character sequence.
130- clarified alternative licensing to GPLv2+.
131- add local_users_only option to skip the pwquality checks for
132  non-locals. (thanks to Stef Walter)
133
134* Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1
135- use rpm built-in filtering of provides (rhbz#830153)
136- remove strain debug fprintf() (rhbz#831567)
137
138* Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
139- fix leak when throwing PWQError exception
140- added pkgconfig file
141- call the simplicity checks before the cracklib check
142- add enforce_for_root option to the PAM module
143- updated translations from Transifex
144
145* Thu Dec  8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1
146- added a few additional password quality checks
147- bugfix in configuration file parsing
148
149* Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
150- added python bindings and documentation
151
152* Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
153- fixes for problems found in review (missing BR on pam-devel,
154  License field, Source URL, Require pam, other cleanups)
155
156* Mon Oct  3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1
157- first spec file for libpwquality
Note: See TracBrowser for help on using the repository browser.