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