1 Summary: Crypt Library for DES, MD5, and Blowfish
5 License: LGPL v2+, Public Domain, Freeware
7 Source0: ftp://ftp.suse.com/pub/people/kukuk/libxcrypt/%{name}-%{version}.tar.bz2
8 # Source0-md5: 56cf4285086f26649b8792b53fe8b00f
9 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 Libxcrypt is a replacement for libcrypt, which comes with the GNU C
15 Library. It supports DES crypt, MD5, and passwords with blowfish
19 Summary: Header files and develpment documentation for libxcrypt
20 Group: Development/Libraries
21 Requires: %{name} = %{version}-%{release}
24 This package contains the header files to develop software using
28 Summary: Static libxcrypt library
29 Group: Development/Libraries
30 Requires: %{name}-devel = %{version}-%{release}
33 This package contains the static library used for development.
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_libdir}
48 DESTDIR=$RPM_BUILD_ROOT
50 mv $RPM_BUILD_ROOT/%{_lib}/lib*.{l,}a $RPM_BUILD_ROOT%{_libdir}
51 sed -i -e 's#/%{_lib}#%{_libdir}#g' $RPM_BUILD_ROOT%{_libdir}/*.la
53 for lib in $RPM_BUILD_ROOT/%{_lib}/lib*.so.*; do
54 lib=$(echo $lib | sed -e "s#$RPM_BUILD_ROOT##g")
55 slib=$(basename $lib | sed -e 's#\.so\..*#.so#g')
56 ln -sf $lib $RPM_BUILD_ROOT%{_libdir}/$slib
60 rm -rf $RPM_BUILD_ROOT
62 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
66 %defattr(644,root,root,755)
67 %doc ChangeLog NEWS README*
68 %attr(755,root,root) /%{_lib}/libxcrypt.so.*
70 %attr(755,root,root) /%{_lib}/xcrypt/libxcrypt*.so*
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_libdir}/libxcrypt.so
75 %{_includedir}/xcrypt.h
79 %defattr(644,root,root,755)
80 %{_libdir}/libxcrypt.a