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
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: 13e9f41b9881956c529a028b636ff22b
11 Patch0: %{name}-xcrypt.patch
12 URL: https://github.com/besser82/libxcrypt
13 BuildRequires: autoconf >= 2.62
14 BuildRequires: automake >= 1:1.14
15 BuildRequires: libtool >= 2:2
16 BuildRequires: pkgconfig >= 1:0.27
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 libxcrypt is a replacement for libcrypt, which comes with the GNU C
23 Library. It supports DES crypt, MD5, and passwords with Blowfish
26 %description -l pl.UTF-8
27 libxcrypt to zamiennik biblioteki libcrypt dostarczanej wraz z
28 biblioteką GNU C (libc). Obsługuje szyfrowanie haseł DES, MD5 oraz
32 Summary: Header file for libxcrypt
33 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxcrypt
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 This package contains the header file to develop software using
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera plik nagłówkowy pozwalający na tworzenie programów
44 korzystających z libxcrypt.
47 Summary: Static libxcrypt library
48 Summary(pl.UTF-8): Statyczna biblioteka libxcrypt
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 This package contains the static libxcrypt library used for
57 %description static -l pl.UTF-8
58 Ten pakiet zawiera statyczną wersję biblioteki libxcrypt.
71 --includedir=%{_includedir}/xcrypt \
72 --disable-obsolete-api \
74 --disable-xcrypt-compat-files
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT/%{_lib}
82 DESTDIR=$RPM_BUILD_ROOT
84 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so.* $RPM_BUILD_ROOT/%{_lib}
85 ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libxcrypt.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so
87 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/crypt{,_r,_ra,_rn}.3*
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog LICENSING NEWS README.md THANKS TODO.md
98 %attr(755,root,root) /%{_lib}/libxcrypt.so.*.*.*
99 %attr(755,root,root) %ghost /%{_lib}/libxcrypt.so.2
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libxcrypt.so
104 %{_libdir}/libxcrypt.la
105 %{_includedir}/xcrypt
106 %{_pkgconfigdir}/libcrypt.pc
107 %{_pkgconfigdir}/libxcrypt.pc
108 %{_mandir}/man3/crypt_checksalt.3*
109 %{_mandir}/man3/crypt_gensalt*.3*
110 %{_mandir}/man3/crypt_preferred_method.3*
111 %{_mandir}/man5/crypt.5*
114 %defattr(644,root,root,755)
115 %{_libdir}/libxcrypt.a