]> git.pld-linux.org Git - packages/libxcrypt.git/blob - libxcrypt.spec
- updated to 4.4.0
[packages/libxcrypt.git] / libxcrypt.spec
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
3 Name:           libxcrypt
4 Version:        4.4.0
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
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)
18
19 %undefine       __cxx
20
21 %description
22 libxcrypt is a replacement for libcrypt, which comes with the GNU C
23 Library. It supports DES crypt, MD5, and passwords with Blowfish
24 encryption.
25
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
31 %package devel
32 Summary:        Header file for libxcrypt
33 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libxcrypt
34 License:        LGPL v2.1+
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 This package contains the header file to develop software using
40 libxcrypt.
41
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
46 %package static
47 Summary:        Static libxcrypt library
48 Summary(pl.UTF-8):      Statyczna biblioteka libxcrypt
49 License:        LGPL v2.1+
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
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.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I m4
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         --includedir=%{_includedir}/xcrypt \
72         --disable-obsolete-api \
73         --disable-werror \
74         --disable-xcrypt-compat-files
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT/%{_lib}
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
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
86
87 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/crypt{,_r,_ra,_rn}.3*
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)
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
100
101 %files devel
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*
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libxcrypt.a
This page took 0.075558 seconds and 4 git commands to generate.