2 # - use the same macros as in other gaim plugins packages
3 # - package guile app to some subpackage
4 # - package gnome applet to separate package
5 Summary: Direct Connect client
10 Group: X11/Applications/Networking
11 Source0: http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz
12 # Source0-md5: 8920593ede9d7866937cd2feb95923a8
13 Source1: %{name}.desktop
16 URL: http://www.dolda2000.com/~fredrik/doldaconnect/
17 BuildRequires: automake
18 BuildRequires: bzip2-devel
19 BuildRequires: gaim-devel
20 BuildRequires: gnome-panel-devel
21 BuildRequires: guile-devel
22 BuildRequires: libltdl-devel
23 BuildRequires: libtool
24 BuildRequires: pam-devel
25 BuildRequires: rpmbuild(macros) >= 1.268
26 Requires: %{name}-libs = %{version}-%{release}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _appconfdir /etc/%{name}
32 Dolda Connect is a client program for the Direct Connect peer-to-peer
33 filesharing network, written for GNU/Linux systems. It is possible
34 that it may run on other Unix systems as well, as long as it is
35 compiled with GCC, but this is untested so far.
37 It consists of two parts - the client daemon and the user interface.
38 The daemon is what does all the job of sharing files, searching,
39 connecting to hubs, etc., while the user interface is a simple program
40 that connects to the daemon in order to control it and give the user
41 the current status of the daemon (such as the file transfers currently
42 in progress, etc.). These two program run independently of each other,
43 and the user interface can therefore be made to connect to a daemon
44 running on another computer, over the internet or otherwise. For the
45 average user, this yields two primary advantages:
47 - The daemon can be made to run on another computer, which can be on
48 all the time (a server, if you will), while the user interface can run
49 on the user's workstation. That way, the user can turn off his
50 workstation at night, while the server will continue all transfers in
51 progress during that time.
52 - A user can control his daemon from another location, such as from
53 work, school, a friend, etc.
55 This architecture also has many other advantages in store for the more
56 advanced users; since the user interface communicates with the daemon
57 using a well-defined protocol, other user interfaces can be written,
58 such as an automatic downloader, a chatbot, etc. It is also designed
59 for secure multiuser operation.
62 Summary: Libraries for %{name}
66 Libraries for %{name}.
69 Summary: Daemon for %{name}
71 Requires(post,preun): /sbin/chkconfig
74 %description -n doldacond
75 Daemon for %{name} that handles all of the network connections.
77 %package -n gaim-plugin-%{name}
78 Summary: Gaim plugin for %{name}
79 Group: Applications/Communications
80 Requires: %{name}-libs = %{version}-%{release}
82 %description -n gaim-plugin-%{name}
83 Gaim plugin for %{name}.
86 Summary: %{name} library header files
87 Group: Development/Libraries
88 Requires: %{name}-libs = %{version}-%{release}
91 %{name} library header files.
94 Summary: Static %{name} library
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{version}-%{release}
99 Static %{name} library.
106 --sysconfdir=%{_appconfdir} \
111 --enable-gnomeapplet \
117 rm -rf $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT{%{_desktopdir},/etc/{rc.d/init.d,pam.d,sysconfig}}
121 DESTDIR=$RPM_BUILD_ROOT
123 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
124 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/doldacond
125 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/doldacond
130 rm -rf $RPM_BUILD_ROOT
132 %post libs -p /sbin/ldconfig
133 %postun libs -p /sbin/ldconfig
136 /sbin/chkconfig --add doldacond
137 %service doldacond restart
140 if [ "$1" = 0 ]; then
141 %service doldacond stop
142 /sbin/chkconfig --del doldacond
145 %files -f %{name}.lang
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_bindir}/dolcon
148 %attr(755,root,root) %{_libdir}/bonobo/servers/*.server
149 %attr(755,root,root) %{_libdir}/dolcon-trans-applet
150 %attr(755,root,root) %{_libdir}/speedrec
151 %{_desktopdir}/%{name}.desktop
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/*.so.*.*.*
159 %defattr(644,root,root,755)
160 %doc AUTHORS ChangeLog INSTALL README
162 %config(noreplace) %verify(not md5 mtime size) %{_appconfdir}/*
163 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/doldacond
164 %attr(754,root,root) /etc/rc.d/init.d/doldacond
165 %attr(755,root,root) %{_bindir}/doldacond
166 %attr(755,root,root) %{_bindir}/locktouch
167 %attr(755,root,root) %{_bindir}/tthsum
169 %files -n gaim-plugin-%{name}
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/gaim/libdolcon-gaim.so
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{_libdir}/lib*.so
177 %dir %{_includedir}/%{name}
178 %{_includedir}/%{name}/*.h
181 %defattr(644,root,root,755)