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
6 Summary(pl.UTF-8): Klient Direct Connect
11 Group: X11/Applications/Networking
12 Source0: http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz
13 # Source0-md5: 7c6d12d094bc73211001c38cdd6cf286
14 Source1: %{name}.desktop
17 URL: http://www.dolda2000.com/~fredrik/doldaconnect/
18 BuildConflicts: heimdal-devel
19 BuildRequires: bzip2-devel
20 BuildRequires: gaim-devel >= 2.0.0
21 BuildRequires: gnome-panel-devel >= 2.0
22 BuildRequires: gss-devel
23 BuildRequires: gtk+2-devel >= 2.10
24 BuildRequires: guile-devel
25 BuildRequires: libltdl-devel
26 BuildRequires: libtool
27 BuildRequires: pam-devel
28 BuildRequires: pkgconfig
29 BuildRequires: rpmbuild(macros) >= 1.268
30 Requires: %{name}-libs = %{version}-%{release}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _appconfdir /etc/%{name}
36 Dolda Connect is a client program for the Direct Connect peer-to-peer
37 filesharing network, written for GNU/Linux systems. It is possible
38 that it may run on other Unix systems as well, as long as it is
39 compiled with GCC, but this is untested so far.
41 It consists of two parts - the client daemon and the user interface.
42 The daemon is what does all the job of sharing files, searching,
43 connecting to hubs, etc., while the user interface is a simple program
44 that connects to the daemon in order to control it and give the user
45 the current status of the daemon (such as the file transfers currently
46 in progress, etc.). These two program run independently of each other,
47 and the user interface can therefore be made to connect to a daemon
48 running on another computer, over the internet or otherwise. For the
49 average user, this yields two primary advantages:
51 - The daemon can be made to run on another computer, which can be on
52 all the time (a server, if you will), while the user interface can run
53 on the user's workstation. That way, the user can turn off his
54 workstation at night, while the server will continue all transfers in
55 progress during that time.
56 - A user can control his daemon from another location, such as from
57 work, school, a friend, etc.
59 This architecture also has many other advantages in store for the more
60 advanced users; since the user interface communicates with the daemon
61 using a well-defined protocol, other user interfaces can be written,
62 such as an automatic downloader, a chatbot, etc. It is also designed
63 for secure multiuser operation.
65 %description -l pl.UTF-8
66 Dolda Connect to program kliencki dla sieci współdzielenia plików
67 peer-to-peer Direct Connect. Został napisany dla systemów GNU/Linux.
68 Być może działa także na innych systemach uniksowych, jeśli zostanie
69 skompilowany GCC, ale nie było to testowane.
71 Program składa się z dwóch części: demona klienckiego oraz interfejsu
72 użytkownika. Demon wykonuje właściwą pracę współdzielenia plików,
73 wyszukiwania, łączenia z hubami itp., natomiast interfejs użytkownika
74 to prosty program łączący się z demonem w celu sterowania nim i
75 podawania użytkownikowi aktualnego stanu demona (tzn. aktualnie
76 przesyłanych plików itp.). Te dwa programy działają niezależnie od
77 siebie, dzięki czemu interfejs użytkownika może łączyć się z demonem
78 działającym na innym komputerze poprzez Internet lub w inny sposób.
79 Dla przeciętnego użytkownika ma to dwie główne zalety:
81 - Demon może działać na innym komputerze, który jest włączony przez
82 cały czas (np. na serwerze), podczas gdy interfejs użytkownika może
83 działać na stacji roboczej użytkownika; w ten sposób użytkownik może
84 wyłączyć swoją stację na noc, podczas gdy serwer nadal będzie
86 - Użytkownik może kontrolować swojego demona z innego miejsca, np. z
87 pracy, ze szkoły, od kolegi itp.
89 Architektura ta ma także wiele innych zalet dla bardziej
90 zaawansowanych użytkowników; ponieważ interfejs użytkownika komunikuje
91 się z demonem za pomocą dobrze zdefiniowanego protokołu, można napisać
92 inne interfejsy użytkownika, takie jak automatyczny ściągać, chatbot
93 itp. Jest zaprojektowana także z myślą o bezpiecznej pracy
97 Summary: %{name} libraries
98 Summary(pl.UTF-8): Biblioteki doldaconnecta
104 %description libs -l pl.UTF-8
105 Biblioteki doldaconnecta.
108 Summary: Header files for %{name} library
109 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki doldaconnecta
110 Group: Development/Libraries
111 Requires: %{name}-libs = %{version}-%{release}
114 Header files for %{name} library.
116 %description devel -l pl.UTF-8
117 Pliki nagłówkowe biblioteki doldaconnecta.
120 Summary: Static %{name} libraries
121 Summary(pl.UTF-8): Statyczne biblioteki doldaconnecta
122 Group: Development/Libraries
123 Requires: %{name}-devel = %{version}-%{release}
126 Static %{name} libraries.
128 %description static -l pl.UTF-8
129 Statyczne biblioteki doldaconnecta.
131 %package -n doldacond
132 Summary: Daemon for %{name}
133 Summary(pl.UTF-8): Demon doldaconnecta
135 Requires(post,preun): /sbin/chkconfig
138 %description -n doldacond
139 Daemon for doldaconnect that handles all of the network connections.
141 %description -n doldacond -l pl.UTF-8
142 Demon doldaconnecta obsługujący wszystkie połączenia sieciowe.
144 %package -n gaim-plugin-%{name}
145 Summary: Gaim plugin for %{name}
146 Summary(pl.UTF-8): Wtyczka Gaima dla doldaconnecta
147 Group: Applications/Communications
148 Requires: %{name}-libs = %{version}-%{release}
150 %description -n gaim-plugin-%{name}
151 Gaim plugin for %{name}.
153 %description -n gaim-plugin-%{name} -l pl.UTF-8
154 Wtyczka Gaima dla doldaconnecta.
161 --sysconfdir=%{_appconfdir} \
166 --enable-gnomeapplet \
172 rm -rf $RPM_BUILD_ROOT
173 install -d $RPM_BUILD_ROOT{%{_desktopdir},/etc/{rc.d/init.d,pam.d,sysconfig}}
176 DESTDIR=$RPM_BUILD_ROOT
178 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
179 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/doldacond
180 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/doldacond
182 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.a
187 rm -rf $RPM_BUILD_ROOT
189 %post libs -p /sbin/ldconfig
190 %postun libs -p /sbin/ldconfig
193 /sbin/chkconfig --add doldacond
194 %service doldacond restart
197 if [ "$1" = 0 ]; then
198 %service doldacond stop
199 /sbin/chkconfig --del doldacond
202 %files -f %{name}.lang
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_bindir}/dolcon
205 %attr(755,root,root) %{_libdir}/bonobo/servers/*.server
206 %attr(755,root,root) %{_libdir}/dolcon-trans-applet
207 %attr(755,root,root) %{_libdir}/speedrec
208 %{_desktopdir}/%{name}.desktop
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/lib*.so
219 %dir %{_includedir}/%{name}
220 %{_includedir}/%{name}/*.h
223 %defattr(644,root,root,755)
227 %defattr(644,root,root,755)
228 %doc AUTHORS ChangeLog INSTALL README
230 %config(noreplace) %verify(not md5 mtime size) %{_appconfdir}/*
231 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/doldacond
232 %attr(754,root,root) /etc/rc.d/init.d/doldacond
233 %attr(755,root,root) %{_bindir}/doldacond
234 %attr(755,root,root) %{_bindir}/locktouch
235 %attr(755,root,root) %{_bindir}/tthsum
237 %files -n gaim-plugin-%{name}
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/gaim/libdolcon-gaim.so