| 1 | # RPC specfile for Fedora |
| 2 | Name: doldaconnect |
| 3 | Version: @VERSION@ |
| 4 | Release: 1 |
| 5 | License: GPL v2+ |
| 6 | Group: Applications/Internet |
| 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) |
| 11 | Requires: %{name}-libs = %{version}-%{release} |
| 12 | Requires: %{name}-data = %{version}-%{release} |
| 13 | Requires: doldacond = %{version}-%{release} |
| 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 |
| 31 | Requires: krb5-libs >= 1.5 |
| 32 | |
| 33 | %description libs |
| 34 | Shared libraries for %{name}. |
| 35 | |
| 36 | %package devel |
| 37 | Summary: Development files for %{name}. |
| 38 | Group: Development/Libraries |
| 39 | Requires: %{name}-libs = %{version}-%{release} |
| 40 | |
| 41 | %description devel |
| 42 | Header files and development libraries for %{name}. |
| 43 | |
| 44 | %package guile |
| 45 | Summary: Guile module for %{name}. |
| 46 | Group: Libraries |
| 47 | Requires: %{name}-libs = %{version}-%{release} |
| 48 | Requires: guile >= 1.8.0 |
| 49 | |
| 50 | %description guile |
| 51 | Guile module for using the %{name} library in Scheme programs. |
| 52 | |
| 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 | |
| 80 | %package -n doldacond |
| 81 | Summary: The daemon in %{name}. |
| 82 | Group: Daemons |
| 83 | Requires(post,preun): /sbin/chkconfig |
| 84 | Requires: initscripts |
| 85 | Requires: krb5-libs >= 1.5 |
| 86 | Requires: gdbm >= 1.8.0 |
| 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 |
| 95 | echo "rpm" %{release} >source |
| 96 | %configure --disable-rpath --with-guile \ |
| 97 | --enable-gtk2ui --enable-guishell --with-pam \ |
| 98 | --with-krb5 --enable-gnomeapplet --without-keyutils |
| 99 | %{__make} |
| 100 | |
| 101 | %install |
| 102 | rm -rf "$RPM_BUILD_ROOT" |
| 103 | mkdir "$RPM_BUILD_ROOT" |
| 104 | make install DESTDIR="$RPM_BUILD_ROOT" |
| 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 |
| 107 | rm -f "$RPM_BUILD_ROOT"%{_libdir}/gaim/*.a |
| 108 | rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.a |
| 109 | rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.la |
| 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 |
| 125 | %{_desktopdir}/dolcon.desktop |
| 126 | %{_mandir}/man1/dolcon.1.gz |
| 127 | |
| 128 | %files applet |
| 129 | %{_libdir}/bonobo/servers/*.server |
| 130 | %{_libexecdir}/dolcon-trans-applet |
| 131 | |
| 132 | %files data |
| 133 | %{_iconsdir}/* |
| 134 | %{_datadir}/locale/*/LC_MESSAGES/doldaconnect.mo |
| 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.3 |
| 140 | %{_libdir}/libdcui.so.3.0.0 |
| 141 | |
| 142 | %files devel |
| 143 | %defattr(-,root,root) |
| 144 | %{_libdir}/libdcui.so |
| 145 | %{_libdir}/libdcui.la |
| 146 | %{_libdir}/libdcui.a |
| 147 | %dir %{_includedir}/doldaconnect |
| 148 | %{_includedir}/doldaconnect/*.h |
| 149 | |
| 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 | |
| 161 | %files -n doldacond |
| 162 | %dir %{_sysconfdir} |
| 163 | %config(noreplace) %{_sysconfdir}/* |
| 164 | %{_bindir}/doldacond |
| 165 | %{_bindir}/locktouch |
| 166 | %{_bindir}/tthsum |
| 167 | %{_libexecdir}/speedrec |
| 168 | %{_mandir}/man5/doldacond.conf.5.gz |
| 169 | %{_mandir}/man8/doldacond.8.gz |
| 170 | |
| 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 | |
| 182 | %changelog |
| 183 | * Tue Oct 16 2007 Fredrik Tolf <fredrik@dolda2000.com> |
| 184 | - Initial spec file. Quite a lot taken from the PLD specfile. |