]>
Commit | Line | Data |
---|---|---|
127e6dd4 | 1 | # TODO: |
82bc0e6f | 2 | # - use the same macros as in other gaim plugins packages |
f903c3f7 | 3 | # - package guile app to some subpackage |
3be357ec | 4 | # - package gnome applet to separate package |
14c2f8bb | 5 | Summary: Direct Connect client |
68bf652f | 6 | Summary(pl.UTF-8): Klient Direct Connect |
14c2f8bb | 7 | Name: doldaconnect |
33d6fd57 PG |
8 | Version: 1.2 |
9 | Release: 0.1 | |
a575569d | 10 | License: GPL v2+ |
14c2f8bb PG |
11 | Group: X11/Applications/Networking |
12 | Source0: http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz | |
33d6fd57 | 13 | # Source0-md5: 7c6d12d094bc73211001c38cdd6cf286 |
db596f79 | 14 | Source1: %{name}.desktop |
f903c3f7 PG |
15 | Source2: %{name}.init |
16 | Source3: %{name}.pam | |
14c2f8bb | 17 | URL: http://www.dolda2000.com/~fredrik/doldaconnect/ |
a575569d | 18 | BuildConflicts: heimdal-devel |
14c2f8bb | 19 | BuildRequires: bzip2-devel |
a575569d | 20 | BuildRequires: gaim-devel >= 2.0.0 |
02742110 | 21 | BuildRequires: gnome-panel-devel >= 2.0 |
a575569d PG |
22 | BuildRequires: gss-devel |
23 | BuildRequires: gtk+2-devel >= 2.10 | |
f903c3f7 | 24 | BuildRequires: guile-devel |
3be357ec | 25 | BuildRequires: libltdl-devel |
14c2f8bb | 26 | BuildRequires: libtool |
3be357ec | 27 | BuildRequires: pam-devel |
02742110 | 28 | BuildRequires: pkgconfig |
525d1cf6 ER |
29 | BuildRequires: rpmbuild(macros) >= 1.268 |
30 | Requires: %{name}-libs = %{version}-%{release} | |
14c2f8bb PG |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
127e6dd4 PG |
33 | %define _appconfdir /etc/%{name} |
34 | ||
14c2f8bb | 35 | %description |
525d1cf6 ER |
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. | |
40 | ||
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: | |
50 | ||
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. | |
58 | ||
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. | |
14c2f8bb | 64 | |
464b5dce JR |
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. | |
70 | ||
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: | |
80 | ||
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 | |
85 | przesyłał pliki. | |
86 | - Użytkownik może kontrolować swojego demona z innego miejsca, np. z | |
87 | pracy, ze szkoły, od kolegi itp. | |
88 | ||
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 | |
94 | wieloużytkownikowej. | |
02742110 | 95 | |
1cec06ba | 96 | %package libs |
02742110 | 97 | Summary: %{name} libraries |
68bf652f | 98 | Summary(pl.UTF-8): Biblioteki doldaconnecta |
1cec06ba PG |
99 | Group: Libraries |
100 | ||
101 | %description libs | |
02742110 JB |
102 | %{name} libraries. |
103 | ||
464b5dce | 104 | %description libs -l pl.UTF-8 |
02742110 JB |
105 | Biblioteki doldaconnecta. |
106 | ||
107 | %package devel | |
108 | Summary: Header files for %{name} library | |
68bf652f | 109 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki doldaconnecta |
02742110 JB |
110 | Group: Development/Libraries |
111 | Requires: %{name}-libs = %{version}-%{release} | |
112 | ||
113 | %description devel | |
114 | Header files for %{name} library. | |
115 | ||
464b5dce JR |
116 | %description devel -l pl.UTF-8 |
117 | Pliki nagłówkowe biblioteki doldaconnecta. | |
02742110 JB |
118 | |
119 | %package static | |
120 | Summary: Static %{name} libraries | |
68bf652f | 121 | Summary(pl.UTF-8): Statyczne biblioteki doldaconnecta |
02742110 JB |
122 | Group: Development/Libraries |
123 | Requires: %{name}-devel = %{version}-%{release} | |
124 | ||
125 | %description static | |
126 | Static %{name} libraries. | |
127 | ||
464b5dce | 128 | %description static -l pl.UTF-8 |
02742110 | 129 | Statyczne biblioteki doldaconnecta. |
1cec06ba | 130 | |
db596f79 PG |
131 | %package -n doldacond |
132 | Summary: Daemon for %{name} | |
68bf652f | 133 | Summary(pl.UTF-8): Demon doldaconnecta |
db596f79 | 134 | Group: Daemons |
f903c3f7 | 135 | Requires(post,preun): /sbin/chkconfig |
525d1cf6 | 136 | Requires: rc-scripts |
db596f79 PG |
137 | |
138 | %description -n doldacond | |
02742110 JB |
139 | Daemon for doldaconnect that handles all of the network connections. |
140 | ||
464b5dce JR |
141 | %description -n doldacond -l pl.UTF-8 |
142 | Demon doldaconnecta obsługujący wszystkie połączenia sieciowe. | |
db596f79 | 143 | |
82bc0e6f PG |
144 | %package -n gaim-plugin-%{name} |
145 | Summary: Gaim plugin for %{name} | |
68bf652f | 146 | Summary(pl.UTF-8): Wtyczka Gaima dla doldaconnecta |
82bc0e6f | 147 | Group: Applications/Communications |
525d1cf6 | 148 | Requires: %{name}-libs = %{version}-%{release} |
82bc0e6f PG |
149 | |
150 | %description -n gaim-plugin-%{name} | |
151 | Gaim plugin for %{name}. | |
152 | ||
464b5dce | 153 | %description -n gaim-plugin-%{name} -l pl.UTF-8 |
02742110 | 154 | Wtyczka Gaima dla doldaconnecta. |
1cec06ba | 155 | |
14c2f8bb PG |
156 | %prep |
157 | %setup -q | |
158 | ||
159 | %build | |
160 | %configure \ | |
127e6dd4 | 161 | --sysconfdir=%{_appconfdir} \ |
14c2f8bb | 162 | --disable-rpath \ |
f903c3f7 | 163 | --with-guile \ |
14c2f8bb PG |
164 | --enable-gtk2ui \ |
165 | --enable-gtk2pbar \ | |
166 | --enable-gnomeapplet \ | |
167 | --enable-gaimplugin | |
168 | ||
169 | %{__make} | |
170 | ||
171 | %install | |
172 | rm -rf $RPM_BUILD_ROOT | |
f903c3f7 | 173 | install -d $RPM_BUILD_ROOT{%{_desktopdir},/etc/{rc.d/init.d,pam.d,sysconfig}} |
14c2f8bb PG |
174 | |
175 | %{__make} install \ | |
176 | DESTDIR=$RPM_BUILD_ROOT | |
177 | ||
db596f79 | 178 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
f903c3f7 PG |
179 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/doldacond |
180 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/doldacond | |
14c2f8bb | 181 | |
02742110 JB |
182 | rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.a |
183 | ||
82bc0e6f PG |
184 | %find_lang %{name} |
185 | ||
14c2f8bb PG |
186 | %clean |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | ||
1cec06ba PG |
189 | %post libs -p /sbin/ldconfig |
190 | %postun libs -p /sbin/ldconfig | |
191 | ||
f903c3f7 PG |
192 | %post -n doldacond |
193 | /sbin/chkconfig --add doldacond | |
194 | %service doldacond restart | |
195 | ||
196 | %preun -n doldacond | |
197 | if [ "$1" = 0 ]; then | |
198 | %service doldacond stop | |
199 | /sbin/chkconfig --del doldacond | |
200 | fi | |
201 | ||
82bc0e6f | 202 | %files -f %{name}.lang |
14c2f8bb | 203 | %defattr(644,root,root,755) |
db596f79 | 204 | %attr(755,root,root) %{_bindir}/dolcon |
127e6dd4 PG |
205 | %attr(755,root,root) %{_libdir}/bonobo/servers/*.server |
206 | %attr(755,root,root) %{_libdir}/dolcon-trans-applet | |
127e6dd4 | 207 | %attr(755,root,root) %{_libdir}/speedrec |
db596f79 | 208 | %{_desktopdir}/%{name}.desktop |
127e6dd4 | 209 | %{_pixmapsdir}/*.jpg |
1cec06ba PG |
210 | |
211 | %files libs | |
212 | %defattr(644,root,root,755) | |
02742110 JB |
213 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
214 | ||
215 | %files devel | |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_libdir}/lib*.so | |
218 | %{_libdir}/lib*.la | |
219 | %dir %{_includedir}/%{name} | |
220 | %{_includedir}/%{name}/*.h | |
221 | ||
222 | %files static | |
223 | %defattr(644,root,root,755) | |
224 | %{_libdir}/lib*.a | |
1cec06ba | 225 | |
db596f79 PG |
226 | %files -n doldacond |
227 | %defattr(644,root,root,755) | |
525d1cf6 | 228 | %doc AUTHORS ChangeLog INSTALL README |
db596f79 | 229 | %dir %{_appconfdir} |
f903c3f7 PG |
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 | |
db596f79 PG |
233 | %attr(755,root,root) %{_bindir}/doldacond |
234 | %attr(755,root,root) %{_bindir}/locktouch | |
235 | %attr(755,root,root) %{_bindir}/tthsum | |
236 | ||
82bc0e6f PG |
237 | %files -n gaim-plugin-%{name} |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_libdir}/gaim/libdolcon-gaim.so |