Commit | Line | Data |
---|---|---|
ad5772b6 FT |
1 | # RPC specfile for Fedora |
2 | Name: doldaconnect | |
3 | Version: @VERSION@ | |
4 | Release: 1 | |
5 | License: GPL v2+ | |
f5b0faaa | 6 | Group: Applications/Internet |
ad5772b6 FT |
7 | Summary: Direct Connect client |
8 | Source0: http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz | |
9 | URL: http://www.dolda2000.com/~fredrik/doldaconnect/ | |
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
f5b0faaa FT |
11 | Requires: %{name}-libs = %{version}-%{release} |
12 | Requires: %{name}-data = %{version}-%{release} | |
13 | Requires: doldacond = %{version}-%{release} | |
ad5772b6 FT |
14 | |
15 | %description | |
16 | Dolda Connect is a client program for the Direct Connect peer-to-peer | |
17 | filesharing network. It is written so that the user interface is | |
18 | separated from the actual filesharing program, so that the user | |
19 | interface can run on a different computer over the network, and can be | |
20 | shut down temporarily (or only started temporarily), and can be | |
21 | replaced altogether. | |
22 | ||
23 | The protocol with which the user interface talks with the actual | |
24 | client is also quite well defined, so that other kinds of clients can | |
25 | be written as well, such as an automatic downloader, a chatbot, | |
26 | etc. It can also be used in secure multiuser operation. | |
27 | ||
28 | %package libs | |
29 | Summary: %{name} libraries | |
30 | Group: Libraries | |
f5b0faaa | 31 | Requires: krb5-libs >= 1.5 |
ad5772b6 FT |
32 | |
33 | %description libs | |
34 | Shared libraries for %{name}. | |
35 | ||
36 | %package devel | |
37 | Summary: Development files for %{name}. | |
38 | Group: Development/Libraries | |
f5b0faaa | 39 | Requires: %{name}-libs = %{version}-%{release} |
ad5772b6 FT |
40 | |
41 | %description devel | |
42 | Header files and development libraries for %{name}. | |
43 | ||
cb530726 FT |
44 | %package guile |
45 | Summary: Guile module for %{name}. | |
46 | Group: Libraries | |
f5b0faaa FT |
47 | Requires: %{name}-libs = %{version}-%{release} |
48 | Requires: guile >= 1.8.0 | |
cb530726 FT |
49 | |
50 | %description guile | |
51 | Guile module for using the %{name} library in Scheme programs. | |
52 | ||
f5b0faaa FT |
53 | %package applet |
54 | Summary: GNOME applet for %{name} | |
55 | Group: Applications/Internet | |
56 | Requires: %{name}-libs = %{version}-%{release} | |
57 | Requires: %{name}-data = %{version}-%{release} | |
58 | ||
59 | %description applet | |
60 | A GNOME applet for checking the status of transfers in %{name}. | |
61 | ||
62 | %package data | |
63 | Summary: Common data files for %{name} | |
64 | Group: Applications/Internet | |
65 | ||
66 | %description data | |
67 | This package contains common data files for other %{name} packages. | |
68 | ||
69 | %package -n dolcon | |
70 | Summary: The Gtk client in %{name}. | |
71 | Group: Applications/Internet | |
72 | Requires: %{name}-libs = %{version}-%{release} | |
73 | Requires: %{name}-data = %{version}-%{release} | |
74 | Conflicts: %{name} | |
75 | ||
76 | %description -n dolcon | |
77 | This package contains only the Gtk client for %{name}, so that it can | |
78 | be used without using a local server. | |
79 | ||
ad5772b6 FT |
80 | %package -n doldacond |
81 | Summary: The daemon in %{name}. | |
82 | Group: Daemons | |
83 | Requires(post,preun): /sbin/chkconfig | |
f5b0faaa FT |
84 | Requires: initscripts |
85 | Requires: krb5-libs >= 1.5 | |
86 | Requires: gdbm >= 1.8.0 | |
ad5772b6 FT |
87 | |
88 | %description -n doldacond | |
89 | Daemon for %{name} that does all the actual work of filesharing. | |
90 | ||
91 | %prep | |
92 | %setup | |
93 | ||
94 | %build | |
f5b0faaa | 95 | echo "rpm" %{release} >source |
8b866abb | 96 | %configure --disable-rpath --with-guile \ |
ad5772b6 | 97 | --enable-gtk2ui --enable-guishell --with-pam \ |
f5b0faaa | 98 | --with-krb5 --enable-gnomeapplet --without-keyutils |
ad5772b6 FT |
99 | %{__make} |
100 | ||
101 | %install | |
102 | rm -rf "$RPM_BUILD_ROOT" | |
103 | mkdir "$RPM_BUILD_ROOT" | |
104 | make install DESTDIR="$RPM_BUILD_ROOT" | |
f5b0faaa FT |
105 | install -D -m 644 contrib/pam.d-doldacond "$RPM_BUILD_ROOT"%{_sysconfdir}/pam.d/doldacond |
106 | install -D contrib/fedora-init.d-doldacond "$RPM_BUILD_ROOT"%{_initrddir}/doldacond | |
ad5772b6 | 107 | rm -f "$RPM_BUILD_ROOT"%{_libdir}/gaim/*.a |
cb530726 FT |
108 | rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.a |
109 | rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.la | |
ad5772b6 FT |
110 | |
111 | %find_lang %{name} | |
112 | ||
113 | %clean | |
114 | rm -rf "$RPM_BUILD_ROOT" | |
115 | ||
116 | %post libs -p /sbin/ldconfig | |
117 | %postun libs -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(-,root,root) | |
121 | %{_bindir}/dolcon | |
122 | %{_bindir}/dolconf | |
123 | %{_bindir}/dolcon-launch | |
124 | %{_bindir}/doldacond-shell | |
f5b0faaa FT |
125 | %{_desktopdir}/dolcon.desktop |
126 | %{_mandir}/man1/dolcon.1.gz | |
127 | ||
128 | %files applet | |
ad5772b6 FT |
129 | %{_libdir}/bonobo/servers/*.server |
130 | %{_libexecdir}/dolcon-trans-applet | |
f5b0faaa FT |
131 | |
132 | %files data | |
ad5772b6 | 133 | %{_iconsdir}/* |
cb530726 | 134 | %{_datadir}/locale/*/LC_MESSAGES/doldaconnect.mo |
ad5772b6 FT |
135 | %doc AUTHORS ChangeLog README doc/INSTALL doc/gui-shell doc/TODO doc/protorev |
136 | ||
137 | %files libs | |
138 | %defattr(-,root,root) | |
139 | %{_libdir}/libdcui.so.1 | |
140 | %{_libdir}/libdcui.so.1.1.0 | |
141 | ||
142 | %files devel | |
143 | %defattr(-,root,root) | |
cb530726 FT |
144 | %{_libdir}/libdcui.so |
145 | %{_libdir}/libdcui.la | |
146 | %{_libdir}/libdcui.a | |
ad5772b6 FT |
147 | %dir %{_includedir}/doldaconnect |
148 | %{_includedir}/doldaconnect/*.h | |
149 | ||
cb530726 FT |
150 | %files guile |
151 | %defattr(-,root,root) | |
152 | %{_libdir}/libdolcon-guile.so | |
153 | %dir %{_datadir}/guile/site/dolcon | |
154 | %{_datadir}/guile/site/dolcon/ui.scm | |
155 | %{_datadir}/guile/site/dolcon/util.scm | |
156 | %{_bindir}/autodl | |
157 | %{_bindir}/chatlog | |
158 | %{_bindir}/dcruncmd | |
159 | %{_bindir}/hubmgr | |
160 | ||
ad5772b6 | 161 | %files -n doldacond |
8b866abb FT |
162 | %dir %{_sysconfdir} |
163 | %config(noreplace) %{_sysconfdir}/* | |
ad5772b6 FT |
164 | %{_bindir}/doldacond |
165 | %{_bindir}/locktouch | |
166 | %{_bindir}/tthsum | |
167 | %{_libexecdir}/speedrec | |
cb530726 FT |
168 | %{_mandir}/man5/doldacond.conf.5.gz |
169 | %{_mandir}/man8/doldacond.8.gz | |
ad5772b6 | 170 | |
f5b0faaa FT |
171 | %post -n doldacond |
172 | /sbin/chkconfig --add doldacond | |
173 | ||
174 | %preun -n doldacond | |
175 | %service doldacond stop | |
176 | /sbin/chkconfig --del doldacond | |
177 | ||
178 | %files -n dolcon | |
179 | %{_bindir}/dolcon | |
180 | %{_mandir}/man1/dolcon.1.gz | |
181 | ||
ad5772b6 FT |
182 | %changelog |
183 | * Tue Oct 16 2007 Fredrik Tolf <fredrik@dolda2000.com> | |
f5b0faaa | 184 | - Initial spec file. Quite a lot taken from the PLD specfile. |