]> git.pld-linux.org Git - packages/libxcrypt.git/blob - libxcrypt.spec
- new URLs, updated to 3.1.1 (now includes crypt_blowfish 1.3)
[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:        3.1.1
5 Release:        1
6 License:        LGPL v2.1+ (library), LGPL v2.1+/Public Domain (plugins)
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:  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)
20
21 %undefine       __cxx
22
23 %description
24 libxcrypt is a replacement for libcrypt, which comes with the GNU C
25 Library. It supports DES crypt, MD5, and passwords with Blowfish
26 encryption.
27
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
31 Blowfish.
32
33 %package devel
34 Summary:        Header file for libxcrypt
35 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libxcrypt
36 License:        LGPL v2.1+
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 This package contains the header file to develop software using
42 libxcrypt.
43
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.
47
48 %package static
49 Summary:        Static libxcrypt library
50 Summary(pl.UTF-8):      Statyczna biblioteka libxcrypt
51 License:        LGPL v2.1+
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 This package contains the static libxcrypt library used for
57 development.
58
59 %description static -l pl.UTF-8
60 Ten pakiet zawiera statyczną wersję biblioteki libxcrypt.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65 %patch1 -p1
66 %patch2 -p1
67
68 %build
69 %{__libtoolize}
70 %{__aclocal} -I m4
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 %configure \
75         --libdir=/%{_lib}
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_libdir}
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
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
88
89 %{__rm} $RPM_BUILD_ROOT/%{_lib}/xcrypt/*.{la,a}
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %files
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
103 %dir /%{_lib}/xcrypt
104 %attr(755,root,root) /%{_lib}/xcrypt/libxcrypt_*.so*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libxcrypt.so
109 %{_libdir}/libxcrypt.la
110 %{_includedir}/xcrypt.h
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libxcrypt.a
This page took 0.285616 seconds and 3 git commands to generate.