Initial RPM packaging
[libradsec.git] / lib / libradsec.spec.in
1 Name: @PACKAGE@
2 Version:        @PACKAGE_VERSION@
3 Release:        1%{?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: freeradius-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: libtool
20 BuildRequires: libevent-devel >= 2.0
21
22
23
24 %description
25         Libradsec is a RADIUS over TLS library.
26
27
28 %package        devel
29 Summary:        Development files for %{name}
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32
33 %description    devel
34 The %{name}-devel package contains libraries and header files for
35 developing applications that use %{name}.
36
37
38 %prep
39 %setup -q
40
41
42 %build
43         export CPPFLAGS='-I%{_includedir}'
44         export LDFLAGS='-L%{_libdir} -L/usr/%{_lib}/freeradius'
45 %configure --disable-static
46 make %{?_smp_mflags}
47
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 make install DESTDIR=$RPM_BUILD_ROOT
52 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
53
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58
59 %post -p /sbin/ldconfig
60
61 %postun -p /sbin/ldconfig
62
63
64 %files
65 %defattr(-,root,root,-)
66 %doc README
67 %{_libdir}/*.so.*
68
69 %files devel
70 %defattr(-,root,root,-)
71 %{_includedir}/*
72 %{_libdir}/*.so
73
74
75 %changelog
76 * Tue Sep 27 2011  <hartmans@moonbuildcentos.dev.ja.net> - %{version}-1
77 - initial version
78