]> git.pld-linux.org Git - packages/libxcrypt.git/blame - libxcrypt.spec
- updated to 4.4.17
[packages/libxcrypt.git] / libxcrypt.spec
CommitLineData
37a8c0b7 1Summary: Crypt Library for DES, MD5, and Blowfish
e65f8c9b 2Summary(pl.UTF-8): Biblioteka szyfrująca hasła obsługująca DES, MD5 i Blowfish
37a8c0b7 3Name: libxcrypt
53a124c9 4Version: 4.4.17
c6198b7e 5Release: 1
c311c836 6License: LGPL v2.1+
37a8c0b7 7Group: Libraries
dd0823fd
JB
8#Source0Download: https://github.com/besser82/libxcrypt/releases
9Source0: https://github.com/besser82/libxcrypt/archive/v%{version}/%{name}-%{version}.tar.gz
53a124c9 10# Source0-md5: 12118d098ead971f9a8377cacfdd0da7
c311c836 11Patch0: %{name}-xcrypt.patch
dd0823fd 12URL: https://github.com/besser82/libxcrypt
c311c836
JB
13BuildRequires: autoconf >= 2.62
14BuildRequires: automake >= 1:1.14
c6198b7e 15BuildRequires: gcc >= 5:3.2
dd0823fd 16BuildRequires: libtool >= 2:2
c311c836 17BuildRequires: pkgconfig >= 1:0.27
37a8c0b7
AM
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
f0e142fd 20%undefine __cxx
21
37a8c0b7 22%description
e65f8c9b
JB
23libxcrypt is a replacement for libcrypt, which comes with the GNU C
24Library. It supports DES crypt, MD5, and passwords with Blowfish
37a8c0b7
AM
25encryption.
26
e65f8c9b
JB
27%description -l pl.UTF-8
28libxcrypt to zamiennik biblioteki libcrypt dostarczanej wraz z
29biblioteką GNU C (libc). Obsługuje szyfrowanie haseł DES, MD5 oraz
30Blowfish.
31
37a8c0b7 32%package devel
e65f8c9b
JB
33Summary: Header file for libxcrypt
34Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxcrypt
35License: LGPL v2.1+
37a8c0b7 36Group: Development/Libraries
18fb40b5 37Requires: %{name} = %{version}-%{release}
37a8c0b7
AM
38
39%description devel
e65f8c9b 40This package contains the header file to develop software using
37a8c0b7
AM
41libxcrypt.
42
e65f8c9b
JB
43%description devel -l pl.UTF-8
44Ten pakiet zawiera plik nagłówkowy pozwalający na tworzenie programów
45korzystających z libxcrypt.
46
37a8c0b7
AM
47%package static
48Summary: Static libxcrypt library
e65f8c9b
JB
49Summary(pl.UTF-8): Statyczna biblioteka libxcrypt
50License: LGPL v2.1+
37a8c0b7 51Group: Development/Libraries
18fb40b5 52Requires: %{name}-devel = %{version}-%{release}
37a8c0b7
AM
53
54%description static
e65f8c9b
JB
55This package contains the static libxcrypt library used for
56development.
57
58%description static -l pl.UTF-8
59Ten 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
78rm -rf $RPM_BUILD_ROOT
c311c836 79install -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 85ln -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
95rm -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
This page took 0.108582 seconds and 4 git commands to generate.