Merge branch 'master' of moonshot.suchdamage.org:/srv/git/trust_router
[trust_router.git] / trust_router.spec
1 Name:           trust_router
2 Version:        0.0.1
3 Release:        1%{?dist}
4 Summary:        Moonshot Trust Router
5
6 Group:          System Environment/Libraries
7 License:        BSD
8 URL:            http://www.project-moonshot.org/
9 Source0:        %{name}-%{version}.tar.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 BuildRequires:  krb5-devel 
13 BuildRequires: jansson-devel >= 2.4
14 Requires:       mech_eap
15
16 %description
17 The trust router provides a mechanism for discovering the topology of
18 trust graphs in a topology and establishing temporary identities
19 between them.
20
21
22 %package        devel
23 Summary:        Development files for %{name}
24 Group:          Development/Libraries
25 Requires:       %{name}-libs = %{version}-%{release}
26
27 %description    devel
28 The %{name}-devel package contains libraries and header files for
29 developing applications that use %{name}-libs.
30
31 %package libs
32 Summary: Libraries needed by %{Name}
33
34 %description libs
35 This package includes libraries needed by the %{Name} package or
36 packages that wish trust_router functionality.
37
38
39
40
41 %prep
42 %setup -q
43
44
45 %build
46 %configure --disable-static
47 make %{?_smp_mflags}
48
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 make install DESTDIR=$RPM_BUILD_ROOT
53 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
54
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59
60 %post libs -p /sbin/ldconfig
61
62 %postun libs -p /sbin/ldconfig
63
64
65 %files
66 %defattr(-,root,root,-)
67 %doc README
68 %{_bindir}/*
69
70 %files libs
71 %defattr(-,root,root,-)
72 %{_libdir}/*.so.*
73
74 %files devel
75 %defattr(-,root,root,-)
76 %{_includedir}/*
77 %{_libdir}/*.so
78
79
80