Updated to hostap_2_6
[mech_eap.git] / mech_eap.spec.in
1 %global _moonshot_krb5 %{!?_moonshot_krb5:krb5-devel}%{?_moonshot_krb5}
2 Name:           moonshot-gss-eap
3 Version:        @VERSION@
4 Release:        1%{?dist}
5 Summary:        Moonshot GSS-API Mechanism
6
7 Group:          Security Tools
8 License:        BSD
9 URL:            http://www.project-moonshot.org/
10 Source0:        mech_eap-%{version}.tar.gz
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
12
13 BuildRequires:   %{_moonshot_krb5} >= 1.9.1
14 BuildRequires:   moonshot-ui-devel
15 BuildRequires: jansson-devel
16 Requires:       moonshot-ui
17 BuildRequires: libradsec-devel >= 0.0.3
18 BuildRequires: shibboleth-sp-devel >= 2.5
19 BuildRequires: libshibresolver-devel
20
21
22
23 %description
24 Project Moonshot provides federated access management.
25
26
27 %prep
28 %setup -q -n mech_eap-%{version}
29
30
31 %build
32 %configure  --with-libmoonshot=%{_prefix} --with-krb5=%{_prefix} --enable-reauth LDFLAGs="${LDFLAGS} -L/opt/shibboleth/%{_lib} -Wl,--rpath=/opt/shibboleth/%{_lib}" CPPFLAGS="${CPPFLAGS} -I/opt/shibboleth/include"
33 make %{?_smp_mflags}
34
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 make install DESTDIR=$RPM_BUILD_ROOT
39
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post
45 oid_aes128=1.3.6.1.5.5.15.1.1.17
46 oid_aes256=1.3.6.1.5.5.15.1.1.18
47 mechfile=%{_sysconfdir}/gss/mech
48 mkdir -p %{_sysconfdir}/gss
49 test -e $mechfile |touch $mechfile
50 fgrep $oid_aes128 $mechfile ||echo eap-aes128 $oid_aes128 mech_eap.so >>$mechfile
51 fgrep $oid_aes256 $mechfile ||echo eap-aes256 $oid_aes256 mech_eap.so >>$mechfile
52
53
54 %files
55 %defattr(-,root,root,-)
56 %doc mech_eap/README
57 %doc mech_eap/LICENSE
58 %doc mech_eap/AUTHORS
59 %{_libdir}/gss/mech_eap.so
60 %exclude %{_libdir}/gss/mech_eap.la
61 %{_includedir}/gssapi/*.h
62 %exclude %{_libdir}/krb5/plugins/authdata/*
63 #%{_libdir}/krb5/plugins/authdata/*.so
64
65
66
67 %changelog
68 * Wed Sep 28 2011  <hartmans@moonbuildcentos.dev.ja.net> - @VERSION@-2
69 - Add radius_ad plugin
70