Update for RPM packaging
authorSam hartman <hartmans@painless-security.com>
Mon, 29 Apr 2013 17:31:15 +0000 (18:31 +0100)
committerSam hartman <hartmans@painless-security.com>
Mon, 29 Apr 2013 17:31:15 +0000 (18:31 +0100)
Makefile.am
trust_router.spec [new file with mode: 0644]

index b1b1b70..babfcf7 100644 (file)
@@ -40,5 +40,9 @@ include/trust_router/tr_versioning.h
 
 noinst_HEADERS = include/gsscon.h include/tr_config.h \
 include/tr_msg.h \
-include/tr.h
+include/tr.h \
+       include/tr_idp.h include/tr_rp.h \
+       include/tr_comm.h
 
+
+EXTRA_DIST = trust_router.spec
diff --git a/trust_router.spec b/trust_router.spec
new file mode 100644 (file)
index 0000000..5df4fae
--- /dev/null
@@ -0,0 +1,80 @@
+Name:           trust_router
+Version:        0.0.1
+Release:        1%{?dist}
+Summary:        Moonshot Trust Router
+
+Group:          System Environment/Libraries
+License:        BSD
+URL:            http://www.project-moonshot.org/
+Source0:        %{name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  krb5-devel 
+BuildRequires: jansson-devel >= 2.4
+Requires:       mech_eap
+
+%description
+The trust router provides a mechanism for discovering the topology of
+trust graphs in a topology and establishing temporary identities
+between them.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}-libs = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}-libs.
+
+%package libs
+Summary: Libraries needed by %{Name}
+
+%description libs
+This package includes libraries needed by the %{Name} package or
+packages that wish trust_router functionality.
+
+
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{_bindir}/*
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+
+
+