Enable tls psk
[radsecproxy.git] / libradsec.spec.in
1 Name: @PACKAGE@
2 Version:        @PACKAGE_VERSION@
3 Release:        2%{?dist}
4 Summary:        RADIUS over TLS library
5
6 Group:          System Environment/Libraries
7 License:        BSD
8 URL:            http://software.uninett.no/radsecproxy/?page=documentation
9 Source0:        %{name}-%{version}.tar.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
11
12
13
14 BuildRequires: openssl-devel
15 BuildRequires: libconfuse-devel
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libtool
19 BuildRequires: libevent-devel >= 2.0
20
21
22
23 %description
24         Libradsec is a RADIUS over TLS library.
25
26
27 %package        devel
28 Summary:        Development files for %{name}
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description    devel
33 The %{name}-devel package contains libraries and header files for
34 developing applications that use %{name}.
35
36
37 %prep
38 %setup -q
39
40
41 %build
42         export CPPFLAGS='-I%{_includedir}'
43         export LDFLAGS='-L%{_libdir}'
44 %configure --disable-static --enable-tls-psk
45 make %{?_smp_mflags}
46
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 make install DESTDIR=$RPM_BUILD_ROOT
51 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
52
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57
58 %post -p /sbin/ldconfig
59
60 %postun -p /sbin/ldconfig
61
62
63 %files
64 %defattr(-,root,root,-)
65 %doc README
66 %{_libdir}/*.so.*
67
68 %files devel
69 %defattr(-,root,root,-)
70 %{_includedir}/*
71 %{_libdir}/*.so
72
73
74 %changelog
75 * Tue Sep 27 2011  <hartmans@moonbuildcentos.dev.ja.net> - %{version}-1
76 - initial version
77