mech_eap.spec: new redhat packaging
authorSam hartman <hartmans@painless-security.com>
Fri, 16 Sep 2011 18:56:45 +0000 (19:56 +0100)
committerSam hartman <hartmans@painless-security.com>
Fri, 16 Sep 2011 18:56:45 +0000 (19:56 +0100)
Add build infrastructure to generate spec file.

.gitignore
Makefile.am
configure.ac
mech_eap.spec.in [new file with mode: 0644]

index c4992b5..57a94cd 100644 (file)
@@ -10,3 +10,5 @@ m4
 !m4/minuso.m4
 build-aux
 !build-aux/compile
+mech_eap.spec
+mech_eap*tar*
index b4ca11c..0165219 100644 (file)
@@ -1,3 +1,4 @@
 AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = libeap mech_eap
+EXTRA_DIST = mech_eap.spec
index ab84b42..4297345 100644 (file)
@@ -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 (file)
index 0000000..f6b329f
--- /dev/null
@@ -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