source: projects/specs/trunk/c/cracklib/cracklib-vl.spec @ 8067

Revision 8067, 12.5 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

Line 
1# Reflects the values hard-coded in various Makefile.am's in the source tree.
2%define dictdir %{_datadir}/cracklib
3%define dictpath %{_datadir}/cracklib/pw_dict
4
5Summary: A password-checking library.
6Summary(ja): パスワードチェック用ライブラリ
7Name: cracklib
8Version: 2.8.22
9Release: 1%{?_dist_release}
10Group: System Environment/Libraries
11URL: http://sourceforge.net/projects/cracklib/
12License: LGPLv2+
13
14Source0: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.gz
15
16# Retrieved at 20091201191719Z.
17Source1: http://iweb.dl.sourceforge.net/project/cracklib/cracklib-words/2008-05-07/cracklib-words-20080507.gz
18
19# For man pages.
20Source2: http://ftp.us.debian.org/debian/pool/main/c/cracklib2/cracklib2_2.8.18-1.debian.tar.gz
21
22Source10: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz
23Source11: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Dosref.gz
24Source12: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Ftpsites.gz
25Source13: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Jargon.gz
26Source14: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/common-passwords.txt.gz
27Source15: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/etc-hosts.gz
28Source16: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Movies.gz
29Source17: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Python.gz
30Source18: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Trek.gz
31Source19: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/LCarrol.gz
32Source20: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/Paradise.Lost.gz
33Source21: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/cartoon.gz
34Source22: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/myths-legends.gz
35Source23: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/sf.gz
36Source24: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/shakespeare.gz
37Source25: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/ASSurnames.gz
38Source26: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Congress.gz
39Source27: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Family-Names.gz
40Source28: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Given-Names.gz
41Source29: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/famous.gz
42Source30: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/fast-names.gz
43Source31: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/female-names.gz
44Source32: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/male-names.gz
45Source33: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.french.gz
46Source34: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz
47Source35: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz
48Source36: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz
49
50# No upstream source for this; it came in as a bugzilla attachment.
51Source37: pass_file.gz
52
53Patch1: cracklib-2.8.15-inttypes.patch
54
55Buildroot: %{_tmppath}/%{name}-%{version}-root
56BuildRequires: words, autoconf, automake, gettext, libtool
57Conflicts: cracklib-dicts < 2.8
58Requires: gzip
59
60%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
61
62%description
63CrackLib tests passwords to determine whether they match certain
64security-oriented characteristics, with the purpose of stopping users
65from choosing passwords that are easy to guess. CrackLib performs
66several tests on passwords: it tries to generate words from a username
67and gecos entry and checks those words against the password; it checks
68for simplistic patterns in passwords; and it checks for the password
69in a dictionary.
70
71CrackLib is actually a library containing a particular C function
72which is used to check the password, as well as other C
73functions. CrackLib is not a replacement for a passwd program; it must
74be used in conjunction with an existing passwd program.
75
76Install the cracklib package if you need a program to check users'
77passwords to see if they are at least minimally secure. If you install
78CrackLib, you will also want to install the cracklib-dicts package.
79
80
81%package -n compat32-%{name}
82Summary: A password-checking library.
83Summary(ja): パスワードチェック用ライブラリ
84Group: System Environment/Libraries
85Requires: %{name} = %{version}-%{release}
86
87
88%description -n compat32-%{name}
89CrackLib tests passwords to determine whether they match certain
90security-oriented characteristics, with the purpose of stopping users
91from choosing passwords that are easy to guess. CrackLib performs
92several tests on passwords: it tries to generate words from a username
93and gecos entry and checks those words against the password; it checks
94for simplistic patterns in passwords; and it checks for the password
95in a dictionary.
96
97CrackLib is actually a library containing a particular C function
98which is used to check the password, as well as other C
99functions. CrackLib is not a replacement for a passwd program; it must
100be used in conjunction with an existing passwd program.
101
102Install the cracklib package if you need a program to check users'
103passwords to see if they are at least minimally secure. If you install
104CrackLib, you will also want to install the cracklib-dicts package.
105
106
107%package dicts
108Summary: The standard CrackLib dictionaries.
109Summary(ja): CrackLib 標準辞書
110Group: System Environment/Libraries
111Requires: words >= 2-13
112
113
114%description dicts
115The cracklib-dicts package includes the CrackLib dictionaries.
116CrackLib will need to use the dictionary appropriate to your system,
117which is normally put in /usr/share/dict/words. Cracklib-dicts also
118contains the utilities necessary for the creation of new dictionaries.
119
120If you are installing CrackLib, you should also install cracklib-dicts.
121
122
123%package -n compat32-%{name}-dicts
124Summary: The standard CrackLib dictionaries.
125Summary(ja): CrackLib 標準辞書
126Group: System Environment/Libraries
127Requires: compat32-%{name} = %{version}-%{release}
128Requires: %{name}-dicts    = %{version}-%{release}
129
130
131%description -n compat32-%{name}-dicts
132The cracklib-dicts package includes the CrackLib dictionaries.
133CrackLib will need to use the dictionary appropriate to your system,
134which is normally put in /usr/share/dict/words. Cracklib-dicts also
135contains the utilities necessary for the creation of new dictionaries.
136
137If you are installing CrackLib, you should also install cracklib-dicts.
138
139
140%prep
141%setup -q -a 2
142cp lib/packer.h lib/packer.h.in
143%patch1 -p1 -b .inttypes
144autoreconf -f -i
145mkdir cracklib-dicts
146for dict in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
147            %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} \
148            %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \
149            %{SOURCE25} %{SOURCE26} %{SOURCE27} %{SOURCE28} %{SOURCE29} \
150            %{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} \
151            %{SOURCE35} %{SOURCE36} %{SOURCE37} %{SOURCE1}
152do
153        cp -fv ${dict} cracklib-dicts/
154done
155chmod +x util/cracklib-format
156
157%build
158%configure --with-pic --without-python --with-default-dict=%{dictpath} --disable-static
159make
160
161%install
162[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
163make install DESTDIR=$RPM_BUILD_ROOT
164./util/cracklib-format cracklib-dicts/* | \
165./util/cracklib-packer $RPM_BUILD_ROOT/%{dictpath}
166./util/cracklib-format $RPM_BUILD_ROOT/%{dictdir}/cracklib-small | \
167./util/cracklib-packer $RPM_BUILD_ROOT/%{dictdir}/cracklib-small
168rm -f $RPM_BUILD_ROOT/%{dictdir}/cracklib-small
169
170sed s,/usr/lib/cracklib_dict,%{dictpath},g lib/crack.h > $RPM_BUILD_ROOT/%{_includedir}/crack.h
171ln -s cracklib-format $RPM_BUILD_ROOT/%{_sbindir}/mkdict
172ln -s cracklib-packer $RPM_BUILD_ROOT/%{_sbindir}/packer
173touch $RPM_BUILD_ROOT/top
174
175toprelpath=..
176touch $RPM_BUILD_ROOT/top
177while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$toprelpath/top ; do
178        toprelpath=../$toprelpath
179done
180rm -f $RPM_BUILD_ROOT/top
181if test %{dictpath} != %{_libdir}/cracklib_dict ; then
182ln -s $toprelpath%{dictpath}.hwm $RPM_BUILD_ROOT/%{_libdir}/cracklib_dict.hwm
183ln -s $toprelpath%{dictpath}.pwd $RPM_BUILD_ROOT/%{_libdir}/cracklib_dict.pwd
184ln -s $toprelpath%{dictpath}.pwi $RPM_BUILD_ROOT/%{_libdir}/cracklib_dict.pwi
185fi
186rm -f $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/cracklibmodule.*a
187rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
188
189%find_lang %{name}
190
191
192%clean
193[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
194
195
196%post -p /sbin/ldconfig
197
198%postun -p /sbin/ldconfig
199
200%post -n compat32-%{name} -p /sbin/ldconfig
201
202%postun -n compat32-%{name} -p /sbin/ldconfig
203
204%triggerpostun -p /sbin/ldconfig -- cracklib < 2.7-24
205
206%files -f %{name}.lang
207%defattr(-,root,root)
208%doc README README-WORDS NEWS README-LICENSE AUTHORS
209%{_includedir}/*
210%{_libdir}/libcrack.so*
211#{_libdir}/libcrack.a*
212%dir %{_datadir}/cracklib
213%{_datadir}/cracklib/cracklib.magic
214%{_sbindir}/*cracklib*
215
216
217%files dicts
218%defattr(-,root,root)
219%dir %{_datadir}/cracklib
220%{_datadir}/cracklib/pw_dict.*
221%{_datadir}/cracklib/cracklib-small.*
222%{_libdir}/cracklib_dict.*
223%{_sbindir}/mkdict
224%{_sbindir}/packer
225
226
227%if %{build_compat32}
228%files -n compat32-%{name}
229%defattr(-,root,root)
230%{_libdir}/libcrack.so*
231#{_libdir}/libcrack.a*
232
233
234%files -n compat32-%{name}-dicts
235%defattr(-,root,root)
236%{_libdir}/cracklib_dict.*
237%endif
238
239
240%changelog
241* Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.22-1
242- update to 2.8.22
243- remove Patch2 (cracklib-2.8.12-gettext.patch)
244
245* Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.18-1
246- new upstream release
247
248* Tue May 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.12-3
249- fixed errors rebuilding with libtool-2
250- added Patch3: cracklib-2.8.12-gettext.patch
251
252* Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.12-2
253- spec in utf-8
254
255* Tue May 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.12-1
256- update to 2.8.12, which was relicensed to GPLv2
257
258* Fri Mar 17 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 2.8.6-0vl2
259- updated files section for compat32-* packages
260
261* Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.6-0vl1
262- new upstream release
263- import some changes from FC
264
265* Fri Feb 10 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 2.7-27vl2
266- added compat32-* packages for x86_64 architecture support
267
268* Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.7-27vl1
269- cracklib.spec -> cracklib-vl.spec
270- substantially rebuild
271  * Wed Feb  4 2004 Nalin Dahyabhai <nalin@redhat.com> 2.7-26
272  - update URL (previous page moved) (#114894)
273
274  * Fri Jan 30 2004 Nalin Dahyabhai <nalin@redhat.com> 2.7-25
275  - fix ldconfig invocation in trigger for older versions which included the
276    soname symlink (#114620)
277
278
279* Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.7-19vl1
280- based on 2.7-19 from Rawhide and built for Vine Linux
281- added Japanese summary
282
283* Wed Sep 25 2002 Nalin Dahyabhai <nalin@redhat.com> 2.7-19
284- fix for builds on multilib systems (set DICTPATH properly)
285
286* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
287- automated rebuild
288
289* Sun May 26 2002 Tim Powers <timp@redhat.com>
290- automated rebuild
291
292* Thu May  9 2002 Nalin Dahyabhai <nalin@redhat.com> 2.7-16
293- rebuild in new environment
294
295* Fri Feb 22 2002 Nalin Dahyabhai <nalin@redhat.com> 2.7-15
296- rebuild
297
298* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
299- automated rebuild
300
301* Tue Oct  2 2001 Nalin Dahyabhai <nalin@redhat.com> 2.7-13
302- use getpwuid_r instead of getpwuid
303
304* Fri Aug  3 2001 Nalin Dahyabhai <nalin@redhat.com> 2.7-12
305- remove cruft that ldconfig already knows how to manage
306- don't explicitly strip anything -- the brp setup decides that
307- tweak the header so that it can be used in C++ (#46685)
308- buildprereq the words package
309
310* Tue Jun 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
311- add link from library major version number
312
313* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
314- Bump release + rebuild.
315
316* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
317- automatic rebuild
318
319* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
320- FHS fixes
321- fix undeclared function warnings from the new compiler
322- fix URL
323
324* Fri Apr 07 2000 Trond Eivind Glomsr <teg@redhat.com>
325- switched to use /usr/share/dict/words
326
327* Tue Apr 06 1999 Preston Brown <pbrown@redhat.com>
328- strip binaries
329
330* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
331- auto rebuild in the new build environment (release 4)
332
333* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
334- build for glibc 2.1
335
336* Sat May 09 1998 Prospector System <bugs@redhat.com>
337- translations modified for de, fr, tr
338
339* Tue Mar 10 1998 Cristian Gafton <gafton@redhat.com>
340- updated to 2.7
341- build shared libraries
342
343* Mon Nov 03 1997 Donnie Barnes <djb@redhat.com>
344- added -fPIC
345
346* Mon Oct 13 1997 Donnie Barnes <djb@redhat.com>
347- basic spec file cleanups
348
349* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
350- built against glibc
Note: See TracBrowser for help on using the repository browser.