]>
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 |
c311c836 | 4 | Version: 4.4.0 |
dd0823fd | 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 | |
c311c836 JB |
10 | # Source0-md5: 13e9f41b9881956c529a028b636ff22b |
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 | |
dd0823fd | 15 | BuildRequires: libtool >= 2:2 |
c311c836 | 16 | BuildRequires: pkgconfig >= 1:0.27 |
37a8c0b7 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
f0e142fd | 19 | %undefine __cxx |
20 | ||
37a8c0b7 | 21 | %description |
e65f8c9b JB |
22 | libxcrypt is a replacement for libcrypt, which comes with the GNU C |
23 | Library. It supports DES crypt, MD5, and passwords with Blowfish | |
37a8c0b7 AM |
24 | encryption. |
25 | ||
e65f8c9b JB |
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 | |
29 | Blowfish. | |
30 | ||
37a8c0b7 | 31 | %package devel |
e65f8c9b JB |
32 | Summary: Header file for libxcrypt |
33 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxcrypt | |
34 | License: LGPL v2.1+ | |
37a8c0b7 | 35 | Group: Development/Libraries |
18fb40b5 | 36 | Requires: %{name} = %{version}-%{release} |
37a8c0b7 AM |
37 | |
38 | %description devel | |
e65f8c9b | 39 | This package contains the header file to develop software using |
37a8c0b7 AM |
40 | libxcrypt. |
41 | ||
e65f8c9b JB |
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. | |
45 | ||
37a8c0b7 AM |
46 | %package static |
47 | Summary: Static libxcrypt library | |
e65f8c9b JB |
48 | Summary(pl.UTF-8): Statyczna biblioteka libxcrypt |
49 | License: LGPL v2.1+ | |
37a8c0b7 | 50 | Group: Development/Libraries |
18fb40b5 | 51 | Requires: %{name}-devel = %{version}-%{release} |
37a8c0b7 AM |
52 | |
53 | %description static | |
e65f8c9b JB |
54 | This package contains the static libxcrypt library used for |
55 | development. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Ten pakiet zawiera statyczną wersję biblioteki libxcrypt. | |
37a8c0b7 AM |
59 | |
60 | %prep | |
61 | %setup -q | |
6329dab9 | 62 | %patch0 -p1 |
37a8c0b7 AM |
63 | |
64 | %build | |
dd0823fd JB |
65 | %{__libtoolize} |
66 | %{__aclocal} -I m4 | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
37a8c0b7 | 70 | %configure \ |
c311c836 JB |
71 | --includedir=%{_includedir}/xcrypt \ |
72 | --disable-obsolete-api \ | |
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 | |
c311c836 | 87 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/crypt{,_r,_ra,_rn}.3* |
37a8c0b7 AM |
88 | |
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
c311c836 | 97 | %doc AUTHORS ChangeLog LICENSING NEWS README.md THANKS TODO.md |
e65f8c9b JB |
98 | %attr(755,root,root) /%{_lib}/libxcrypt.so.*.*.* |
99 | %attr(755,root,root) %ghost /%{_lib}/libxcrypt.so.2 | |
37a8c0b7 AM |
100 | |
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libxcrypt.so | |
e65f8c9b | 104 | %{_libdir}/libxcrypt.la |
c311c836 JB |
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* | |
37a8c0b7 AM |
112 | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libxcrypt.a |