Support curl-openssl-devel from shibboleth in RH spec files
[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:        5%{?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-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
45 %files
46 %defattr(-,root,root,-)
47 %doc mech_eap/README
48 %doc mech_eap/LICENSE
49 %doc mech_eap/AUTHORS
50 %{_libdir}/gss/mech_eap.so
51 %exclude %{_libdir}/gss/mech_eap.la
52 %{_includedir}/gssapi/*.h
53 %exclude %{_libdir}/krb5/plugins/authdata/*
54 #%{_libdir}/krb5/plugins/authdata/*.so
55
56
57
58 %changelog
59 * Wed Sep 28 2011  <hartmans@moonbuildcentos.dev.ja.net> - @VERSION@-2
60 - Add radius_ad plugin
61