1 Summary: Crypt Library for DES, MD5, and Blowfish
2 Summary(pl.UTF-8): Biblioteka szyfrująca hasła obsługująca DES, MD5 i Blowfish
6 License: LGPL v2.1+ (library), LGPL v2.1+/Public Domain (plugins)
8 #Source0Download: https://github.com/besser82/libxcrypt/releases
9 Source0: https://github.com/besser82/libxcrypt/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 7eff183695f0dc4744b0f4bc8334eae9
11 Patch0: %{name}-noWerror.patch
12 Patch1: %{name}-libc-lock.patch
13 Patch2: %{name}-link.patch
14 URL: https://github.com/besser82/libxcrypt
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake >= 1:1.7
17 BuildRequires: libtool >= 2:2
18 BuildRequires: sed >= 4.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 libxcrypt is a replacement for libcrypt, which comes with the GNU C
25 Library. It supports DES crypt, MD5, and passwords with Blowfish
28 %description -l pl.UTF-8
29 libxcrypt to zamiennik biblioteki libcrypt dostarczanej wraz z
30 biblioteką GNU C (libc). Obsługuje szyfrowanie haseł DES, MD5 oraz
34 Summary: Header file for libxcrypt
35 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxcrypt
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 This package contains the header file to develop software using
44 %description devel -l pl.UTF-8
45 Ten pakiet zawiera plik nagłówkowy pozwalający na tworzenie programów
46 korzystających z libxcrypt.
49 Summary: Static libxcrypt library
50 Summary(pl.UTF-8): Statyczna biblioteka libxcrypt
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 This package contains the static libxcrypt library used for
59 %description static -l pl.UTF-8
60 Ten pakiet zawiera statyczną wersję biblioteki libxcrypt.
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_libdir}
83 DESTDIR=$RPM_BUILD_ROOT
85 %{__mv} $RPM_BUILD_ROOT/%{_lib}/libxcrypt.{so,la,a} $RPM_BUILD_ROOT%{_libdir}
86 %{__sed} -i -e 's#/%{_lib}#%{_libdir}#g' $RPM_BUILD_ROOT%{_libdir}/libxcrypt.la
87 ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libxcrypt.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so
89 %{__rm} $RPM_BUILD_ROOT/%{_lib}/xcrypt/*.{la,a}
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 # COPYING specifies licenses for particular plugins
100 %doc COPYING ChangeLog NEWS README*
101 %attr(755,root,root) /%{_lib}/libxcrypt.so.*.*.*
102 %attr(755,root,root) %ghost /%{_lib}/libxcrypt.so.2
104 %attr(755,root,root) /%{_lib}/xcrypt/libxcrypt_*.so*
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libxcrypt.so
109 %{_libdir}/libxcrypt.la
110 %{_includedir}/xcrypt.h
113 %defattr(644,root,root,755)
114 %{_libdir}/libxcrypt.a