]>
Commit | Line | Data |
---|---|---|
fbd50e06 | 1 | # |
182b45ca | 2 | # TODO: |
3 | # - gabriel-passphrase.patch: | |
4 | # ssh_userauth_autopubkey from libssh takes two arguments. The second one is | |
5 | # public key passphrase. This patch asumes that passphrase is empty so it | |
6 | # won't work with encrypted public keys. It should call pinentry or something. | |
7 | # I have no idea. | |
d63e1d26 | 8 | # |
9 | # NOTE: | |
10 | # - it won't work in most common configurations. DBUS authentication is really | |
11 | # strange. It assumes that client and server runs on the same host or at | |
12 | # least shares the home directory. The only use for this program I can | |
13 | # imagine is terminal server, thin clients uses /home from terminal server | |
14 | # via NFS, and application on client that want to talk to dbus on server. | |
15 | # | |
fbd50e06 | 16 | Summary: Secure remote D-Bus |
17 | Summary(pl.UTF-8): Bezpieczny zdalny D-Bus | |
18 | Name: gabriel | |
19 | Version: 0.1 | |
237d2693 | 20 | Release: 0.2 |
182b45ca | 21 | License: GPL v2 |
fbd50e06 | 22 | Group: Applications |
23 | Source0: http://dl.sourceforge.net/gabriel/%{name}-%{version}.tar.gz | |
24 | # Source0-md5: 136d971aaf4917c31bfdc25c3f713091 | |
25 | # Very ugly hack. See TODO file. | |
26 | Patch0: %{name}-passphrase.patch | |
237d2693 | 27 | Patch1: %{name}-sshport.patch |
fbd50e06 | 28 | URL: http://gabriel.sourceforge.net/ |
29 | BuildRequires: autoconf | |
30 | BuildRequires: automake | |
f48d7e73 | 31 | BuildRequires: glib2-devel |
fbd50e06 | 32 | BuildRequires: libssh-devel |
f48d7e73 | 33 | BuildRequires: pkgconfig |
fbd50e06 | 34 | BuildRequires: rpmbuild(macros) >= 1.228 |
35 | Requires(post,preun): /sbin/chkconfig | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Secure remote D-Bus. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Bezpieczny zdalny D-Bus. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | ||
47 | %patch0 -p0 | |
237d2693 | 48 | %patch1 -p0 |
fbd50e06 | 49 | |
50 | %build | |
51 | # Is it correct? | |
52 | %{__aclocal} | |
53 | %{__autoconf} | |
54 | %{__automake} | |
55 | ||
56 | CPPFLAGS=-I/usr/include/glib-2.0 | |
57 | %configure | |
58 | %{__make} | |
59 | %{__make} -C client | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | install -d $RPM_BUILD_ROOT%{_bindir} | |
65 | install client/gabriel $RPM_BUILD_ROOT%{_bindir}/%{name} | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc AUTHORS ChangeLog NEWS README server/gabriel-server-start server/gabriel-server-stop server/gabriel-dbus.conf | |
73 | %attr(755,root,root) %{_bindir}/gabriel |