From 5e9ba2951bfea06deb7dad3f714cf924b3b993c9 Mon Sep 17 00:00:00 2001 From: Sam hartman Date: Fri, 16 Sep 2011 19:56:45 +0100 Subject: [PATCH] mech_eap.spec: new redhat packaging Add build infrastructure to generate spec file. --- .gitignore | 2 ++ Makefile.am | 1 + configure.ac | 3 ++- mech_eap.spec.in | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 mech_eap.spec.in diff --git a/.gitignore b/.gitignore index c4992b5..57a94cd 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ m4 !m4/minuso.m4 build-aux !build-aux/compile +mech_eap.spec +mech_eap*tar* diff --git a/Makefile.am b/Makefile.am index b4ca11c..0165219 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 SUBDIRS = libeap mech_eap +EXTRA_DIST = mech_eap.spec diff --git a/configure.ac b/configure.ac index ab84b42..4297345 100644 --- a/configure.ac +++ b/configure.ac @@ -87,5 +87,6 @@ if test "x$acceptor" = "xyes" ; then fi AX_CHECK_LIBMOONSHOT -AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile]) +AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile + mech_eap.spec]) AC_OUTPUT diff --git a/mech_eap.spec.in b/mech_eap.spec.in new file mode 100644 index 0000000..f6b329f --- /dev/null +++ b/mech_eap.spec.in @@ -0,0 +1,48 @@ +Name: moonshot-gss-eap +Version: @VERSION@ +Release: 1%{?dist} +Summary: Moonshot GSS-API Mechanism + +Group: Security Tools +License: BSD +URL: http://www.project-moonshot.org/ +Source0: mech_eap-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: krb5-libs >= 1.9.1 +BuildRequires: moonshot-ui-devel +Requires: moonshot-ui + +%description +Project Moonshot provides federated access management. + + +%prep +%setup -q -n mech_eap-%{version} + + +%build +%configure --disable-acceptor --with-libmoonshot=%{_prefix} --with-krb5=%{_prefix} +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc mech_eap/README +%{_libdir}/gss/mech_eap.so +%exclude %{_libdir}/gss/mech_eap.la +%{_includedir}/gssapi/*.h + + + + +%changelog -- 2.1.4