From: Sam hartman Date: Mon, 29 Apr 2013 17:31:15 +0000 (+0100) Subject: Update for RPM packaging X-Git-Tag: 1.0~35^2 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ad68bc4cf99a0fb93cebf19848cebfce6948b540;p=trust_router.git Update for RPM packaging --- diff --git a/Makefile.am b/Makefile.am index b1b1b70..babfcf7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..5df4fae --- /dev/null +++ b/trust_router.spec @@ -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 + + +