]>
Commit | Line | Data |
---|---|---|
64473676 | 1 | Summary: The SASL library API for the Cyrus mail system. |
2 | Name: cyrus-sasl | |
7865b55e | 3 | Version: 1.5.15 |
64473676 | 4 | Release: 3 |
5 | Copyright: distributable | |
6 | Group: Libraries | |
7 | Source: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%{name}-%{version}.tar.gz | |
3f481e7c | 8 | BuildRequires: gdbm-devel |
9 | BuildRequires: pam-devel | |
64473676 | 10 | URL: http://asg.web.cmu.edu/cyrus/imapd/ |
11 | Buildroot: /tmp/%{name}-%{version}-root | |
42ff9e9b | 12 | |
13 | %description | |
14 | The cyrus-sasl package contains the SASL library API implementation | |
15 | for the Cyrus mail system. | |
16 | ||
64473676 | 17 | %package devel |
18 | Summary: Header files and documentation for cyrus-sasl | |
19 | Group: Development/Libraries | |
20 | Requires: %{name} = %{version} | |
21 | ||
22 | %description devel | |
23 | Header files and documentation for cyrus-sasl. | |
24 | ||
25 | %package static | |
26 | Summary: Static cyrus-sasl libraries | |
27 | Group: Development/Libraries | |
28 | Requires: %{name}-devel = %{version} | |
29 | ||
30 | %description static | |
31 | Static cyrus-sasl libraries. | |
32 | ||
42ff9e9b | 33 | %prep |
64473676 | 34 | %setup -q |
42ff9e9b | 35 | |
36 | %build | |
64473676 | 37 | LDFLAGS="-s"; export LDFLAGS |
38 | %configure \ | |
39 | --enable-static | |
40 | make | |
42ff9e9b | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
42ff9e9b | 44 | |
64473676 | 45 | make install DESTDIR=$RPM_BUILD_ROOT |
46 | ||
47 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* \ | |
48 | $RPM_BUILD_ROOT%{_libdir}/sasl/lib*.so.*.* | |
49 | ||
50 | gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man?/* | |
51 | ||
42ff9e9b | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
64473676 | 55 | %post -p /sbin/ldconfig |
56 | %postun -p /sbin/ldconfig | |
42ff9e9b | 57 | |
64473676 | 58 | %files |
59 | %defattr(644,root,root,755) | |
60 | %dir %{_libdir}/sasl | |
da73a9a8 | 61 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
62 | %attr(755,root,root) %{_libdir}/sasl/lib*.so* | |
63 | %attr(755,root,root) %{_sbindir}/saslpasswd | |
64473676 | 64 | %{_mandir}/man[18]/* |
42ff9e9b | 65 | |
64473676 | 66 | %files devel |
67 | %defattr(644,root,root,755) | |
68 | %{_includedir}/*.h | |
da73a9a8 | 69 | %attr(755,root,root) %{_libdir}/lib*.so |
70 | %attr(755,root,root) %{_libdir}/lib*.la | |
42ff9e9b | 71 | |
64473676 | 72 | %files static |
73 | %defattr(644,root,root,755) | |
74 | %{_libdir}/lib*.a | |
75 | %{_libdir}/sasl/lib*.a |