]> git.pld-linux.org Git - SPECS.git/blob - doldaconnect.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / doldaconnect.spec
1 # TODO:
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
7 Name:           doldaconnect
8 Version:        1.2
9 Release:        0.1
10 License:        GPL v2+
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
15 Source2:        %{name}.init
16 Source3:        %{name}.pam
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)
32
33 %define         _appconfdir     /etc/%{name}
34
35 %description
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.
64
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.
95
96 %package libs
97 Summary:        %{name} libraries
98 Summary(pl.UTF-8):      Biblioteki doldaconnecta
99 Group:          Libraries
100
101 %description libs
102 %{name} libraries.
103
104 %description libs -l pl.UTF-8
105 Biblioteki doldaconnecta.
106
107 %package devel
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}
112
113 %description devel
114 Header files for %{name} library.
115
116 %description devel -l pl.UTF-8
117 Pliki nagłówkowe biblioteki doldaconnecta.
118
119 %package static
120 Summary:        Static %{name} libraries
121 Summary(pl.UTF-8):      Statyczne biblioteki doldaconnecta
122 Group:          Development/Libraries
123 Requires:       %{name}-devel = %{version}-%{release}
124
125 %description static
126 Static %{name} libraries.
127
128 %description static -l pl.UTF-8
129 Statyczne biblioteki doldaconnecta.
130
131 %package -n doldacond
132 Summary:        Daemon for %{name}
133 Summary(pl.UTF-8):      Demon doldaconnecta
134 Group:          Daemons
135 Requires(post,preun):   /sbin/chkconfig
136 Requires:       rc-scripts
137
138 %description -n doldacond
139 Daemon for doldaconnect that handles all of the network connections.
140
141 %description -n doldacond -l pl.UTF-8
142 Demon doldaconnecta obsługujący wszystkie połączenia sieciowe.
143
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}
149
150 %description -n gaim-plugin-%{name}
151 Gaim plugin for %{name}.
152
153 %description -n gaim-plugin-%{name} -l pl.UTF-8
154 Wtyczka Gaima dla doldaconnecta.
155
156 %prep
157 %setup -q
158
159 %build
160 %configure \
161         --sysconfdir=%{_appconfdir} \
162         --disable-rpath \
163         --with-guile \
164         --enable-gtk2ui \
165         --enable-gtk2pbar \
166         --enable-gnomeapplet \
167         --enable-gaimplugin
168
169 %{__make}
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173 install -d $RPM_BUILD_ROOT{%{_desktopdir},/etc/{rc.d/init.d,pam.d,sysconfig}}
174
175 %{__make} install \
176         DESTDIR=$RPM_BUILD_ROOT
177
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
181
182 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.a
183
184 %find_lang %{name}
185
186 %clean
187 rm -rf $RPM_BUILD_ROOT
188
189 %post   libs -p /sbin/ldconfig
190 %postun libs -p /sbin/ldconfig
191
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
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
209 %{_pixmapsdir}/*.jpg
210
211 %files libs
212 %defattr(644,root,root,755)
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
225
226 %files -n doldacond
227 %defattr(644,root,root,755)
228 %doc AUTHORS ChangeLog INSTALL README
229 %dir %{_appconfdir}
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
236
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.11599 seconds and 3 git commands to generate.