Packaging: clean spec file
[platform/upstream/libgsasl.git] / packaging / libgsasl.spec
1 Name:       libgsasl
2 Summary:    Library for perfoming SASL authentication
3 Version:    1.8.0
4 Release:    0
5 Group:      Security/Accounts
6 License:    LGPL-2.1+
7 Source:     %{name}-%{version}.tar.gz
8 Source1:    %{name}.manifest
9 URL:        http://www.gnu.org/software/gsasl/
10 Requires(post):     /sbin/ldconfig
11 Requires(postun):   /sbin/ldconfig
12 BuildRequires:      libgcrypt-devel
13
14 %description
15 %{name} is a library to perfom SASL authentication.
16
17
18 %package devel
19 Summary: Devel package for %{name}
20 Group: SDK/Libraries
21 Requires: %{name} = %{version}-%{release}
22
23 %description devel
24 Development files for %{name}.
25
26
27 %prep
28 %setup -q -n %{name}-%{version}
29 cp %{SOURCE1} .
30
31
32 %build
33 %configure --with-libgcrypt
34 %__make %{?_smp_mflags}
35
36
37 %install
38 rm -rf %{buildroot}
39 %make_install
40
41 %find_lang %{name}
42
43
44 %post -p /sbin/ldconfig
45
46 %postun -p /sbin/ldconfig
47
48
49 %files -f %{name}.lang
50 %license COPYING COPYING.LIB
51 %defattr(-,root,root,-)
52 %manifest %{name}.manifest
53 %doc AUTHORS NEWS README THANKS
54 %{_libdir}/%{name}.so.*
55
56
57 %files devel
58 %defattr(-,root,root,-)
59 %manifest %{name}.manifest
60 %{_includedir}/gsasl*.h
61 %{_libdir}/%{name}.so
62 %{_libdir}/pkgconfig/%{name}.pc