1 %global optflags %{optflags} -Wno-parentheses
5 Summary: Moonshot Trust Router
7 Group: System Environment/Libraries
9 URL: http://www.project-moonshot.org/
10 Source0: %{name}-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 BuildRequires: krb5-devel
14 BuildRequires: jansson-devel >= 2.4
15 BuildRequires: sqlite-devel, openssl-devel, libtalloc-devel
16 Requires: moonshot-gss-eap, sqlite
19 The trust router provides a mechanism for discovering the topology of
20 trust graphs in a topology and establishing temporary identities
25 Summary: Development files for %{name}
26 Group: Development/Libraries
27 Requires: %{name}-libs = %{version}-%{release}
30 The %{name}-devel package contains libraries and header files for
31 developing applications that use %{name}-libs.
34 Summary: Libraries needed by %{Name}
37 This package includes libraries needed by the %{Name} package or
38 packages that wish trust_router functionality.
48 %configure --disable-static
53 rm -rf $RPM_BUILD_ROOT
54 make install DESTDIR=$RPM_BUILD_ROOT
55 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
59 rm -rf $RPM_BUILD_ROOT
62 %post libs -p /sbin/ldconfig
64 %postun libs -p /sbin/ldconfig
67 id trustrouter 2>/dev/null || adduser --system -d /var/lib/trust_router trustrouter
68 test -d /var/lib/trust_router ||mkdir /var/lib/trust_router
69 chown trustrouter:trustrouter /var/lib/trust_router
70 sqlite3 </usr/share/trust_router/schema.sql /var/lib/trust_router/keys
71 chown trustrouter:trustrouter /var/lib/trust_router/keys
72 chmod 660 /var/lib/trust_router/keys
76 %defattr(-,root,root,-)
79 %{_datadir}/trust_router/schema.sql
80 /lib/systemd/system/tids.service
83 %defattr(-,root,root,-)
87 %defattr(-,root,root,-)