]> git.ipfire.org Git - ipfire-3.x.git/blob - compat-libxcrypt/compat-libxcrypt.nm
glibc: Package libxcrypt and compat-libxcrypt
[ipfire-3.x.git] / compat-libxcrypt / compat-libxcrypt.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = compat-libxcrypt
7 version = 4.4.33
8 release = 1
9 thisapp = libxcrypt-%{version}
10
11 groups = System/Libraries
12 url = https://github.com/besser82/libxcrypt/
13 license = LGPLv2.1
14 summary = Extended crypt library for descrypt, md5crypt, bcrypt, and others
15
16 description
17 This package provides a version of libxcrypt which is compatible with
18 the old glibc interface.
19 end
20
21 source_dl = https://github.com/besser82/libxcrypt/releases/download/v%{version}/
22 sources = %{thisapp}.tar.xz
23
24 build
25 requires
26 perl
27 end
28
29 configure_options += \
30 --disable-static \
31 --enable-hashes=strong,glibc \
32 --enable-obsolete-api=glibc \
33 --disable-failure-tokens
34
35 test
36 LD_LIBRARY_PATH="%{DIR_APP}/.libs" make check
37 end
38
39 install
40 mkdir -pv %{BUILDROOT}%{libdir}
41 install -v -m 755 .libs/libcrypt.so.1.1.0 %{BUILDROOT}%{libdir}/libcrypt.so.1.1.0
42 ln -svf libcrypt.so.1.1.0 %{BUILDROOT}%{libdir}/libcrypt.so.1
43 end
44 end
45
46 packages
47 package %{name}
48
49 package %{name}-debuginfo
50 template DEBUGINFO
51 end
52 end