]>
Commit | Line | Data |
---|---|---|
37a8c0b7 | 1 | Summary: Crypt Library for DES, MD5, and Blowfish |
e65f8c9b | 2 | Summary(pl.UTF-8): Biblioteka szyfrująca hasła obsługująca DES, MD5 i Blowfish |
37a8c0b7 | 3 | Name: libxcrypt |
53a124c9 | 4 | Version: 4.4.17 |
c6198b7e | 5 | Release: 1 |
c311c836 | 6 | License: LGPL v2.1+ |
37a8c0b7 | 7 | Group: Libraries |
dd0823fd JB |
8 | #Source0Download: https://github.com/besser82/libxcrypt/releases |
9 | Source0: https://github.com/besser82/libxcrypt/archive/v%{version}/%{name}-%{version}.tar.gz | |
53a124c9 | 10 | # Source0-md5: 12118d098ead971f9a8377cacfdd0da7 |
c311c836 | 11 | Patch0: %{name}-xcrypt.patch |
dd0823fd | 12 | URL: https://github.com/besser82/libxcrypt |
c311c836 JB |
13 | BuildRequires: autoconf >= 2.62 |
14 | BuildRequires: automake >= 1:1.14 | |
c6198b7e | 15 | BuildRequires: gcc >= 5:3.2 |
dd0823fd | 16 | BuildRequires: libtool >= 2:2 |
c311c836 | 17 | BuildRequires: pkgconfig >= 1:0.27 |
37a8c0b7 AM |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
f0e142fd | 20 | %undefine __cxx |
21 | ||
37a8c0b7 | 22 | %description |
e65f8c9b JB |
23 | libxcrypt is a replacement for libcrypt, which comes with the GNU C |
24 | Library. It supports DES crypt, MD5, and passwords with Blowfish | |
37a8c0b7 AM |
25 | encryption. |
26 | ||
e65f8c9b JB |
27 | %description -l pl.UTF-8 |
28 | libxcrypt to zamiennik biblioteki libcrypt dostarczanej wraz z | |
29 | biblioteką GNU C (libc). Obsługuje szyfrowanie haseł DES, MD5 oraz | |
30 | Blowfish. | |
31 | ||
37a8c0b7 | 32 | %package devel |
e65f8c9b JB |
33 | Summary: Header file for libxcrypt |
34 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxcrypt | |
35 | License: LGPL v2.1+ | |
37a8c0b7 | 36 | Group: Development/Libraries |
18fb40b5 | 37 | Requires: %{name} = %{version}-%{release} |
37a8c0b7 AM |
38 | |
39 | %description devel | |
e65f8c9b | 40 | This package contains the header file to develop software using |
37a8c0b7 AM |
41 | libxcrypt. |
42 | ||
e65f8c9b JB |
43 | %description devel -l pl.UTF-8 |
44 | Ten pakiet zawiera plik nagłówkowy pozwalający na tworzenie programów | |
45 | korzystających z libxcrypt. | |
46 | ||
37a8c0b7 AM |
47 | %package static |
48 | Summary: Static libxcrypt library | |
e65f8c9b JB |
49 | Summary(pl.UTF-8): Statyczna biblioteka libxcrypt |
50 | License: LGPL v2.1+ | |
37a8c0b7 | 51 | Group: Development/Libraries |
18fb40b5 | 52 | Requires: %{name}-devel = %{version}-%{release} |
37a8c0b7 AM |
53 | |
54 | %description static | |
e65f8c9b JB |
55 | This package contains the static libxcrypt library used for |
56 | development. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Ten pakiet zawiera statyczną wersję biblioteki libxcrypt. | |
37a8c0b7 AM |
60 | |
61 | %prep | |
62 | %setup -q | |
6329dab9 | 63 | %patch0 -p1 |
37a8c0b7 AM |
64 | |
65 | %build | |
dd0823fd JB |
66 | %{__libtoolize} |
67 | %{__aclocal} -I m4 | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
37a8c0b7 | 71 | %configure \ |
c311c836 | 72 | --includedir=%{_includedir}/xcrypt \ |
c311c836 JB |
73 | --disable-werror \ |
74 | --disable-xcrypt-compat-files | |
37a8c0b7 AM |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
c311c836 | 79 | install -d $RPM_BUILD_ROOT/%{_lib} |
37a8c0b7 AM |
80 | |
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
c311c836 | 84 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so.* $RPM_BUILD_ROOT/%{_lib} |
e65f8c9b | 85 | ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libxcrypt.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so |
429af81c | 86 | |
53a124c9 JB |
87 | # obsoleted by pkg-config |
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxcrypt.la | |
eee95ac9 JB |
89 | # PLD doesn't need Owl compatibility |
90 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libowcrypt.* | |
91 | # packaged with glibc-devel | |
c311c836 | 92 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/crypt{,_r,_ra,_rn}.3* |
37a8c0b7 AM |
93 | |
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
c311c836 | 102 | %doc AUTHORS ChangeLog LICENSING NEWS README.md THANKS TODO.md |
e65f8c9b JB |
103 | %attr(755,root,root) /%{_lib}/libxcrypt.so.*.*.* |
104 | %attr(755,root,root) %ghost /%{_lib}/libxcrypt.so.2 | |
37a8c0b7 AM |
105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/libxcrypt.so | |
c311c836 JB |
109 | %{_includedir}/xcrypt |
110 | %{_pkgconfigdir}/libcrypt.pc | |
111 | %{_pkgconfigdir}/libxcrypt.pc | |
112 | %{_mandir}/man3/crypt_checksalt.3* | |
113 | %{_mandir}/man3/crypt_gensalt*.3* | |
114 | %{_mandir}/man3/crypt_preferred_method.3* | |
115 | %{_mandir}/man5/crypt.5* | |
37a8c0b7 AM |
116 | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libxcrypt.a |