]> git.pld-linux.org Git - packages/doldaconnect.git/blame - doldaconnect.spec
- 1.2 - needs work
[packages/doldaconnect.git] / doldaconnect.spec
CommitLineData
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 5Summary: Direct Connect client
68bf652f 6Summary(pl.UTF-8): Klient Direct Connect
14c2f8bb 7Name: doldaconnect
33d6fd57
PG
8Version: 1.2
9Release: 0.1
a575569d 10License: GPL v2+
14c2f8bb
PG
11Group: X11/Applications/Networking
12Source0: http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz
33d6fd57 13# Source0-md5: 7c6d12d094bc73211001c38cdd6cf286
db596f79 14Source1: %{name}.desktop
f903c3f7
PG
15Source2: %{name}.init
16Source3: %{name}.pam
14c2f8bb 17URL: http://www.dolda2000.com/~fredrik/doldaconnect/
a575569d 18BuildConflicts: heimdal-devel
14c2f8bb 19BuildRequires: bzip2-devel
a575569d 20BuildRequires: gaim-devel >= 2.0.0
02742110 21BuildRequires: gnome-panel-devel >= 2.0
a575569d
PG
22BuildRequires: gss-devel
23BuildRequires: gtk+2-devel >= 2.10
f903c3f7 24BuildRequires: guile-devel
3be357ec 25BuildRequires: libltdl-devel
14c2f8bb 26BuildRequires: libtool
3be357ec 27BuildRequires: pam-devel
02742110 28BuildRequires: pkgconfig
525d1cf6
ER
29BuildRequires: rpmbuild(macros) >= 1.268
30Requires: %{name}-libs = %{version}-%{release}
14c2f8bb
PG
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
127e6dd4
PG
33%define _appconfdir /etc/%{name}
34
14c2f8bb 35%description
525d1cf6
ER
36Dolda Connect is a client program for the Direct Connect peer-to-peer
37filesharing network, written for GNU/Linux systems. It is possible
38that it may run on other Unix systems as well, as long as it is
39compiled with GCC, but this is untested so far.
40
41It consists of two parts - the client daemon and the user interface.
42The daemon is what does all the job of sharing files, searching,
43connecting to hubs, etc., while the user interface is a simple program
44that connects to the daemon in order to control it and give the user
45the current status of the daemon (such as the file transfers currently
46in progress, etc.). These two program run independently of each other,
47and the user interface can therefore be made to connect to a daemon
48running on another computer, over the internet or otherwise. For the
49average 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
59This architecture also has many other advantages in store for the more
60advanced users; since the user interface communicates with the daemon
61using a well-defined protocol, other user interfaces can be written,
62such as an automatic downloader, a chatbot, etc. It is also designed
63for secure multiuser operation.
14c2f8bb 64
464b5dce
JR
65%description -l pl.UTF-8
66Dolda Connect to program kliencki dla sieci współdzielenia plików
67peer-to-peer Direct Connect. Został napisany dla systemów GNU/Linux.
68Być może działa także na innych systemach uniksowych, jeśli zostanie
69skompilowany GCC, ale nie było to testowane.
70
71Program składa się z dwóch części: demona klienckiego oraz interfejsu
72użytkownika. Demon wykonuje właściwą pracę współdzielenia plików,
73wyszukiwania, łączenia z hubami itp., natomiast interfejs użytkownika
74to prosty program łączący się z demonem w celu sterowania nim i
75podawania użytkownikowi aktualnego stanu demona (tzn. aktualnie
76przesyłanych plików itp.). Te dwa programy działają niezależnie od
77siebie, dzięki czemu interfejs użytkownika może łączyć się z demonem
78działającym na innym komputerze poprzez Internet lub w inny sposób.
79Dla 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
89Architektura ta ma także wiele innych zalet dla bardziej
90zaawansowanych użytkowników; ponieważ interfejs użytkownika komunikuje
91się z demonem za pomocą dobrze zdefiniowanego protokołu, można napisać
92inne interfejsy użytkownika, takie jak automatyczny ściągać, chatbot
93itp. Jest zaprojektowana także z myślą o bezpiecznej pracy
94wieloużytkownikowej.
02742110 95
1cec06ba 96%package libs
02742110 97Summary: %{name} libraries
68bf652f 98Summary(pl.UTF-8): Biblioteki doldaconnecta
1cec06ba
PG
99Group: Libraries
100
101%description libs
02742110
JB
102%{name} libraries.
103
464b5dce 104%description libs -l pl.UTF-8
02742110
JB
105Biblioteki doldaconnecta.
106
107%package devel
108Summary: Header files for %{name} library
68bf652f 109Summary(pl.UTF-8): Pliki nagłówkowe biblioteki doldaconnecta
02742110
JB
110Group: Development/Libraries
111Requires: %{name}-libs = %{version}-%{release}
112
113%description devel
114Header files for %{name} library.
115
464b5dce
JR
116%description devel -l pl.UTF-8
117Pliki nagłówkowe biblioteki doldaconnecta.
02742110
JB
118
119%package static
120Summary: Static %{name} libraries
68bf652f 121Summary(pl.UTF-8): Statyczne biblioteki doldaconnecta
02742110
JB
122Group: Development/Libraries
123Requires: %{name}-devel = %{version}-%{release}
124
125%description static
126Static %{name} libraries.
127
464b5dce 128%description static -l pl.UTF-8
02742110 129Statyczne biblioteki doldaconnecta.
1cec06ba 130
db596f79
PG
131%package -n doldacond
132Summary: Daemon for %{name}
68bf652f 133Summary(pl.UTF-8): Demon doldaconnecta
db596f79 134Group: Daemons
f903c3f7 135Requires(post,preun): /sbin/chkconfig
525d1cf6 136Requires: rc-scripts
db596f79
PG
137
138%description -n doldacond
02742110
JB
139Daemon for doldaconnect that handles all of the network connections.
140
464b5dce
JR
141%description -n doldacond -l pl.UTF-8
142Demon doldaconnecta obsługujący wszystkie połączenia sieciowe.
db596f79 143
82bc0e6f
PG
144%package -n gaim-plugin-%{name}
145Summary: Gaim plugin for %{name}
68bf652f 146Summary(pl.UTF-8): Wtyczka Gaima dla doldaconnecta
82bc0e6f 147Group: Applications/Communications
525d1cf6 148Requires: %{name}-libs = %{version}-%{release}
82bc0e6f
PG
149
150%description -n gaim-plugin-%{name}
151Gaim plugin for %{name}.
152
464b5dce 153%description -n gaim-plugin-%{name} -l pl.UTF-8
02742110 154Wtyczka 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
172rm -rf $RPM_BUILD_ROOT
f903c3f7 173install -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 178install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
f903c3f7
PG
179install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/doldacond
180install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/doldacond
14c2f8bb 181
02742110
JB
182rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.a
183
82bc0e6f
PG
184%find_lang %{name}
185
14c2f8bb
PG
186%clean
187rm -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
197if [ "$1" = 0 ]; then
198 %service doldacond stop
199 /sbin/chkconfig --del doldacond
200fi
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
This page took 0.113955 seconds and 4 git commands to generate.